1 # Sanitize.in for sim/m32r
4 # Each directory to survive it's way into a release will need a file
5 # like this one called "./.Sanitize". All keyword lines must exist,
6 # and must exist in the order specified by this file. Each directory
7 # in the tree will be processed, top down, in the following order.
9 # Hash started lines like this one are comments and will be deleted
10 # before anything else is done. Blank lines will also be squashed
13 # The lines between the "Do-first:" line and the "Things-to-keep:"
14 # line are executed as a /bin/sh shell script before anything else is
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
55 cygnus_files="ChangeLog Makefile.in"
56 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
57 for i in $cygnus_files ; do
58 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
59 if [ -n "${verbose}" ] ; then
60 echo Keeping cygnus stuff in $i
65 for i in $cygnus_files ; do
66 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
67 if [ -n "${verbose}" ] ; then
68 echo Removing traces of \"cygnus\" from $i...
71 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
72 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
73 if [ -n "${verbose}" ] ; then
74 echo Caching $i in .Recover...
83 m32rx_files="ChangeLog Makefile.in sim-if.c sim-main.h"
84 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
85 for i in $m32rx_files ; do
86 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
87 if [ -n "${verbose}" ] ; then
88 echo Keeping m32rx stuff in $i
93 for i in $m32rx_files ; do
94 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Removing traces of \"m32rx\" from $i...
99 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
100 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
101 if [ -n "${verbose}" ] ; then
102 echo Caching $i in .Recover...