ptouch-print/build-aux/git-version-gen

3 lines
122 B
Bash
Executable file

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