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