Changeset 22fb90e4 in rtems
- Timestamp:
- 07/27/12 13:38:04 (12 years ago)
- Branches:
- 4.11, 5, master
- Children:
- fd71610
- Parents:
- 06e1086
- git-author:
- Ralf Corsépius <ralf.corsepius@…> (07/27/12 13:38:04)
- git-committer:
- Ralf Corsépius <ralf.corsepius@…> (10/09/12 17:26:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootstrap
r06e1086 r22fb90e4 1 #! 1 #!/bin/sh 2 2 # 3 3 # helps bootstrapping, when checked out from CVS … … 14 14 top_srcdir=`dirname $0` 15 15 16 verbose="" ;16 verbose="" 17 17 quiet="false" 18 18 mode="autoreconf" … … 31 31 echo " -v .. verbose, pass -v to autotools" 32 32 echo 33 exit 1 ;33 exit 1 34 34 } 35 35 … … 57 57 EOF 58 58 if cmp -s acinclude.m4 acinclude.m4~ 2>/dev/null; then 59 echo "acinclude.m4 is unchanged" ;59 echo "acinclude.m4 is unchanged" 60 60 else 61 61 cp acinclude.m4~ acinclude.m4 … … 67 67 echo "${progname}:" 68 68 echo " Installation problem: Can't find file aclocal/version.m4" 69 exit 1 ;69 exit 1 70 70 fi 71 71 … … 75 75 usage ;; 76 76 -q|--qu|--qui|--quie|--quiet) 77 quiet="true" ;77 quiet="true" 78 78 shift;; 79 79 -v|--ve|--ver|--verb|--verbo|--verbos|--verbose) 80 verbose="-v" ;80 verbose="-v" 81 81 shift;; 82 82 -c|--cl|--cle|--clea|--clean) 83 mode="clean" ;83 mode="clean" 84 84 shift;; 85 85 -f|--fo|--for|--forc|--force) … … 87 87 shift;; 88 88 -p|--pr|--pre|--prei|--prein|--preins|--preinst) 89 mode="preinstall" ;89 mode="preinstall" 90 90 shift;; 91 91 -r|--re|--rec|--reco|--recon|--reconf) 92 mode="autoreconf" ;92 mode="autoreconf" 93 93 shift;; 94 94 -g|--ge|--gen|--gene|--gener|--genera|--generat|--generate) 95 mode="generate" ;96 shift;; 97 -*) echo "unknown option $1" ;95 mode="generate" 96 shift;; 97 -*) echo "unknown option $1" 98 98 usage ;; 99 *) echo "invalid parameter $1" ;99 *) echo "invalid parameter $1" 100 100 usage ;; 101 101 esac … … 106 106 confs=`find . -name Makefile.am -exec grep -l 'include .*/preinstall\.am' {} \;` 107 107 for i in $confs; do 108 dir=$(dirname $i) ;108 dir=$(dirname $i) 109 109 test "$quite" = "true" || echo "Generating $dir/preinstall.am" 110 110 ${top_srcdir}/ampolish3 "$dir/Makefile.am" > "$dir/preinstall.am" … … 118 118 exit 1 119 119 fi 120 120 121 121 AUTOHEADER=${AUTOHEADER-autoheader} 122 122 if test -z "$AUTOHEADER"; then … … 124 124 exit 1 125 125 fi 126 126 127 127 AUTOMAKE=${AUTOMAKE-automake} 128 128 if test -z "$AUTOMAKE"; then … … 130 130 exit 1 131 131 fi 132 132 133 133 ACLOCAL=${ACLOCAL-aclocal} 134 134 if test -z "$ACLOCAL"; then … … 146 146 confs=`find . \( -name 'configure.in' -o -name 'configure.ac' \) -print` 147 147 for i in $confs; do 148 dir=`dirname $i` ;149 configure=`basename $i` ;150 ( test "$quiet" = "true" || echo "$dir" ;151 cd $dir ;148 dir=`dirname $i` 149 configure=`basename $i` 150 ( test "$quiet" = "true" || echo "$dir" 151 cd $dir 152 152 test -n "`grep RTEMS_CHECK_BSPDIR ${configure}`" && \ 153 generate_bspdir_acinclude ;153 generate_bspdir_acinclude 154 154 pat="s,\$(RTEMS_TOPdir),${aclocal_dir},g" 155 155 aclocal_args=`grep '^[ ]*ACLOCAL_AMFLAGS' Makefile.am | \ 156 sed -e 's%.*ACLOCAL_AMFLAGS.*\=[ ]*%%g' -e $pat ` ;156 sed -e 's%.*ACLOCAL_AMFLAGS.*\=[ ]*%%g' -e $pat ` 157 157 test "$verbose" = "-v" && echo "${ACLOCAL} $aclocal_args" 158 ${ACLOCAL} $aclocal_args ;158 ${ACLOCAL} $aclocal_args 159 159 test -n "`grep CONFIG_HEADER ${configure}`" && ${AUTOHEADER} \ 160 && test "$verbose" = "-v" && echo "${AUTOHEADER}" ;160 && test "$verbose" = "-v" && echo "${AUTOHEADER}" 161 161 test -n "`grep RTEMS_BSP_CONFIGURE ${configure}`" && ${AUTOHEADER} \ 162 && test "$verbose" = "-v" && echo "${AUTOHEADER}" ;163 test -f Makefile.am && ${AUTOMAKE} -a -c $verbose ;164 ${AUTOCONF} ;162 && test "$verbose" = "-v" && echo "${AUTOHEADER}" 163 test -f Makefile.am && ${AUTOMAKE} -a -c $verbose 164 ${AUTOCONF} 165 165 test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \ 166 166 && echo timestamp > stamp-h.in … … 178 178 confs=`find . -name 'configure.ac' -print` 179 179 for i in $confs; do 180 dir=`dirname $i` ;181 configure=`basename $i` ;182 ( test "$quiet" = "true" || echo "$dir" ;183 cd $dir ;180 dir=`dirname $i` 181 configure=`basename $i` 182 ( test "$quiet" = "true" || echo "$dir" 183 cd $dir 184 184 test -n "`grep RTEMS_CHECK_BSPDIR ${configure}`" && \ 185 generate_bspdir_acinclude ;186 ${AUTORECONF} -i --no-recursive $verbose ;185 generate_bspdir_acinclude 186 ${AUTORECONF} -i --no-recursive $verbose 187 187 test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \ 188 188 && echo timestamp > stamp-h.in … … 193 193 clean) 194 194 test "$quiet" = "true" || echo "removing automake generated Makefile.in files" 195 files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ; 196 for i in $files; do 197 if test -f $i; then 198 rm -f $i 199 test "$verbose" = "-v" && echo "$i" 200 fi; 201 done 202 203 test "$quiet" = "true" || echo "removing configure files" 204 files=`find . -name 'configure' -print` ; 205 for i in $files; do 195 files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` 196 for i in $files; do 206 197 if test -f $i; then 207 198 rm -f $i 208 199 test "$verbose" = "-v" && echo "$i" 209 fi; 210 done 211 200 fi 201 done 202 203 test "$quiet" = "true" || echo "removing configure files" 204 files=`find . -name 'configure' -print` 205 for i in $files; do 206 if test -f $i; then 207 rm -f $i 208 test "$verbose" = "-v" && echo "$i" 209 fi 210 done 211 212 212 if test $force -gt 0; then 213 213 needles="" … … 228 228 for j in $needles; do 229 229 files=`find . -name "$j" -print` 230 for i in $files; do 230 for i in $files; do 231 231 if test -f $i; then 232 232 rm -f $i 233 233 test "$verbose" = "-v" && echo "$i" 234 fi ;234 fi 235 235 done 236 236 done … … 238 238 239 239 test "$quiet" = "true" || echo "removing aclocal.m4 files" 240 files=`find . -name 'aclocal.m4' -print` ;241 test "$verbose" = "-v" && test -n "$files" && echo "$files" ;242 for i in $files; do 240 files=`find . -name 'aclocal.m4' -print` 241 test "$verbose" = "-v" && test -n "$files" && echo "$files" 242 for i in $files; do 243 243 if test -f $i; then 244 244 rm -f $i 245 test "$verbose" = "-v" && echo "$i" 246 fi ;245 test "$verbose" = "-v" && echo "$i" 246 fi 247 247 done 248 248
Note: See TracChangeset
for help on using the changeset viewer.