1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
# Usage: sh -x ./autogen.sh [WORKBOOK] |
3 |
|
|
4 |
set -e |
set -e |
5 |
|
|
6 |
[ -f GUILE-VERSION ] || { |
[ -f GUILE-VERSION ] || { |
7 |
echo "autogen.sh: run this command only at the top of a Guile source tree." |
echo "autogen.sh: run this command only at the top of guile-core." |
8 |
exit 1 |
exit 1 |
9 |
} |
} |
10 |
|
|
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 |
|
|
24 |
|
workbookdistfiles="ANON-CVS HACKING INSTALL SNAPSHOTS" |
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 |
31 |
|
###################################################################### |
32 |
|
|
33 |
./guile-aclocal.sh |
./guile-aclocal.sh |
34 |
|
|
35 |
###################################################################### |
###################################################################### |
61 |
|
|
62 |
echo "Now run configure and make." |
echo "Now run configure and make." |
63 |
echo "You must pass the \`--enable-maintainer-mode' option to configure." |
echo "You must pass the \`--enable-maintainer-mode' option to configure." |
64 |
|
|
65 |
|
# autogen.sh ends here |