mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
2006-11-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* bootstrap: Add -p (regenerate preinstall.ams).
This commit is contained in:
@@ -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>
|
2006-11-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* ampolish3: New.
|
* ampolish3: New.
|
||||||
|
|||||||
21
bootstrap
21
bootstrap
@@ -22,13 +22,14 @@ mode="generate"
|
|||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
echo "usage: ${progname} [-h|-q|-v]"
|
echo "usage: ${progname} [-c|-p|-h] [-q][-v]"
|
||||||
echo
|
echo
|
||||||
echo "options:"
|
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 " -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
|
echo
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
@@ -82,6 +83,9 @@ case $1 in
|
|||||||
-c|--cl|--cle|--clea|--clean)
|
-c|--cl|--cle|--clea|--clean)
|
||||||
mode="clean";
|
mode="clean";
|
||||||
shift;;
|
shift;;
|
||||||
|
-p|--pr|--pre|--prei|--prein|--preins|--preinst)
|
||||||
|
mode="preinstall";
|
||||||
|
shift;;
|
||||||
-*) echo "unknown option $1" ;
|
-*) echo "unknown option $1" ;
|
||||||
usage ;;
|
usage ;;
|
||||||
*) echo "invalid parameter $1" ;
|
*) echo "invalid parameter $1" ;
|
||||||
@@ -90,6 +94,15 @@ esac
|
|||||||
done
|
done
|
||||||
|
|
||||||
case $mode in
|
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)
|
generate)
|
||||||
AUTOCONF=${AUTOCONF-autoconf}
|
AUTOCONF=${AUTOCONF-autoconf}
|
||||||
if test -z "$AUTOCONF"; then
|
if test -z "$AUTOCONF"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user