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

4 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}