configure.old 872 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/ksh

echo "This script has generated Makefiles for a traditional make process."
echo "If you are using GNU tools, please use './configure' instead."

# We could do other configuration things in this script, but the 
# basic need is to generate Makefiles. We can't leave Makefiles
# in CVS because they would be overwritten by the Makefiles generated
# by GNU automake/autoconf.
for i in `find . -name Makefile.old`; do cp $i ${i%%.old}; done

# do the same for config.h plus insert VERSION and BUILDDATE
V=$(grep 'AC_INIT(graphviz' configure.ac | m4 '-DAC_INIT=$2')
D=$(date)
15
./iffe - set cc cc : run config.iffe | sed "s/VVVV/$V/" | sed "s/DDDD/$D/" > config.h
16 17

# Append VERSION to Config.mk
18
cp Config.mk.old Config.mk
19 20 21 22 23
echo "VERSION=$V" >> Config.mk

# Remove cdt/ast_common.h if it came with the distribution
# so a fresh one is generated.
rm -f cdt/ast_common.h