summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-11-18 06:07:06 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-11-18 06:07:06 +0000
commit3031e6c4c94d4840d6baa7c93de86dcab23aaf38 (patch)
tree31da41e7572ca13a69aab766af389e90b8741ba2 /bootstrap
parent2006-11-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-3031e6c4c94d4840d6baa7c93de86dcab23aaf38.tar.bz2
Add -r (autoreconf).
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap25
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 52b2043845..1dd8c9195d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -86,6 +86,9 @@ case $1 in
-p|--pr|--pre|--prei|--prein|--preins|--preinst)
mode="preinstall";
shift;;
+-r|--re|--rec|--reco|--recon|--reconf)
+ mode="autoreconf";
+ shift;;
-*) echo "unknown option $1" ;
usage ;;
*) echo "invalid parameter $1" ;
@@ -160,6 +163,28 @@ generate)
done
;;
+autoreconf)
+ AUTORECONF=${AUTORECONF-autoreconf}
+ if test -z "$AUTORECONF"; then
+ echo "You must have autoreconf installed to run $program"
+ exit 1
+ fi
+
+ confs=`find . -name 'configure.ac' -print`
+ for i in $confs; do
+ dir=`dirname $i`;
+ configure=`basename $i`;
+ ( test "$quiet" = "true" || echo "$dir";
+ cd $dir;
+ test -n "`grep RTEMS_CHECK_BSPDIR ${configure}`" && \
+ generate_bspdir_acinclude;
+ ${AUTORECONF} -i --no-recursive $verbose;
+ test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
+ && echo timestamp > stamp-h.in
+ )
+ done
+ ;;
+
clean)
test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;