]> granicus.if.org Git - graphviz/commitdiff
fixing older mechanism to work as well until conversion complete
authorJohn Ellson <ellson@research.att.com>
Mon, 7 Oct 2013 21:19:58 +0000 (17:19 -0400)
committerJohn Ellson <ellson@research.att.com>
Mon, 7 Oct 2013 21:19:58 +0000 (17:19 -0400)
set_dev_version.sh

index ac4e6d030f792a57b269a5d36221996e4d54632a..e662624ab5e8500c892257e95e5426d1eab5f4a1 100755 (executable)
@@ -5,7 +5,7 @@
 # DO NOT COMMIT TO CVS AFTER RUNNING THIS SCRIPT
 
 # This script is intended for use only during the preparation of master sources for nightly snapshot builds.
-# It modifies configure.ac to use an extended package version number containing the current date.
+# It modifies autogen.sh to use an extended package version number containing the current date.
 #
 # This style of version number is particular to graphviz, and probably wouldn't be done this way if
 # we were using SVN rather than CVS.  Also, it has obscure complications when we try to extend it to the Windows platform.
 
 DATE=`date -u +%Y%m%d.%H%M`
 
-VERSION_MAJOR=`grep 'm4_define(graphviz_version_major' configure.ac | sed 's/.*, \([0-9]*\))/\1/'`
-VERSION_MINOR=`grep 'm4_define(graphviz_version_minor' configure.ac | sed 's/.*, \([0-9]*\))/\1/'`
-VERSION_MICRO=`grep 'm4_define(graphviz_version_micro' configure.ac | sed 's/.*, \([0-9.]*\))/\1/'`
+VERSION_MAJOR=`grep 'm4_define(graphviz_version_major' autogen.sh | sed 's/.*, \([0-9]*\))/\1/'`
+VERSION_MINOR=`grep 'm4_define(graphviz_version_minor' autogen.sh | sed 's/.*, \([0-9]*\))/\1/'`
+VERSION_MICRO=`grep 'm4_define(graphviz_version_micro' autogen.sh | sed 's/.*, \([0-9.]*\))/\1/'`
 
 VERSION_MICRO=$DATE
-sed "s/\(m4_define(graphviz_version_micro, \)[0-9.]*)/\1$VERSION_MICRO)/" <configure.ac >t$$
-mv t$$ configure.ac
-sed "s/\(GRAPHVIZ_COLLECTION\)=.*/\1=development/" <configure.ac >t$$
-mv t$$ configure.ac
+sed "s/\(m4_define(graphviz_version_micro, \)[0-9.]*)/\1$VERSION_MICRO)/" <autogen.sh >t$$
+mv t$$ autogen.sh
+sed "s/\(GRAPHVIZ_COLLECTION\)=.*/\1=development/" <autogen.sh >t$$
+mv t$$ autogen.sh
 
 VERSION=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_MICRO
 
 VERSION_DATE=$DATE
-sed "s/VERSION_DATE=.*/VERSION_DATE=$VERSION_DATE/" <configure.ac >t$$
-mv t$$ configure.ac
+sed "s/VERSION_DATE=.*/VERSION_DATE=$VERSION_DATE/" <autogen.sh >t$$
+mv t$$ autogen.sh