Changeset aa96f47 in rtems


Ignore:
Timestamp:
Jul 27, 2012, 8:02:00 AM (7 years ago)
Author:
Ralf Corsépius <ralf.corsepius@…>
Branches:
4.11, master
Children:
c717fda5
Parents:
69b346b
git-author:
Ralf Corsépius <ralf.corsepius@…> (07/27/12 08:02:00)
git-committer:
Gedare Bloom <gedare@…> (08/06/12 16:42:43)
Message:

Do not remove scripts upon ./bootstrap -c. Introduce ./bootstrap -c -f.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootstrap

    r69b346b raa96f47  
    1717quiet="false"
    1818mode="autoreconf"
     19force=0
    1920
    2021usage()
     
    8182-c|--cl|--cle|--clea|--clean)
    8283  mode="clean";
     84  shift;;
     85-f|--fo|--for|--forc|--force)
     86  force=`expr $force + 1`
    8387  shift;;
    8488-p|--pr|--pre|--prei|--prein|--preins|--preinst)
     
    190194  test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
    191195  files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
    192   for i in $files; do if test -f $i; then
    193     rm -f $i
    194     test "$verbose" = "-v" && echo "$i"   
    195   fi; done
     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
    196202
    197203  test "$quiet" = "true" || echo "removing configure files"
    198204  files=`find . -name 'configure' -print` ;
    199   test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
    200   for i in $files; do if test -f $i; then
    201     rm -f $i config.sub config.guess install-sh missing mkinstalldirs
    202 # rm -f depcomp compile texinfo.tex mdate-sh
    203     test "$verbose" = "-v" && echo "$i"   
    204   fi; done
    205  
     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  if test $force -gt 0; then
     213    needles=""
     214    if test $force -gt 1; then
     215      # Manually maintained
     216      needles="$needles config.sub"
     217      needles="$needles config.guess"
     218    fi
     219    if test $force -gt 0; then
     220      # Inherited from automake
     221      needles="$needles compile"
     222      needles="$needles depcomp"
     223      needles="$needles install-sh"
     224      needles="$needles missing"
     225      needles="$needles mdate-sh"
     226      needles="$needles texinfo.tex"
     227    fi
     228    for j in $needles; do
     229      files=`find . -name "$j" -print`
     230      for i in $files; do
     231        if test -f $i; then
     232          rm -f $i
     233          test "$verbose" = "-v" && echo "$i"
     234        fi;
     235      done
     236    done
     237  fi
     238
    206239  test "$quiet" = "true" || echo "removing aclocal.m4 files"
    207240  files=`find . -name 'aclocal.m4' -print` ;
    208241  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
    209   for i in $files; do if test -f $i; then
    210     rm -f $i
    211     test "$verbose" = "-v" && echo "$i"   
    212   fi; done
     242  for i in $files; do
     243    if test -f $i; then
     244      rm -f $i
     245      test "$verbose" = "-v" && echo "$i"   
     246    fi;
     247  done
    213248
    214249  find . -name '*~' -print | xargs rm -f
Note: See TracChangeset for help on using the changeset viewer.