]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
version script "improvement"
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 4 Jun 2009 18:33:21 +0000 (20:33 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Thu, 4 Jun 2009 18:33:21 +0000 (20:33 +0200)
version.sh

index ee6a094b102515d4bba59e32ae51210f13509d1f..da375c970e321aa5b35f716d637889da421da794 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/sh
 
-VERSION="0.1"
+VERSION="0.0"
 OUT="$1"
 
 if head=`git rev-parse --verify HEAD 2>/dev/null`; then
        git update-index --refresh --unmerged > /dev/null
-       descr=$(git describe)
+       descr=$(git describe 2>/dev/null || echo "v$VERSION")
 
        # on git builds check that the version number above
        # is correct...