From 0ff37e686676453cfa6addb4ddfc71ada9e4c4dd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 7 Jan 2000 14:47:02 +0000 Subject: Patch rtems-rc-20000104-0.diff from Ralf Corsepius which is described below: This one is a (minor) patch in preparation of the upcoming patches. It actually is an excerpt of the upcoming patches and therefore is completely untested in this standalone form, but I don't expect it to break something. The essential changes in this patch are: * An update to rtems-polish.sh (Now can also be run in subdirectories) * A bug-fix for the libcpu/powerpc (A directory was missing from SUBDIRS in a Makefile.am) * An update to gensh2.cfg. * Cleanups/Enhancements to configuration files To apply: cd patch -p0 < rtems-rc-20000104-0.diff cvs rm -f c/src/lib/libbsp/Makefile.am.new --- tools/update/rtems-polish.sh | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'tools/update/rtems-polish.sh') diff --git a/tools/update/rtems-polish.sh b/tools/update/rtems-polish.sh index 46c63b5aab..83e3d0e390 100755 --- a/tools/update/rtems-polish.sh +++ b/tools/update/rtems-polish.sh @@ -11,8 +11,14 @@ # progname=`basename $0` +rootdir=`dirname $0` + +# Get the absolute path to the perltools +pwd=`pwd` +cd $rootdir +perltools=`pwd` +cd $pwd -perltools=tools/update ac_do="" am_do="" ci_do="" @@ -31,11 +37,15 @@ usage() exit 1; } -if test ! -f VERSION; then - echo "${progname}:" - echo " Please change directory to RTEMS's toplevel directory" - exit 1; -fi +# Check for auxillary files +aux_files="../../VERSION ampolish acpolish cipolish" +for i in ${aux_files}; do + if test ! -f ${perltools}/$i; then + echo "${progname}:" + echo " Missing $perltools/$i" + exit 1; + fi +done while test $# -gt 0; do case $1 in @@ -72,7 +82,7 @@ for f in $ac_files; do echo "polishing : $dest/Makefile.in" ( cd $dest; mv Makefile.in Makefile.in~; - ${pwd}/${perltools}/acpolish Makefile.in + ${perltools}/acpolish Makefile.in rm Makefile.in~ ) fi @@ -87,7 +97,7 @@ for f in $am_files; do echo "polishing : $dest/Makefile.am" ( cd $dest; mv Makefile.am Makefile.am~; - ${pwd}/${perltools}/ampolish Makefile.am + ${perltools}/ampolish Makefile.am rm Makefile.am~ ) done @@ -101,7 +111,7 @@ for f in $ci_files; do echo "polishing : $dest/configure.in" ( cd $dest; mv configure.in configure.in~; - ${pwd}/${perltools}/cipolish configure.in + ${perltools}/cipolish configure.in rm configure.in~ ) done -- cgit v1.2.3