* emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
[deliverable/binutils-gdb.git] / gas / .Sanitize
1 # .Sanitize for devo/gas.
2
3 # Each directory to survive its 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 # "Files-to-sed:" 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 CONTRIBUTORS
27 COPYING
28 ChangeLog
29 ChangeLog.1
30 Makefile.in
31 NEWS
32 NOTES
33 NOTES.config
34 README
35 README-vms
36 acconfig.h
37 aclocal.m4
38 app.c
39 as.c
40 as.h
41 atof-generic.c
42 bignum-copy.c
43 bignum.h
44 bit_fix.h
45 cond.c
46 conf.in
47 config
48 config-gas.com
49 configure
50 configure.bat
51 configure.in
52 debug.c
53 doc
54 ecoff.c
55 ecoff.h
56 emul-target.h
57 emul.h
58 expr.c
59 expr.h
60 flonum-copy.c
61 flonum-konst.c
62 flonum-mult.c
63 flonum.h
64 frags.c
65 frags.h
66 gasp.c
67 gdbinit.in
68 hash.c
69 hash.h
70 input-file.c
71 input-file.h
72 input-scrub.c
73 link.cmd
74 listing.c
75 listing.h
76 literal.c
77 mac-as.r
78 macro.c
79 macro.h
80 messages.c
81 mpw-config.in
82 mpw-make.sed
83 obj.h
84 output-file.c
85 output-file.h
86 read.c
87 read.h
88 sb.c
89 sb.h
90 stabs.c
91 struc-symbol.h
92 subsegs.c
93 subsegs.h
94 symbols.c
95 symbols.h
96 tc.h
97 testsuite
98 vmsconf.sh
99 write.c
100 write.h
101 xmalloc.c
102
103 Things-to-lose:
104
105 Do-last:
106
107 arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
108 if ( echo $* | grep keep\-arc > /dev/null ) ; then
109 for i in $arc_files ; do
110 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
111 if [ -n "${verbose}" ] ; then
112 echo Keeping arc stuff in $i
113 fi
114 fi
115 done
116 else
117 for i in $arc_files ; do
118 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
119 if [ -n "${verbose}" ] ; then
120 echo Removing traces of \"arc\" from $i...
121 fi
122 cp $i new
123 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
124 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
125 if [ -n "${verbose}" ] ; then
126 echo Caching $i in .Recover...
127 fi
128 mv $i .Recover
129 fi
130 mv new $i
131 fi
132 done
133 fi
134
135 if ( echo $* | grep keep\-gm > /dev/null ) ; then
136 for i in * ; do
137 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Keeping gm stuff in $i
140 fi
141 fi
142 done
143 else
144 for i in * ; do
145 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
146 if [ -n "${verbose}" ] ; then
147 echo Removing traces of \"gm\" from $i...
148 fi
149 cp $i new
150 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
151 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
152 if [ -n "${verbose}" ] ; then
153 echo Caching $i in .Recover...
154 fi
155 mv $i .Recover
156 fi
157 mv new $i
158 fi
159 done
160 fi
161
162
163 d10v_files="ChangeLog configure.in configure Makefile.in"
164 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
165 for i in $d10v_files ; do
166 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
167 if [ -n "${verbose}" ] ; then
168 echo Keeping d10v stuff in $i
169 fi
170 fi
171 done
172 else
173 for i in $d10v_files ; do
174 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
175 if [ -n "${verbose}" ] ; then
176 echo Removing traces of \"d10v\" from $i...
177 fi
178 cp $i new
179 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
180 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
181 if [ -n "${verbose}" ] ; then
182 echo Caching $i in .Recover...
183 fi
184 mv $i .Recover
185 fi
186 mv new $i
187 fi
188 done
189 fi
190
191 for i in * ; do
192 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
193 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
194 fi
195 done
196
197 #
198 # End of file.
This page took 0.036585 seconds and 4 git commands to generate.