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