1 # Sanitize.in for devo.
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
20 echo Sanitizing `pwd`...
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
60 echo Looking for signs of \"v9\"...
62 # Don't try to clean directories here, as the 'mv' command will fail.
63 # Also, grep fails on NFS mounted directories.
64 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
66 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
67 echo Keeping v9 stuff in $i
72 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
73 echo Cleaning the \"v9\" out of $i...
75 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
76 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
84 echo Looking for signs of \"life\"...
86 # Don't try to clean directories here, as the 'mv' command will fail.
87 # Also, grep fails on NFS mounted directories.
88 if ( echo $* | grep keep\-life > /dev/null ) ; then
90 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
91 echo Keeping life alive in $i
96 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
97 echo Beating the \"life\" out of $i...
99 sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
100 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
108 if grep 'sanitize' * ; then
109 echo Some mentions of Sanitize are still left in the sources!