* autogen.sh: switch to autoreconf -- see how it goes. remove
[bpt/guile.git] / autogen.sh
CommitLineData
5d94b2fe 1#!/bin/sh
3be5cdf2 2# Usage: sh -x ./autogen.sh [WORKBOOK]
5d94b2fe 3
fc4fc6f6
RB
4set -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
14workbook=../workbook # assume "cvs co hack"
15test x$1 = x || workbook=$1
16if [ ! -d $workbook ] ; then
17 echo "ERROR: could not find workbook dir"
18 echo " re-run like so: $0 WORKBOOK"
19 exit 1
20fi
21: found workbook at $workbook
22workbook=`(cd $workbook ; pwd)`
23
2e562f3a 24workbookdistfiles="ANON-CVS HACKING SNAPSHOTS"
3be5cdf2
TTN
25for f in $workbookdistfiles ; do
26 rm -f $f
27 ln -s $workbook/build/dist-files/$f $f
28done
29rm -f examples/example.gdbinit
30ln -s $workbook/build/dist-files/.gdbinit examples/example.gdbinit
0859b96a
TTN
31
32# TODO: This should be moved to dist-guile
feec7802 33mscripts=../guile-scripts
0859b96a
TTN
34rm -f BUGS
35$mscripts/render-bugs > BUGS
36
3be5cdf2 37######################################################################
549d7a55 38### update infrastructure
3be5cdf2 39
549d7a55 40autoreconf -i
0b49b6ae 41
fc4fc6f6
RB
42echo "guile-readline..."
43(cd guile-readline && ./autogen.sh)
9e74987f
MV
44
45echo "Now run configure and make."
f2ae4555 46echo "You must pass the \`--enable-maintainer-mode' option to configure."