diff options
author | Fred Fish <fnf@specifix.com> | 1996-12-28 04:16:24 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-12-28 04:16:24 +0000 |
commit | 2a0a42d30049b49e09a82d7ff8d1fae7a96ac4d9 (patch) | |
tree | ffe20a13ab063ef701391bd29a974e7f55ff469d /bfd | |
parent | cd6213ffae0d56407113218fe4241078e8bf29f6 (diff) | |
download | binutils-2a0a42d30049b49e09a82d7ff8d1fae7a96ac4d9.zip binutils-2a0a42d30049b49e09a82d7ff8d1fae7a96ac4d9.tar.gz binutils-2a0a42d30049b49e09a82d7ff8d1fae7a96ac4d9.tar.bz2 |
Add TIc80 stuff keep/lose stuff.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/.Sanitize | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index e21a612..43de89a 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -47,6 +47,14 @@ else lose_these_too="${v850_files} ${lose_these_too}" fi +tic80_files="cpu-tic80.c coff-tic80.c" + +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + keep_these_too="${tic80_files} ${keep_these_too}" +else + lose_these_too="${tic80_files} ${lose_these_too}" +fi + # All files listed between the "Things-to-keep:" line and the # "Files-to-sed:" line will be kept. All other files will be removed. # Directories listed in this section will have their own Sanitize @@ -403,6 +411,34 @@ else done fi +tic80_files="ChangeLog archures.c bfd-in2.h config.bfd configure configure.in targets.c" +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping tic80 stuff in $i + fi + fi + done +else + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"tic80\" from $i... + fi + cp $i new + sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv new $i + fi + done +fi + gm_files="ChangeLog ChangeLog.2 config.bfd" if ( echo $* | grep keep\-gm > /dev/null ) ; then for i in $gm_files ; do |