1999-10-05 19:07:40 +00:00
|
|
|
#!/bin/sh
|
2002-03-31 23:18:06 +00:00
|
|
|
# Usage: sh -x ./autogen.sh [WORKBOOK]
|
1999-10-05 19:07:40 +00:00
|
|
|
|
2002-02-25 04:46:41 +00:00
|
|
|
set -e
|
|
|
|
|
|
1999-10-05 23:07:04 +00:00
|
|
|
[ -f GUILE-VERSION ] || {
|
2002-03-31 23:18:06 +00:00
|
|
|
echo "autogen.sh: run this command only at the top of guile-core."
|
1999-10-05 23:07:04 +00:00
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
2002-03-31 23:18:06 +00:00
|
|
|
######################################################################
|
|
|
|
|
### Find workbook and make symlinks.
|
|
|
|
|
|
|
|
|
|
workbook=../workbook # assume "cvs co hack"
|
|
|
|
|
test x$1 = x || workbook=$1
|
|
|
|
|
if [ ! -d $workbook ] ; then
|
|
|
|
|
echo "ERROR: could not find workbook dir"
|
|
|
|
|
echo " re-run like so: $0 WORKBOOK"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
: found workbook at $workbook
|
|
|
|
|
workbook=`(cd $workbook ; pwd)`
|
|
|
|
|
|
2002-07-07 20:17:29 +00:00
|
|
|
workbookdistfiles="ANON-CVS HACKING SNAPSHOTS"
|
2002-03-31 23:18:06 +00:00
|
|
|
for f in $workbookdistfiles ; do
|
|
|
|
|
rm -f $f
|
|
|
|
|
ln -s $workbook/build/dist-files/$f $f
|
|
|
|
|
done
|
|
|
|
|
rm -f examples/example.gdbinit
|
|
|
|
|
ln -s $workbook/build/dist-files/.gdbinit examples/example.gdbinit
|
2002-05-01 21:02:14 +00:00
|
|
|
|
|
|
|
|
# TODO: This should be moved to dist-guile
|
2002-06-30 17:06:35 +00:00
|
|
|
mscripts=../guile-scripts
|
2007-01-03 17:23:15 +00:00
|
|
|
if test -x $mscripts/render-bugs ; then
|
|
|
|
|
rm -f BUGS
|
|
|
|
|
$mscripts/render-bugs > BUGS
|
|
|
|
|
fi
|
2002-05-01 21:02:14 +00:00
|
|
|
|
2007-02-24 17:34:02 +00:00
|
|
|
######################################################################
|
|
|
|
|
### announce build tool versions
|
|
|
|
|
echo ""
|
|
|
|
|
autoconf --version
|
|
|
|
|
echo ""
|
|
|
|
|
automake --version
|
|
|
|
|
echo ""
|
|
|
|
|
libtool --version
|
|
|
|
|
echo ""
|
|
|
|
|
${M4:-/usr/bin/m4} --version
|
|
|
|
|
echo ""
|
|
|
|
|
|
2002-03-31 23:18:06 +00:00
|
|
|
######################################################################
|
2003-02-27 07:08:28 +00:00
|
|
|
### update infrastructure
|
2002-03-31 23:18:06 +00:00
|
|
|
|
2005-02-28 02:46:30 +00:00
|
|
|
autoreconf -i --force --verbose
|
2003-03-21 15:59:01 +00:00
|
|
|
|
2002-02-25 04:46:41 +00:00
|
|
|
echo "guile-readline..."
|
|
|
|
|
(cd guile-readline && ./autogen.sh)
|
2001-06-25 15:07:20 +00:00
|
|
|
|
|
|
|
|
echo "Now run configure and make."
|
2001-06-25 22:24:40 +00:00
|
|
|
echo "You must pass the \`--enable-maintainer-mode' option to configure."
|