#!/bin/sh GIT_VERSION=$(git --no-pager describe --tags --dirty |sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g') echo -ne ${GIT_VERSION}