repo: ngircd action: commit revision: path_from: revision_from: d7d5f4330b15667d9f364ebabd886a062b2741fb: path_to: revision_to:
commit d7d5f4330b15667d9f364ebabd886a062b2741fb Author: Alexander BartonDate: Mon Sep 24 18:00:36 2012 +0200 configure.ng: don't require GIT tree to detect version string diff --git a/configure.ng b/configure.ng
--- 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 --
-----END OF PAGE-----