Lint
[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 etc
52 expect
53 flex
54 gas
55 gcc
56 gdb
57 gdbm
58 gdbtest
59 glob
60 gprof
61 grep
62 include
63 install.texinfo
64 ispell
65 ld
66 libg++
67 libgcc
68 libiberty
69 make
70 mmalloc
71 move-if-change
72 newlib
73 opcodes
74 patch
75 prms
76 rcs
77 readline
78 send_pr
79 standards.texi
80 tcl
81 test-build.mk
82 texinfo
83 tgas
84 z8ksim
85
86 # The lines between the "Do-last:" line and the end of the file
87 # are executed as a /bin/sh shell script after everything else is
88 # done.
89
90 Do-last:
91
92 echo Looking for signs of \"v9\"...
93
94 # Don't try to clean directories here, as the 'mv' command will fail.
95 # Also, grep fails on NFS mounted directories.
96 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
97 for i in * ; do
98 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
99 echo Keeping v9 stuff in $i
100 fi
101 done
102 else
103 for i in * ; do
104 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
105 echo Cleaning the \"v9\" out of $i...
106 cp $i new
107 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 mv $i .Recover
110 fi
111 mv new $i
112 fi
113 done
114 fi
115
116 for i in * ; do
117 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
118 echo Some mentions of Sanitize are still left in $i!
119 fi
120 done
121
122 # eof
This page took 0.03469 seconds and 4 git commands to generate.