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