From ab8cc85adde879fb963c94d15675783f2cf4b183 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Tue, 14 Aug 2007 05:14:52 +0000 Subject: Initial population. --- build-setup.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 build-setup.sh (limited to 'build-setup.sh') diff --git a/build-setup.sh b/build-setup.sh new file mode 100755 index 00000000..c36ea82b --- /dev/null +++ b/build-setup.sh @@ -0,0 +1,48 @@ +#! /bin/sh + +error() { + echo "$1" + exit 1 +} + +# set -x + +notangle ./configure.ac.pamphlet > ./tmp-configure.ac \ + || error "could not extract configure.ac from pamphlet file" +config/move-if-change tmp-configure.ac configure.ac + +autoheader || error "could not re-generate config/axiom-c-macros.h" +autoconf || error "could not re-generate configure" + +## subdirectories that contain Makefile pamphlets of interest +SUBDIRS=" . \ + src \ + src/lib \ + src/lisp \ + src/boot \ + src/interp \ + src/share \ + src/algebra \ + src/etc \ + src/clef \ + src/doc \ + src/graph \ + src/graph/Gdraws \ + src/graph/view2D \ + src/graph/view3D \ + src/graph/viewAlone \ + src/graph/viewman \ + src/sman \ + src/hyper \ + src/input \ + src/booklets \ +" + + +for d in $SUBDIRS; do + notangle -t8 $d/Makefile.pamphlet > $d/tmp-Makefile.in \ + || error "could not extract $d/Makefile.in from pamphlet file" + config/move-if-change $d/tmp-Makefile.in $d/Makefile.in +done + +# set +x -- cgit v1.2.3