]> granicus.if.org Git - graphviz/commitdiff
always use date of last commit in version, even for stable
authorJohn Ellson <ellson@research.att.com>
Wed, 20 May 2015 19:50:16 +0000 (15:50 -0400)
committerJohn Ellson <ellson@research.att.com>
Wed, 20 May 2015 19:50:16 +0000 (15:50 -0400)
autogen.sh
configure.ac

index 764823cae0175f96a3163b435d23ec6d6270e96c..36d25385a1510ebab83c0603eb0cc8092cdaf35e 100755 (executable)
@@ -5,9 +5,8 @@ if test $? -eq 0; then
     GRAPHVIZ_VERSION_DATE=$( date -u +%Y%m%d.%H%M -d @$GRAPHVIZ_VERSION_DATE )
     echo "Version date is based on time of last commit: $GRAPHVIZ_VERSION_DATE"
 else
-    GRAPHVIZ_VERSION_DATE=$( date -u +%Y%m%d.%H%M )
-    echo "Warning: we do not appear to be running in a git clone."
-    echo "Version date is based on time now: $GRAPHVIZ_VERSION_DATE"
+    GRAPHVIZ_VERSION_DATE="0"
+    echo "Warning: we do not appear to be running in a git clone." >$2
 fi
 
 # initialize version for a "stable" build
@@ -20,7 +19,7 @@ dnl                       timestamp => tar-file snapshot or release
 m4_define(graphviz_version_major, 2)
 m4_define(graphviz_version_minor, 39)
 dnl NB: the next line gets changed to a date/time string for development releases
-m4_define(graphviz_version_micro, 0)
+m4_define(graphviz_version_micro, $GRAPHVIZ_VERSION_DATE)
 m4_define(graphviz_version_date, $GRAPHVIZ_VERSION_DATE)
 m4_define(graphviz_collection, test)
 m4_define(graphviz_version_commit, unknown)
index b9ad708cb8da320359c563f1342788c2cd414c9a..e70f874a3111087f21e063eff15dd36fcaaf3490 100644 (file)
@@ -22,7 +22,7 @@ GRAPHVIZ_VERSION_MICRO=graphviz_version_micro()
 #NB: "stable" or "development"
 GRAPHVIZ_COLLECTION=graphviz_collection()
 
-#NB: date/time of last commit - or "now"
+#NB: date/time of last commit - or "0"
 GRAPHVIZ_VERSION_DATE=graphviz_version_date()
 
 #NB: git commit hash of last commit