tvheadend/support/getver.sh
Andreas Öman 00378579ed Rework file bundling and make configure take most standard args
Now ./configure should be able to be correctly invoked from standard
debian helper rules file
2012-04-10 20:51:09 +02:00

8 lines
242 B
Bash
Executable file

#!/bin/sh
revision=`cd "$1" && git describe --dirty --abbrev=5 2>/dev/null | sed -e 's/-/./g'`
if ! test $revision; then
test $revision || revision=`cd "$1" && git describe --abbrev=5 2>/dev/null | sed -e 's/-/./g'`
fi
echo $revision