autogen.sh 1.14 KB
Newer Older
ellson's avatar
ellson committed
1 2
#! /bin/sh

3 4 5 6 7 8 9 10 11 12 13
# Use "now" if we can't get time of last commit
GRAPHVIZ_VERSION_DATE=$( date -u +%Y%m%d.%H%M )

# initialize version for a "stable" build
cat >./version.m4 <<EOF
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
dnl                       timestamp => tar-file snapshot or release
m4_define(graphviz_version_major, 2)
John Ellson's avatar
John Ellson committed
14
m4_define(graphviz_version_minor, 39)
15 16 17
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_date, $GRAPHVIZ_VERSION_DATE)
18 19
m4_define(graphviz_collection, test)
m4_define(graphviz_version_commit, unknown)
20 21
EOF

ellson's avatar
ellson committed
22 23
autoreconf -v --install --force || exit 1

ellson's avatar
ellson committed
24 25
# ensure config/depcomp exists even if still using automake-1.4
# otherwise "make dist" fails.
ellson's avatar
ellson committed
26 27
touch config/depcomp

28 29
# suppress automatic ./configure  is "./autogen.sh NOCONFIG"
if test "$1" != "NOCONFIG"; then
30 31 32 33
    # don't use any old cache, but create a new one
    rm -f config.cache
    ./configure -C "[email protected]"
fi