Tweak "gnulib --version" output.
authorBruno Haible <bruno@clisp.org>
Sun, 23 Mar 2008 11:28:46 +0000 (12:28 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Mar 2008 11:28:46 +0000 (12:28 +0100)
ChangeLog
gnulib-tool

index 7e2b4d6..f20f798 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2008-03-23  Bruno Haible  <bruno@clisp.org>
 
        Tweak "gnulib --version" output.
+       * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
+
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+       Tweak "gnulib --version" output.
        * gnulib-tool (func_version): Use date of last commit to ChangeLog,
        rather than contents of ChangeLog, when possible.
 
index a86e4ee..df72532 100755 (executable)
@@ -209,7 +209,7 @@ q
     date=`echo "$date" | sed -e "$sed_year_before_time"`
     # Use GNU date to compute the time in GMT.
     date=`date -d "$date" -u +"%Y-%m-%d %H:%M:%S"`
-    version=' '`"$gnulib_dir"/build-aux/git-version-gen /dev/null`
+    version=' '`"$gnulib_dir"/build-aux/git-version-gen /dev/null | sed -e 's/-dirty/-modified/'`
   else
     if test -d "$gnulib_dir"/CVS \
        && (cvs --version) >/dev/null 2>/dev/null; then