Changeset 77fff592 in rtems for bootstrap


Ignore:
Timestamp:
Nov 18, 2006, 1:58:17 AM (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
3fe615ba
Parents:
76ce226
Message:

2006-11-18 Ralf Corsépius <ralf.corsepius@…>

  • bootstrap: Add -p (regenerate preinstall.ams).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootstrap

    r76ce226 r77fff592  
    2323{
    2424  echo
    25   echo "usage: ${progname} [-h|-q|-v]"
     25  echo "usage: ${progname} [-c|-p|-h] [-q][-v]"
    2626  echo
    2727  echo "options:"
    28   echo "        -h .. display this message and exit";
    29   echo "        -q .. quiet, don't display directories";
    30   echo "        -v .. verbose, pass -v to automake when invoking automake"
    3128  echo "        -c .. clean, remove all aclocal/autoconf/automake generated files"
     29  echo "        -h .. display this message and exit"
     30  echo "        -p .. regenerate preinstall.am files"
     31  echo "        -q .. quiet, don't display directories"
     32  echo "        -v .. verbose, pass -v to autotools"
    3233  echo
    3334  exit 1;
     
    8384  mode="clean";
    8485  shift;;
     86-p|--pr|--pre|--prei|--prein|--preins|--preinst)
     87  mode="preinstall";
     88  shift;;
    8589-*) echo "unknown option $1" ;
    8690  usage ;;
     
    9195
    9296case $mode in
     97preinstall)
     98  confs=`find -name Makefile.am -exec grep -l 'include .*/preinstall\.am' {} \;`
     99  for i in $confs; do
     100    dir=$(dirname $i);
     101    test "$quite" = "true" || echo "Generating $dir/preinstall.am"
     102    ${top_srcdir}/ampolish3 "$dir/Makefile.am" > "$dir/preinstall.am"
     103  done
     104  ;;
     105
    93106generate)
    94107  AUTOCONF=${AUTOCONF-autoconf}
Note: See TracChangeset for help on using the changeset viewer.