echo "Warning: we do not know how to invoke date correctly." >&2
fi
fi
- echo "Graphviz version date is based on time of last commit: $GRAPHVIZ_VERSION_DATE"
+ echo "Graphviz: version date is based on time of last commit: $GRAPHVIZ_VERSION_DATE"
+
+ GRAPHVIZ_VERSION_COMMIT=$( git log -n 1 --format=%h )
+ echo "Graphviz: abbreviated hash of last commit: $GRAPHVIZ_VERSION_COMMIT"
fi
# initialize version for a "stable" build
cat >./version.m4 <<EOF
-dnl graphviz package version number, (as distinct from shared library version)
+dnl Graphviz package version number, (as distinct from shared library version)
dnl For the minor number: odd => unstable series
dnl even => stable series
dnl For the micro number: 0 => in-progress development
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)
+m4_define(graphviz_version_commit, $GRAPHVIZ_VERSION_COMMIT)
EOF
# attempt to suppress ar messages for 'u' when 'D' present.
# Try to use version available on FC8
AC_PREREQ(2.61)
+dnl ===========================================================================
+dnl Set Graphviz version information
+
# set:
# graphviz_version_major
# graphviz_version_minor
GRAPHVIZ_VERSION_MINOR=graphviz_version_minor()
GRAPHVIZ_VERSION_MICRO=graphviz_version_micro()
-#NB: "stable" or "development"
+# NB: "stable" or "development"
GRAPHVIZ_COLLECTION=graphviz_collection()
-#NB: date/time of last commit - or "0"
+# NB: date/time of last commit - or "0"
GRAPHVIZ_VERSION_DATE=graphviz_version_date()
-#NB: git commit hash of last commit
+# NB: git commit hash of last commit
GRAPHVIZ_VERSION_COMMIT=graphviz_version_commit()
GRAPHVIZ_SOURCES=graphviz/$GRAPHVIZ_COLLECTION/SOURCES