diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index ea1f7d6a8..a6f77eb3c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -36,7 +36,14 @@ echo "Creating configure.ac" # substitute revision and linguas linguas=`sed -e '/^#/d' po/LINGUAS` -revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'` +if test -d .git/svn; then + revision=`git svn find-rev trunk 2>/dev/null || + git svn find-rev origin/trunk 2>/dev/null || + git svn find-rev HEAD 2>/dev/null || + git svn find-rev master 2>/dev/null` +else + revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'` +fi sed -e "s/@LINGUAS@/${linguas}/g" \ -e "s/@REVISION@/${revision}/g" \ < "configure.ac.in" > "configure.ac" |