File: configure.old

package info (click to toggle)
graphviz 2.8-2.4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 20,472 kB
  • ctags: 22,070
  • sloc: ansic: 163,260; cpp: 36,565; sh: 25,032; yacc: 2,354; tcl: 1,808; makefile: 1,745; cs: 805; perl: 801; ml: 649; awk: 160; lex: 153; python: 105; ruby: 32; php: 6
file content (23 lines) | stat: -rwxr-xr-x 872 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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)
./iffe - set cc cc : run config.iffe | sed "s/VVVV/$V/" | sed "s/DDDD/$D/" > config.h

# Append VERSION to Config.mk
cp Config.mk.old Config.mk
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