Fixed some typos and added some docs. Talk about concrete and
[bpt/guile.git] / autogen.sh
... / ...
CommitLineData
1#!/bin/sh
2# Usage: sh -x ./autogen.sh [WORKBOOK]
3
4set -e
5
6[ -f GUILE-VERSION ] || {
7 echo "autogen.sh: run this command only at the top of guile-core."
8 exit 1
9}
10
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
24workbookdistfiles="ANON-CVS HACKING SNAPSHOTS"
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
31
32# TODO: This should be moved to dist-guile
33mscripts=../guile-scripts
34rm -f BUGS
35$mscripts/render-bugs > BUGS
36
37######################################################################
38### update infrastructure
39
40autoreconf -i --force --verbose
41
42echo "guile-readline..."
43(cd guile-readline && ./autogen.sh)
44
45echo "Now run configure and make."
46echo "You must pass the \`--enable-maintainer-mode' option to configure."