aboutsummaryrefslogtreecommitdiff
path: root/build-setup.sh
blob: 64520b216f3c5ba7ada549ae2863e823dc6dffde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh

error() {
    echo "$1"
    exit 1
}

# set -x

rm -rf autom4te.cache
autoheader || error "could not re-generate config/openaxiom-c-macros.h"
autoconf || error "could not re-generate configure"

## subdirectories that contain Makefile pamphlets of interest
SUBDIRS="     .   \
                  src                    \
		  src/interp             \
		  src/algebra            \
		  src/input              \
"


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