1 # .Sanitize for devo/include.
3 # Each directory to survive its 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
14 # done in this directory.
19 # All files listed between the "Things-to-keep:" line and the
20 # "Files-to-sed:" line will be kept. All other files will be removed.
21 # Directories listed in this section will have their own Sanitize
22 # called. Directories not listed will be removed in their entirety
62 arc_files="ChangeLog dis-asm.h"
63 if ( echo $* | grep keep\-arc > /dev/null ) ; then
64 for i in $arc_files ; do
65 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
66 if [ -n "${verbose}" ] ; then
67 echo Keeping arc stuff in $i
72 for i in $arc_files ; do
73 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
74 if [ -n "${verbose}" ] ; then
75 echo Removing traces of \"arc\" from $i...
78 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
79 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
80 if [ -n "${verbose}" ] ; then
81 echo Caching $i in .Recover...
91 m32r_files="ChangeLog dis-asm.h"
92 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
93 for i in $m32r_files ; do
94 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping m32r stuff in $i
101 for i in $m32r_files ; do
102 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"m32r\" from $i...
107 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
119 v850_files="ChangeLog dis-asm.h"
120 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
121 for i in $v850_files ; do
122 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
123 if [ -n "${verbose}" ] ; then
124 echo Keeping v850 stuff in $i
129 for i in $v850_files ; do
130 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
131 if [ -n "${verbose}" ] ; then
132 echo Removing traces of \"v850\" from $i...
135 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
136 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
137 if [ -n "${verbose}" ] ; then
138 echo Caching $i in .Recover...
147 tic80_files="ChangeLog dis-asm.h"
148 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
149 for i in $tic80_files ; do
150 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Keeping tic80 stuff in $i
157 for i in $tic80_files ; do
158 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
159 if [ -n "${verbose}" ] ; then
160 echo Removing traces of \"tic80\" from $i...
163 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
164 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
165 if [ -n "${verbose}" ] ; then
166 echo Caching $i in .Recover...
176 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
177 echo '***' Some mentions of Sanitize are still left in $i! 1>&2