added things-to-lose sections
[deliverable/binutils-gdb.git] / ld / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this
17
18 Do-first:
19
20 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
21 keep_these_too=""
22 fi
23
24 # All files listed between the "Things-to-keep:" line and the
25 # "Files-to-sed:" line will be kept. All other files will be removed.
26 # Directories listed in this section will have their own Sanitize
27 # called. Directories not listed will be removed in their entirety
28 # with rm -rf.
29
30 Things-to-keep:
31
32 ChangeLog
33 Makefile.in
34 NEWS
35 README
36 TODO
37 a29k.sc-sh
38 a29k.sh
39 aout.sc-sh
40 cdtest-foo.cc
41 cdtest-foo.h
42 cdtest-func.cc
43 cdtest-main.cc
44 cdtest.exp
45 config
46 config.h
47 configure.bat
48 configure.in
49 ebmon29k.sc-sh
50 ebmon29k.sh
51 generic.em
52 genscripts.sh
53 h8-doc.texi
54 ld.1
55 gen-doc.texi
56 gld960.em
57 gld960.sh
58 go32.sh
59 hp300bsd.sh
60 hp3hpux.sh
61 hppaosf.em
62 hppaosf.sc-sh
63 hppaosf.sh
64 h8300hms.em
65 h8300hms.sc-sh
66 h8300hms.sh
67 h8500hms.em
68 h8500hms.sc-sh
69 h8500hms.sh
70 i386aout.sh
71 i386bsd.sh
72 i386coff.sc-sh
73 i386coff.sh
74 i960.sc-sh
75 ld.h
76 ld.texinfo
77 ldctor.c
78 ldctor.h
79 ldemul.c
80 ldemul.h
81 lderror.c
82 lderror.h
83 ldexp.c
84 ldexp.h
85 ldfile.c
86 ldfile.h
87 ldgram.y
88 ldindr.c
89 ldindr.h
90 ldint.texinfo
91 ldlang.c
92 ldlang.h
93 ldlex.h
94 ldlex.l
95 ldmain.c
96 ldmain.h
97 ldmisc.c
98 ldmisc.h
99 ldsym.c
100 ldsym.h
101 ldver.c
102 ldver.h
103 ldwarn.c
104 ldwarn.h
105 ldwrite.c
106 ldwrite.h
107 lexsup.c
108 lnk960.em
109 lnk960.sh
110 m68kcoff.sc-sh
111 m68kcoff.sh
112 m88kbcs.sc-sh
113 m88kbcs.sh
114 mips.sc-sh
115 mipsbig.sh
116 mipsbsd.sc-sh
117 mipsbsd.sh
118 mipsidt.sh
119 mipslit.sh
120 mri.c
121 mri.h
122 go32.sh
123 mkscript.c
124 news.sh
125 relax.c
126 relax.h
127 sh.em
128 sh.sc-sh
129 sh.sh
130 st2000.em
131 st2000.sc-sh
132 st2000.sh
133 sa29200.sc-sh
134 sa29200.sh
135 scripts
136 sun3.sh
137 sun4.sh
138 vanilla.em
139 vanilla.sc-sh
140 vanilla.sh
141 vax.sh
142 z8ksim.em
143 z8ksim.sc-sh
144 z8ksim.sh
145
146 Things-to-lose:
147
148 Do-last:
149
150 echo Looking for signs of \"v9\"...
151
152 # Don't try to clean directories here, as the 'mv' command will fail.
153 # Also, grep fails on NFS mounted directories.
154 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
155 for i in * ; do
156 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
157 echo Keeping v9 stuff in $i
158 fi
159 done
160 else
161 for i in * ; do
162 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
163 echo Cleaning the \"v9\" out of $i...
164 cp $i new
165 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
166 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
167 echo Caching $i in .Recover...
168 mv $i .Recover
169 fi
170 mv new $i
171 fi
172 done
173 fi
174
175 # End of file.
This page took 0.034034 seconds and 5 git commands to generate.