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