1 # .Sanitize for devo/ld.
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.
18 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
91 arc_files="ChangeLog configure.in configure.tgt Makefile.in"
93 if ( echo $* | grep keep\-arc > /dev/null ) ; then
94 for i in $arc_files ; do
95 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
96 if [ -n "${verbose}" ] ; then
97 echo Keeping arc stuff in $i
102 for i in $arc_files ; do
103 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
104 if [ -n "${verbose}" ] ; then
105 echo Removing traces of \"arc\" from $i...
108 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
109 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
110 if [ -n "${verbose}" ] ; then
111 echo Caching $i in .Recover...
120 d10v_files="ChangeLog configure.in configure.tgt Makefile.in"
122 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
123 for i in $d10v_files ; do
124 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
125 if [ -n "${verbose}" ] ; then
126 echo Keeping d10v stuff in $i
131 for i in $d10v_files ; do
132 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
133 if [ -n "${verbose}" ] ; then
134 echo Removing traces of \"d10v\" from $i...
137 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
138 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
139 if [ -n "${verbose}" ] ; then
140 echo Caching $i in .Recover...
149 v850_files="ChangeLog configure.tgt Makefile.in"
151 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
152 for i in $v850_files ; do
153 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
154 if [ -n "${verbose}" ] ; then
155 echo Keeping v850 stuff in $i
160 for i in $v850_files ; do
161 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
162 if [ -n "${verbose}" ] ; then
163 echo Removing traces of \"v850\" from $i...
166 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
167 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
168 if [ -n "${verbose}" ] ; then
169 echo Caching $i in .Recover...
179 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
180 echo '***' Some mentions of Sanitize are still left in $i! 1>&2