summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-03-22 14:04:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-03-22 14:04:02 +0000
commit94795bbda62c8c6a2d6febb87a67230c21b17e9d (patch)
tree09e0e4a09e397c720d02df0a855c7864f4cda8a4 /bootstrap
parentRemoved referecnes to BSP specific files. Other corrections (diff)
downloadrtems-94795bbda62c8c6a2d6febb87a67230c21b17e9d.tar.bz2
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.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap18
1 files changed, 13 insertions, 5 deletions
diff --git a/bootstrap b/bootstrap
index 24470802e7..c06dc86d06 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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'` ;