source: rtems/c/update-tools/rtems-polish.sh @ 7e03d10

4.104.114.84.95
Last change on this file since 7e03d10 was 7e03d10, checked in by Joel Sherrill <joel.sherrill@…>, on 03/29/99 at 21:08:04

Patch from Ralf Corsepius <corsepiu@…>:

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)

----------

  1. 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

----------

  1. 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).

----------

  • Property mode set to 100644
File size: 2.1 KB
Line 
1#!/bin/sh
2
3# $Id$
4
5#
6# Search RTEMS source tree for autoconf Makefile.ins and automake
7# Makefile.ams and run c/update-tools/acpolish rsp. c/update-tool/ampolish
8# on them.
9#
10# To be run from the toplevel directory of the source-tree
11#
12
13progname=`basename $0`
14
15perltools=c/update-tools
16ac_do=""
17am_do=""
18ci_do=""
19
20usage()
21{
22  echo
23  echo "usage: ./${perltools}/${progname} [-h][-ac|-am|-ci]";
24  echo
25  echo "options:"
26  echo "        -h .. display this message and exit";
27  echo "        -ac .. run acpolish on all autoconf Makefile.ins"
28  echo "        -am .. run ampolish on all automake Makefile.ams"
29  echo "        -ci .. run cipolish on all configure.in scripts"
30  echo
31  exit 1;
32}
33
34if test ! -f VERSION; then
35  echo "${progname}:"
36  echo "        Please change directory to RTEMS's toplevel directory"
37  exit 1;
38fi
39
40while test $# -gt 0; do
41case $1 in
42-h|--he|--hel|--help)
43  usage ;;
44-ac)
45  ac_do="yes";
46  shift ;;
47-am)
48  am_do="yes";
49  shift ;;
50-ci)
51  ci_do="yes";
52  shift ;;
53-*) echo "unknown option $1" ;
54  usage ;;
55*) echo "invalid parameter $1" ;
56  usage ;;
57esac
58done
59
60if test -z "$ac_do" && test -z "$am_do" && test -z "$ci_do"; then
61  usage
62fi
63
64pwd=`pwd`;
65
66if test -n "$ac_do"; then
67ac_files=`find . -name 'Makefile.in' -print`;
68for f in $ac_files; do
69  i=`dirname $f`
70  dest="$i"
71  if test ! -f $dest/Makefile.am; then
72    echo "polishing : $dest/Makefile.in"
73    ( cd $dest;
74      mv Makefile.in Makefile.in~;
75      ${pwd}/${perltools}/acpolish <Makefile.in~ >Makefile.in
76      rm Makefile.in~
77    )
78  fi
79done
80fi
81
82if test -n "$am_do"; then
83am_files=`find . -name 'Makefile.am' -print`;
84for f in $am_files; do
85  i=`dirname $f`
86  dest="$i"
87    echo "polishing : $dest/Makefile.am"
88    ( cd $dest;
89      mv Makefile.am Makefile.am~;
90      ${pwd}/${perltools}/ampolish <Makefile.am~ >Makefile.am
91      rm Makefile.am~
92    )
93done
94fi
95
96if test -n "$ci_do"; then
97ci_files=`find . -name 'configure.in' -print`;
98for f in $ci_files; do
99  i=`dirname $f`
100  dest="$i"
101    echo "polishing : $dest/configure.in"
102    ( cd $dest;
103      mv configure.in configure.in~;
104      ${pwd}/${perltools}/cipolish <configure.in~ >configure.in
105      rm configure.in~
106    )
107done
108fi
Note: See TracBrowser for help on using the repository browser.