1 # Sanitize.in for include/coff.
3 # Each directory to survive it's way into a release will need a file
4 # like this one called "./.Sanitize". All keyword lines must exist,
5 # and must exist in the order specified by this file. Each directory
6 # in the tree will be processed, top down, in the following order.
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done. Blank lines will also be squashed
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
20 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
21 keep_these_too="${tic80_files} ${keep_these_too}"
23 lose_these_too="${tic80_files} ${lose_these_too}"
26 # All files listed between the "Things-to-keep:" line and the
27 # "Files-to-sed:" line will be kept. All other files will be removed.
28 # Directories listed in this section will have their own Sanitize
29 # called. Directories not listed will be removed in their entirety
68 tic80_files="ChangeLog internal.h"
69 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
70 for i in $tic80_files ; do
71 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
72 if [ -n "${verbose}" ] ; then
73 echo Keeping tic80 stuff in $i
78 for i in $tic80_files ; do
79 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
80 if [ -n "${verbose}" ] ; then
81 echo Removing traces of \"tic80\" from $i...
84 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
85 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
86 if [ -n "${verbose}" ] ; then
87 echo Caching $i in .Recover...
96 beos_files="ChangeLog internal.h"
97 if ( echo $* | grep keep\-beos > /dev/null ) ; then
98 for i in $beos_files ; do
99 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
100 if [ -n "${verbose}" ] ; then
101 echo Keeping beos stuff in $i
106 for i in $beos_files ; do
107 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
108 if [ -n "${verbose}" ] ; then
109 echo Removing traces of \"beos\" from $i...
112 sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/d' < $i > new
113 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
114 if [ -n "${verbose}" ] ; then
115 echo Caching $i in .Recover...