diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-11-18 01:58:17 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-11-18 01:58:17 +0000 |
commit | 77fff592876b976d730868a22287aca9c1142732 (patch) | |
tree | ab66ee4e8fe062f8b4681c0cdebe9cf48523b602 | |
parent | 2006-11-17 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-77fff592876b976d730868a22287aca9c1142732.tar.bz2 |
2006-11-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* bootstrap: Add -p (regenerate preinstall.ams).
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | bootstrap | 21 |
2 files changed, 21 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2006-11-18 Ralf Corsépius <ralf.corsepius@rtems.org> + + * bootstrap: Add -p (regenerate preinstall.ams). + 2006-11-15 Ralf Corsépius <ralf.corsepius@rtems.org> * ampolish3: New. @@ -22,13 +22,14 @@ mode="generate" usage() { echo - echo "usage: ${progname} [-h|-q|-v]" + echo "usage: ${progname} [-c|-p|-h] [-q][-v]" echo echo "options:" - echo " -h .. display this message and exit"; - echo " -q .. quiet, don't display directories"; - echo " -v .. verbose, pass -v to automake when invoking automake" echo " -c .. clean, remove all aclocal/autoconf/automake generated files" + echo " -h .. display this message and exit" + echo " -p .. regenerate preinstall.am files" + echo " -q .. quiet, don't display directories" + echo " -v .. verbose, pass -v to autotools" echo exit 1; } @@ -82,6 +83,9 @@ case $1 in -c|--cl|--cle|--clea|--clean) mode="clean"; shift;; +-p|--pr|--pre|--prei|--prein|--preins|--preinst) + mode="preinstall"; + shift;; -*) echo "unknown option $1" ; usage ;; *) echo "invalid parameter $1" ; @@ -90,6 +94,15 @@ esac done case $mode in +preinstall) + confs=`find -name Makefile.am -exec grep -l 'include .*/preinstall\.am' {} \;` + for i in $confs; do + dir=$(dirname $i); + test "$quite" = "true" || echo "Generating $dir/preinstall.am" + ${top_srcdir}/ampolish3 "$dir/Makefile.am" > "$dir/preinstall.am" + done + ;; + generate) AUTOCONF=${AUTOCONF-autoconf} if test -z "$AUTOCONF"; then |