replaced the svn $rev$ substitution with git describe falling back to git rev-parse HEAD

pull/4/head
John Tsiombikas 2018-08-21 05:46:28 +03:00
rodzic e34c70fecd
commit 04574d0ed0
2 zmienionych plików z 5 dodań i 5 usunięć

4
README
Wyświetl plik

@ -1,5 +1,5 @@
spacenavd - $Rev$
---------------
spacenavd
---------
1. About
Spacenavd, is a free software replacement user-space driver (daemon), for

6
configure vendored
Wyświetl plik

@ -40,10 +40,10 @@ DBG=yes
X11=yes
HOTPLUG=yes
XINPUT=yes
VER=`head -1 README | sed 's/^.*- //'`
VER=`git describe --tags 2>/dev/null`
if echo $VER | grep '$Rev' >/dev/null; then
VER=svn-r`echo $VER | awk '{print $2}' | sed 's/$//g'`
if [ -z "$VER" ]; then
VER=`git rev-parse --short HEAD`
fi
echo "configuring spacenavd - $VER"