echo "Graphviz: abbreviated hash of last commit: $GRAPHVIZ_VERSION_COMMIT"
fi
+if ! GRAPHVIZ_COLLECTION=$( python3 gen_version.py --collection) ; then
+ echo "Error: Failed to set collection" >&2
+ exit 1
+fi
+
# initialize version for a "development" build
cat >./version.m4 <<EOF
dnl Graphviz package version number, (as distinct from shared library version)
m4_define([graphviz_version_major],[$GRAPHVIZ_VERSION_MAJOR])
m4_define([graphviz_version_minor],[$GRAPHVIZ_VERSION_MINOR])
m4_define([graphviz_version_micro],[$GRAPHVIZ_VERSION_PATCH])
-m4_define([graphviz_collection],[development])
+m4_define([graphviz_collection],[$GRAPHVIZ_COLLECTION])
m4_define([graphviz_version_date],[$GRAPHVIZ_VERSION_DATE])
m4_define([graphviz_change_date],["$GRAPHVIZ_CHANGE_DATE"])