From 77fff592876b976d730868a22287aca9c1142732 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 18 Nov 2006 01:58:17 +0000 Subject: =?UTF-8?q?2006-11-18=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * bootstrap: Add -p (regenerate preinstall.ams). --- ChangeLog | 4 ++++ bootstrap | 21 +++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f56e13b0ed..ceea8a4d6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-11-18 Ralf Corsépius + + * bootstrap: Add -p (regenerate preinstall.ams). + 2006-11-15 Ralf Corsépius * ampolish3: New. diff --git a/bootstrap b/bootstrap index e31765aaa0..52b2043845 100755 --- a/bootstrap +++ b/bootstrap @@ -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 -- cgit v1.2.3