]>
Commit | Line | Data |
---|---|---|
08942d11 RP |
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 | ||
446545dd | 20 | echo Sanitizing `pwd`. |
08942d11 RP |
21 | |
22 | # All files listed between the "Things-to-keep:" line and the | |
23 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
24 | # Directories listed in this section will have their own Sanitize | |
25 | # called. Directories not listed will be removed in their entirety | |
26 | # with rm -rf. | |
27 | ||
28 | Things-to-keep: | |
08942d11 RP |
29 | COPYING |
30 | ChangeLog | |
31 | Makefile.in | |
32 | TODO | |
8c1891af | 33 | VERSION |
c618de01 SC |
34 | awkscan |
35 | awkscan-ip | |
36 | awkscan-p | |
37 | blins-p | |
38 | exfilter | |
39 | exmerge | |
40 | intobfd | |
41 | mergecom-p | |
42 | movecom-p | |
43 | scanit | |
44 | scanph | |
45 | sedscript | |
46 | sedscript-p | |
47 | startcom-p | |
48 | tolibbfd | |
49 | tolibcoff | |
fb1c4481 | 50 | amdcoff.c |
08942d11 RP |
51 | aout32.c |
52 | aout64.c | |
53 | aoutf1.h | |
08942d11 RP |
54 | aoutx.h |
55 | archive.c | |
56 | archures.c | |
08942d11 | 57 | bfd.c |
fb1c4481 | 58 | bfd.texinfo |
e961483f | 59 | bfd.doc.ps |
08942d11 RP |
60 | bout.c |
61 | cache.c | |
08942d11 | 62 | coffcode.h |
fb1c4481 | 63 | config |
a4c407e5 | 64 | configure |
08942d11 | 65 | configure.in |
6f715d66 | 66 | core.c |
08942d11 RP |
67 | demo64.c |
68 | ecoff.c | |
69 | filemode.c | |
6f715d66 | 70 | format.c |
08942d11 | 71 | host-aout.c |
8c1891af | 72 | i386coff.c |
08942d11 RP |
73 | icoff.c |
74 | ieee.c | |
141c97ea | 75 | libaout.h |
08942d11 RP |
76 | libbfd.c |
77 | libbfd.h | |
78 | libcoff.h | |
79 | libieee.h | |
80 | liboasys.h | |
81 | m68kcoff.c | |
82 | m88k-bcs.c | |
08942d11 RP |
83 | newsos3.c |
84 | oasys.c | |
85 | opncls.c | |
6f715d66 SC |
86 | reloc.c |
87 | section.c | |
08942d11 RP |
88 | srec.c |
89 | sunos.c | |
6f715d66 | 90 | syms.c |
08942d11 RP |
91 | targets.c |
92 | trad-core.c | |
93 | trad-core.h | |
94 | ||
95 | Do-last: | |
96 | ||
446545dd JG |
97 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
98 | echo Keeping v9 in aoutx.h | |
99 | else | |
100 | echo Sanitizing v9 in aoutx.h | |
101 | rm -f new | |
102 | while grep -s start-sanitize-v9 aoutx.h ; do | |
103 | sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new | |
104 | rm aoutx.h | |
105 | mv new aoutx.h | |
106 | done | |
107 | fi | |
108 | ||
de02577e | 109 | if ( echo $* | grep keep\-29k > /dev/null ) ; then |
fab4b2d3 | 110 | echo Keeping 29k in amdcoff.c and Makefile.in and targets.c |
de02577e | 111 | else |
fab4b2d3 | 112 | echo Sanitizing 29k in amdcoff.c and Makefile.in and targets.c |
de02577e JG |
113 | rm -f amdcoff.c |
114 | rm -f new | |
115 | sed -e 's/ amdcoff.[co] / /g' <Makefile.in >new | |
116 | mv new Makefile.in | |
fab4b2d3 JG |
117 | sed -e '/a29kcoff/d' <targets.c >new |
118 | mv new targets.c | |
de02577e JG |
119 | fi |
120 | ||
08942d11 RP |
121 | echo Done in `pwd`. |
122 | ||
123 | # | |
124 | # | |
125 | # $Log$ | |
c618de01 SC |
126 | # Revision 1.14 1991/08/17 00:17:00 steve |
127 | # Documentation | |
128 | # | |
129 | # Revision 1.13 1991/08/01 14:37:51 steve | |
e961483f SC |
130 | # *** empty log message *** |
131 | # | |
132 | # Revision 1.12 1991/08/01 05:33:39 gnu | |
fab4b2d3 JG |
133 | # Forgot one more place to remove amdcoff.c reference (sigh). |
134 | # | |
135 | # Revision 1.11 1991/08/01 01:27:44 gnu | |
3c123e24 JG |
136 | # Delete CVS.adm from the release! |
137 | # | |
138 | # Revision 1.10 1991/07/31 22:28:30 gnu | |
96d38440 JG |
139 | # Remove archures.h |
140 | # | |
141 | # Revision 1.9 1991/07/31 17:37:00 gnu | |
de02577e JG |
142 | # Remove amdcoff.c (and its name from Makefile.in) by default, because |
143 | # its copyright is not yet assigned to FSF. | |
144 | # | |
145 | # Revision 1.8 1991/07/31 07:54:31 gnu | |
446545dd JG |
146 | # Better sanitize aoutx.h too! |
147 | # | |
148 | # Revision 1.7 1991/07/16 00:39:03 steve | |
fb1c4481 SC |
149 | # *** empty log message *** |
150 | # | |
151 | # Revision 1.6 1991/07/16 00:35:56 steve | |
a4c407e5 SC |
152 | # *** empty log message *** |
153 | # | |
154 | # Revision 1.5 1991/07/15 23:32:40 steve | |
a737c70b SC |
155 | # *** empty log message *** |
156 | # | |
157 | # Revision 1.4 1991/07/04 16:52:54 steve | |
6f715d66 SC |
158 | # Now full of documentation. Yum Yum. |
159 | # | |
160 | # Revision 1.3 1991/05/31 11:22:12 gnu | |
141c97ea JG |
161 | # Remove coff-code.h and liba.out.h, add libaout.h. |
162 | # | |
163 | # Revision 1.2 1991/05/29 02:40:08 gnu | |
8c1891af JG |
164 | # Fix up .Sanitize file, remove files that are not referenced. |
165 | # | |
166 | # Revision 1.1 1991/05/23 21:14:00 rich | |
08942d11 RP |
167 | # Initial revision |
168 | # | |
169 | # | |
170 | # | |
171 | ||
172 | # End of file. |