From: Alexandre Duret-Lutz Date: Mon, 10 Feb 2003 23:33:49 +0000 (+0000) Subject: 2003-02-10 Richard Dawe X-Git-Tag: Release-1-7-2b~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e83facca1c65140b1187f4c9cd0abc65fa0a0eab;p=thirdparty%2Fautomake.git 2003-02-10 Richard Dawe * 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. --- 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 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