source: rtems/bootstrap @ 69537ca9

4.104.114.84.95
Last change on this file since 69537ca9 was d6c83529, checked in by Joel Sherrill <joel.sherrill@…>, on 11/16/99 at 15:48:11

Patch rtems-rc-19991105-1.diff.gz from Ralf Corsepius
<corsepiu@…> which does the following:

This is the configuration cleanup patch:

Main changes:

  • TARGET_ARCH removed
  • target.cfg.in moved to c/make/target.cfg.in (Only configured once for all BSPs of a target)
  • BARE_XXX variables appended to bsp.cfg.in
  • autogen renamed to bootstrap
  • removed stray variables from make/custom/*.cfg

To apply:

cd <source-tree>
rm c/src/make/target.cfg.in
cp autogen bootstrap
mkdir c/make
cp make/target.cfg.in c/make/target.cfg.in
rm make/target.cfg.in
rm autogen
patch -p1 < rtems-rc-19991105-1.diff

  • Property mode set to 100755
File size: 2.9 KB
Line 
1#!/bin/sh
2#
3# helps bootstrapping, when checked out from CVS
4# requires GNU autoconf and GNU automake
5#
6# $Id$
7
8# this is not meant to be exported outside the source tree
9
10# NOTE: Inspired by libtool's autogen script
11
12# to be run from the toplevel directory of RTEMS'
13# source tree
14
15progname=`basename $0`
16verbose="";
17quiet="false"
18mode="generate"
19
20usage()
21{
22  echo
23  echo "usage: ${progname} [-h|-q|-v]"
24  echo
25  echo "options:"
26  echo "        -h .. display this message and exit";
27  echo "        -q .. quiet, don't display directories";
28  echo "        -v .. verbose, pass -v to automake when invoking automake"
29  echo "        -c .. clean, remove all aclocal/autoconf/automake generated files"
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-q|--qu|--qui|--quie|--quiet)
45  quiet="true";
46  shift;;
47-v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
48  verbose="-v";
49  shift;;
50-c|--cl|--cle|--clea|--clean)
51  mode="clean";
52  shift;;
53-*) echo "unknown option $1" ;
54  usage ;;
55*) echo "invalid parameter $1" ;
56  usage ;;
57esac
58done
59
60pwd=`pwd`;
61
62case $mode in
63generate)
64  confs=`find $pwd -name 'configure.in' -print`
65  aclocal_dir=$pwd/aclocal
66  for i in $confs; do
67  dir=`dirname $i`;
68  ( test "$quiet" = "true" || echo "$dir";
69    cd $dir;
70    aclocal -I $aclocal_dir;
71    autoconf;
72    test -f Makefile.am && automake $verbose ;
73    test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
74    test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
75      && echo timestamp > stamp-h.in
76  )
77  done
78  ;;
79clean)
80  test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
81  files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
82  for i in $files; do if test -f $i; then
83    rm -f $i
84    test "$verbose" = "-v" && echo "$i"   
85  fi; done
86
87  test "$quiet" = "true" || echo "removing configure files"
88  files=`find . -name 'configure' -print` ;
89  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
90  for i in $files; do if test -f $i; then
91    rm -f $i
92    test "$verbose" = "-v" && echo "$i"   
93  fi; done
94 
95  test "$quiet" = "true" || echo "removing aclocal.m4 files"
96  files=`find . -name 'aclocal.m4' -print` ;
97  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
98  for i in $files; do if test -f $i; then
99    rm -f $i
100    test "$verbose" = "-v" && echo "$i"   
101  fi; done
102
103  find . -name '*~' -print | xargs rm -f
104  find . -name '*.orig' -print | xargs rm -f
105  find . -name '*.rej' -print | xargs rm -f
106  find . -name 'config.status' -print | xargs rm -f
107  find . -name 'config.log' -print | xargs rm -f
108  find . -name 'config.cache' -print | xargs rm -f
109  find . -name 'Makefile' -print | xargs rm -f
110  find . -name '.deps' -print | xargs rm -rf
111  find . -name '.libs' -print | xargs rm -rf
112  find . -name 'stamp-h.in' | xargs rm -rf
113  ;;
114esac
Note: See TracBrowser for help on using the repository browser.