1 # .Sanitize for devo/config
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 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
19 keep_these_too="${keep_these_too} mt-r5900"
21 lose_these_too="${lose_these_too} mt-r5900"
24 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
25 lose_these_too="${lose_these_too} mh-windows"
27 keep_these_too="${keep_these_too} mh-windows"
30 # All files listed between the "Things-to-keep:" line and the
31 # "Do-last:" line will be kept. All other files will be removed.
32 # Directories listed in this section will have their own Sanitize
33 # called. Directories not listed will be removed in their entirety
92 # The lines between the "Do-last:" line and the end of the file
93 # are executed as a /bin/sh shell script after everything else is
98 r5900_files="ChangeLog"
99 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
100 for i in $r5900_files ; do
101 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
102 if [ -n "${verbose}" ] ; then
103 echo Keeping r5900 stuff in $i
108 for i in $r5900_files ; do
109 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
110 if [ -n "${verbose}" ] ; then
111 echo Removing traces of \"r5900\" from $i...
114 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
115 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
116 if [ -n "${verbose}" ] ; then
117 echo Caching $i in .Recover...
126 cygnus_files="mh-go32"
127 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
128 for i in $cygnus_files ; do
129 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
130 if [ -n "${verbose}" ] ; then
131 echo Keeping cygnus stuff in $i
136 for i in $cygnus_files ; do
137 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Removing traces of \"cygnus\" from $i...
142 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
143 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
144 if [ -n "${verbose}" ] ; then
145 echo Caching $i in .Recover...