use m4 rather than gm4
[deliverable/binutils-gdb.git] / .Sanitize
1 # .Sanitize for devo.
2
3 # Each directory to survive it's 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.
7
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
10 # out.
11
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.
15
16 Do-first:
17
18 # All files listed between the "Things-to-keep:" line and the
19 # "Do-last:" 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
22 # with rm -rf.
23
24 Things-to-keep:
25
26 ChangeLog
27 Makefile.in
28 README
29 autoconf
30 bfd
31 binutils
32 bison
33 cfg-paper.texi
34 clib
35 config
36 config.sub
37 configure
38 configure.bat
39 configure.in
40 configure.man
41 configure.texi
42 cvs
43 diff
44 emacs
45 gas
46 gcc
47 gdb
48 gdbm
49 gdbtest
50 glob
51 gprof
52 grep
53 include
54 ispell
55 ld
56 libg++
57 libgcc
58 libiberty
59 make
60 mmalloc
61 move-if-change
62 newlib
63 patch
64 rcs
65 readline
66 send_pr
67 standards.texi
68 texinfo
69 tgas
70
71 # The lines between the "Do-last:" line and the end of the file
72 # are executed as a /bin/sh shell script after everything else is
73 # done.
74
75 Do-last:
76
77 echo Looking for signs of \"v9\"...
78
79 # Don't try to clean directories here, as the 'mv' command will fail.
80 # Also, grep fails on NFS mounted directories.
81 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
82 for i in * ; do
83 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
84 echo Keeping v9 stuff in $i
85 fi
86 done
87 else
88 for i in * ; do
89 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
90 echo Cleaning the \"v9\" out of $i...
91 cp $i new
92 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
93 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
94 mv $i .Recover
95 fi
96 mv new $i
97 fi
98 done
99 fi
100
101 echo Looking for signs of \"life\"...
102
103 # Don't try to clean directories here, as the 'mv' command will fail.
104 # Also, grep fails on NFS mounted directories.
105 if ( echo $* | grep keep\-life > /dev/null ) ; then
106 for i in * ; do
107 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
108 echo Keeping life alive in $i
109 fi
110 done
111 else
112 for i in * ; do
113 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
114 echo Beating the \"life\" out of $i...
115 cp $i new
116 sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
117 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
118 mv $i .Recover
119 fi
120 mv new $i
121 fi
122 done
123 fi
124
125 for i in * ; do
126 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
127 echo Some mentions of Sanitize are still left in $i!
128 fi
129 done
130
131 # eof
This page took 0.032775 seconds and 4 git commands to generate.