diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-11-03 21:49:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-11-03 21:49:14 (GMT) |
commit | 72da49fdf05285169a9465b34f7869dafc4715ec (patch) | |
tree | 8a7303076d85c977737d2e30ac8eaf1da0a909a3 /svnrev.m4 | |
parent | 565c3f494b51715cf67575fc5951c6103049f29d (diff) |
Retrieved the revision number using M4 instead of shell.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@603 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'svnrev.m4')
-rw-r--r-- | svnrev.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/svnrev.m4 b/svnrev.m4 new file mode 100644 index 0000000..311f1b7 --- /dev/null +++ b/svnrev.m4 @@ -0,0 +1,9 @@ + +define([REPO], [svn://svn.gna.org/svn/chrysalide/trunk]) + + +define([svnrepo], esyscmd([bash -c "svnversion2 | tr -cd '[0-9]'" 2> /dev/null])) + +define([onlinerepo], esyscmd(LANG=C svn info REPO | awk -v ORS= '/Revision:/ { print $2 }')) + +define([svnversion], ifelse(svnrepo, , ifelse(onlinerepo, , 000, onlinerepo), svnrepo)) |