[Xfce4-commits] <xfce4-embed-plugin:master> * Improve version stuff

Nick Schermer noreply at xfce.org
Sun Jan 1 21:44:08 CET 2012


Updating branch refs/heads/master
         to f9884da545f9010dd57666ceec909c1fd3742689 (commit)
       from 92f8588f8b76bfebbce71614ccec4ba137822eb9 (commit)

commit f9884da545f9010dd57666ceec909c1fd3742689
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Jan 17 17:47:38 2007 +0000

    * Improve version stuff
    
    
    (Old svn revision: 2398)

 autogen.sh      |    2 +-
 configure.in.in |    7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 01373b9..13350da 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -27,7 +27,7 @@ EOF
 
 # substitute revision and linguas
 linguas=`sed -e '/^#/d' po/LINGUAS`
-revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
+revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%04d\n", $2}'`
 sed -e "s/@LINGUAS@/${linguas}/g" \
     -e "s/@REVISION@/${revision}/g" \
     < "configure.in.in" > "configure.in"
diff --git a/configure.in.in b/configure.in.in
index 393ab66..4201f18 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -8,7 +8,12 @@ dnl
 dnl ***************************
 dnl *** Version information ***
 dnl ***************************
-m4_define([sample_version], [0.0.1])
+m4_define([sample_version_major], [0])
+m4_define([sample_version_minor], [0])
+m4_define([sample_version_micro], [2])
+m4_define([sample_version_build], [r at REVISION@])
+m4_define([sample_version_tag], [svn])
+m4_define([sample_version], [sample_version_major().sample_version_minor().sample_version_micro()ifelse(sample_version_tag(), [svn], [sample_version_tag()-sample_version_build()], [sample_version_tag()])])
 
 dnl ***************************
 dnl *** Initialize autoconf ***


More information about the Xfce4-commits mailing list