summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2003-02-10 23:33:49 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2003-02-10 23:33:49 +0000
commite83facca1c65140b1187f4c9cd0abc65fa0a0eab (patch)
tree53abca97c890b3c55aae271052f8f476191171b6 /bootstrap
parent3fb2314d51c49db3771522ab86215aad561bfb30 (diff)
downloadautomake-e83facca1c65140b1187f4c9cd0abc65fa0a0eab.tar.gz
2003-02-10 Richard Dawe <rich@phekda.freeserve.co.uk>
* bootstrap: Don't require support for symlinks - copy instead. Override $SHELL with DJGPP's bash, if running DJGPP. Substitute @SHELL@ in automake.in and aclocal.in. This makes the setting of SHELL work for DJGPP.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap18
1 files changed, 16 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 28d8d3deb..097c3ce6b 100755
--- a/bootstrap
+++ b/bootstrap
@@ -2,7 +2,7 @@
# This script helps bootstrap automake, when checked out from CVS.
#
-# Copyright 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# written by Pavel Roskin <proski@gnu.org> September 2002
#
# This program is free software; you can redistribute it and/or modify
@@ -47,6 +47,15 @@ VERSION=`sed -ne '/AC_INIT/s/^[^[]*\[[^[]*\[\([^]]*\)\].*$/\1/p' configure.in`
PACKAGE=automake
datadir=.
+# Override SHELL. This is required on DJGPP so that Perl's system()
+# uses bash, not COMMAND.COM which doesn't quote arguments properly.
+# It's not used otherwise.
+if test -n $DJGPP; then
+ BOOTSTRAP_SHELL=/dev/env/DJDIR/bin/bash.exe
+else
+ BOOTSTRAP_SHELL=/bin/sh
+fi
+
# Read the rule for calculating APIVERSION and execute it
apiver_cmd=`sed -ne 's/\[\[/[/g;s/\]\]/]/g;/^APIVERSION=/p' configure.in`
eval $apiver_cmd
@@ -66,7 +75,10 @@ fi
rm -rf aclocal-$APIVERSION
mkdir aclocal-$APIVERSION
rm -rf automake-$APIVERSION
-ln -s lib automake-$APIVERSION
+ln -s lib automake-$APIVERSION || {
+ mkdir automake-$APIVERSION
+ cp -arf lib/* automake-$APIVERSION
+}
# Create temporary replacement for aclocal
sed -e "s%@PERL@%$PERL%g" \
@@ -74,6 +86,7 @@ sed -e "s%@PERL@%$PERL%g" \
-e "s%@APIVERSION@%$APIVERSION%g" \
-e "s%@PACKAGE@%$PACKAGE%g" \
-e "s%@datadir@%$datadir%g" \
+ -e "s%@SHELL@%$BOOTSTRAP_SHELL%g" \
aclocal.in >aclocal.tmp
# Create temporary replacement for amversion.m4
@@ -93,6 +106,7 @@ sed -e "s%@PERL@%$PERL%g" \
-e "s%@APIVERSION@%$APIVERSION%g" \
-e "s%@PACKAGE@%$PACKAGE%g" \
-e "s%@datadir@%$datadir%g" \
+ -e "s%@SHELL@%$BOOTSTRAP_SHELL%g" \
automake.in >automake.tmp
# Run automake