diff options
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)) |