Commit | Line | Data |
---|---|---|
5d94b2fe | 1 | #!/bin/sh |
3be5cdf2 | 2 | # Usage: sh -x ./autogen.sh [WORKBOOK] |
5d94b2fe | 3 | |
fc4fc6f6 RB |
4 | set -e |
5 | ||
0b49b6ae | 6 | [ -f GUILE-VERSION ] || { |
3be5cdf2 | 7 | echo "autogen.sh: run this command only at the top of guile-core." |
0b49b6ae JB |
8 | exit 1 |
9 | } | |
10 | ||
3be5cdf2 TTN |
11 | ###################################################################### |
12 | ### Find workbook and make symlinks. | |
13 | ||
14 | workbook=../workbook # assume "cvs co hack" | |
15 | test x$1 = x || workbook=$1 | |
16 | if [ ! -d $workbook ] ; then | |
17 | echo "ERROR: could not find workbook dir" | |
18 | echo " re-run like so: $0 WORKBOOK" | |
19 | exit 1 | |
20 | fi | |
21 | : found workbook at $workbook | |
22 | workbook=`(cd $workbook ; pwd)` | |
23 | ||
2e562f3a | 24 | workbookdistfiles="ANON-CVS HACKING SNAPSHOTS" |
3be5cdf2 TTN |
25 | for f in $workbookdistfiles ; do |
26 | rm -f $f | |
27 | ln -s $workbook/build/dist-files/$f $f | |
28 | done | |
29 | rm -f examples/example.gdbinit | |
30 | ln -s $workbook/build/dist-files/.gdbinit examples/example.gdbinit | |
0859b96a TTN |
31 | |
32 | # TODO: This should be moved to dist-guile | |
feec7802 | 33 | mscripts=../guile-scripts |
0859b96a TTN |
34 | rm -f BUGS |
35 | $mscripts/render-bugs > BUGS | |
36 | ||
3be5cdf2 | 37 | ###################################################################### |
549d7a55 | 38 | ### update infrastructure |
3be5cdf2 | 39 | |
95aacf7f | 40 | autoreconf -i --force --verbose |
f8aa362d | 41 | |
fc4fc6f6 RB |
42 | echo "guile-readline..." |
43 | (cd guile-readline && ./autogen.sh) | |
9e74987f MV |
44 | |
45 | echo "Now run configure and make." | |
f2ae4555 | 46 | echo "You must pass the \`--enable-maintainer-mode' option to configure." |