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 # "Files-to-sed:" 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
90 r5900_files="ChangeLog"
92 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
93 for i in $r5900_files ; do
94 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping r5900 stuff in $i
101 for i in $r5900_files ; do
102 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"r5900\" from $i...
107 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
119 cygnus_files="mh-go32"
121 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
122 for i in $cygnus_files ; do
123 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Keeping cygnus stuff in $i
130 for i in $cygnus_files ; do
131 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Removing traces of \"cygnus\" from $i...
136 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
137 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
138 if [ -n "${verbose}" ] ; then
139 echo Caching $i in .Recover...