Patch rtems-rc-4.5.0-5-cvs.diff from Ralf Corsepius

<corsepiu@faw.uni-ulm.de> that allows bootstrap to be run
from subdirectories.
This commit is contained in:
Joel Sherrill
2000-03-22 14:04:02 +00:00
parent 96cf181204
commit 94795bbda6
3 changed files with 15 additions and 7 deletions

View File

@@ -13,6 +13,8 @@
# source tree
progname=`basename $0`
top_srcdir=`dirname $0`
verbose="";
quiet="false"
mode="generate"
@@ -31,9 +33,9 @@ usage()
exit 1;
}
if test ! -f VERSION; then
if test ! -f $top_srcdir/VERSION; then
echo "${progname}:"
echo " Please change directory to RTEMS's toplevel directory"
echo " Installation problem: Can't find file VERSION"
exit 1;
fi
@@ -57,12 +59,17 @@ case $1 in
esac
done
pwd=`pwd`;
case $mode in
generate)
case $top_srcdir in
/* ) aclocal_dir=$top_srcdir/aclocal
;;
*) aclocal_dir=`pwd`/$top_srcdir/aclocal
;;
esac
confs=`find . -name 'configure.in' -print`
aclocal_dir=$pwd/aclocal
for i in $confs; do
dir=`dirname $i`;
( test "$quiet" = "true" || echo "$dir";
@@ -76,6 +83,7 @@ generate)
)
done
;;
clean)
test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;

View File

@@ -191,7 +191,7 @@ sub subst_line
my @ibuf = () ;
my $line = "" ;
while ( <> )
while ( <STDIN> )
{
&subst_line ;
if ( /^(#.*)$/o )

View File

@@ -37,7 +37,7 @@ usage()
exit 1;
}
# Check for auxillary files
# Check for auxiliary files
aux_files="../../VERSION ampolish acpolish cipolish"
for i in ${aux_files}; do
if test ! -f ${perltools}/$i; then