forked from Imagelibrary/rtems
Yet some more modifications, I would recommend to be considered before
releasing a snapshot:
1. Cleanup to aclocal/
cvs rm -f aclocal/cygwin.m4
cvs rm -f aclocal/exeext.m4
They are neither used nor needed anymore, however they also don't
disturb (we use autoconf-2.13's AC_EXEEXT instead, now)
----------
2. rtems-rc-19990328-0.diff
Some (minor) bug-fixes:
* make/Templates/Makefile.inc.in: use the new installation directory
($(prefix)/ instead of $(prefix)/rtems/)
* c/src/exec/score/tools/generic/Makefile.am: added line to include local.am
* c/src/exec/score/tools/*/configure.in: added CVS Id header
----------
3. rtems-rc-19990328-1.diff
Enhancements and cleanups to autogen, rtems-polish.sh, configure.in etc.
* autogen: Use the file "VERSION" to detect RTEMS toplevel directory,
extended usage-message, use "find -print"
* c/update-tools/cipolish: New script to beautify configure.in scripts
* c/update-tools/rtems-polish.sh: Use the file "VERSION" to detect RTEMS
toplevel directory, extended usage-message, added variable for perl
scripts' subdirectory, use "find -print", cipolish support, new options
-ac -am -ci.
* aclocal/*.m4, configure.in: moved some AC_SUBST lines to aclocal/*.m4
(reduces size of configure.in
scripts, eases splitting configure.in scripts).
----------
69 lines
1.3 KiB
Bash
69 lines
1.3 KiB
Bash
#!/bin/sh
|
|
#
|
|
# helps bootstrapping, when checked out from CVS
|
|
# requires GNU autoconf and GNU automake
|
|
#
|
|
# $Id$
|
|
|
|
# this is not meant to be exported outside the source tree
|
|
|
|
# NOTE: Inspired by libtool's autogen script
|
|
|
|
# to be run from the toplevel directory of RTEMS'
|
|
# source tree
|
|
|
|
progname=`basename $0`
|
|
am_verbose="";
|
|
quiet="false"
|
|
|
|
usage()
|
|
{
|
|
echo
|
|
echo "usage: ${progname} [-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
|
|
exit 1;
|
|
}
|
|
|
|
if test ! -f VERSION; then
|
|
echo "${progname}:"
|
|
echo " Please change directory to RTEMS's toplevel directory"
|
|
exit 1;
|
|
fi
|
|
|
|
while test $# -gt 0; do
|
|
case $1 in
|
|
-h|--he|--hel|--help)
|
|
usage ;;
|
|
-q|--qu|--qui|--quie|--quiet)
|
|
quiet="true";
|
|
shift;;
|
|
-v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
|
|
verbose="-v";
|
|
shift;;
|
|
-*) echo "unknown option $1" ;
|
|
usage ;;
|
|
*) echo "invalid parameter $1" ;
|
|
usage ;;
|
|
esac
|
|
done
|
|
|
|
pwd=`pwd`;
|
|
confs=`find $pwd -name 'configure.in' -print`
|
|
|
|
aclocal_dir=$pwd/aclocal
|
|
for i in $confs; do
|
|
dir=`dirname $i`;
|
|
( test "$quiet" = "true" || echo "$dir";
|
|
cd $dir;
|
|
aclocal -I $aclocal_dir;
|
|
autoconf;
|
|
test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
|
|
test -f Makefile.am && automake $verbose ;
|
|
)
|
|
done
|