diff options
author | Doug Evans <dje@google.com> | 1998-01-05 13:33:54 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-01-05 13:33:54 +0000 |
commit | 70e4ceaccba5f80a3bcbbfdca422d21d53d701a0 (patch) | |
tree | b3dcd153518682090a1e319195f042a813d1bb6d /include/opcode/.Sanitize | |
parent | 0b0bd98b801a29994c2d794aad15e958b7f20800 (diff) | |
download | gdb-70e4ceaccba5f80a3bcbbfdca422d21d53d701a0.zip gdb-70e4ceaccba5f80a3bcbbfdca422d21d53d701a0.tar.gz gdb-70e4ceaccba5f80a3bcbbfdca422d21d53d701a0.tar.bz2 |
opcode header file for the txvu
Diffstat (limited to 'include/opcode/.Sanitize')
-rw-r--r-- | include/opcode/.Sanitize | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/opcode/.Sanitize b/include/opcode/.Sanitize index 615390f..b727619 100644 --- a/include/opcode/.Sanitize +++ b/include/opcode/.Sanitize @@ -31,6 +31,14 @@ else lose_these_too="${tic80_files} ${lose_these_too}" fi +sky_files="txvu.h" + +if ( echo $* | grep keep\-sky > /dev/null ) ; then + keep_these_too="${sky_files} ${keep_these_too}" +else + lose_these_too="${sky_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 @@ -241,6 +249,34 @@ else done fi +sky_files="ChangeLog" +if ( echo $* | grep keep\-sky > /dev/null ) ; then + for i in $sky_files ; do + if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping sky stuff in $i + fi + fi + done +else + for i in $sky_files ; do + if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"sky\" from $i... + fi + cp $i new + sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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 + coldfire_files="ChangeLog m68k.h" if ( echo $* | grep keep\-coldfire > /dev/null ) ; then for i in $coldfire_files ; do |