X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.ng;h=da723e8fcae037dacbdf6710aef521b3538c1460;hp=25654f9cfbdfc78d2ef74de059a64cfeeb8e355f;hb=d7d5f4330b15667d9f364ebabd886a062b2741fb;hpb=192e304b94f239de13b0f10ca01f6694fe6eea40 diff --git a/configure.ng b/configure.ng index 25654f9c..da723e8f 100644 --- a/configure.ng +++ b/configure.ng @@ -9,7 +9,12 @@ # Please read the file COPYING, README and AUTHORS for more information. # -define(VERSION_ID,esyscmd(git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'|tr -d \\n)) +define(VERSION_ID,esyscmd([ + V=`git describe 2>/dev/null | sed -e 's/rel-//g' | sed -e 's/-/~/'`; + [ -z "$V" -a -r configure ] \ + && V=`grep "PACKAGE_STRING=" configure | cut -d"'" -f2 | cut -d' ' -f2` + ( [ -n "$V" ] && echo "$V" || echo "??" ) | tr -d '\n'; +])) # -- Initialisation --