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
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)
#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