]>
Commit | Line | Data |
---|---|---|
0fd8d5d9 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 | ||
20 | echo Sanitizing `pwd`... | |
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: | |
29 | ||
8e71e6e3 | 30 | COPYING |
49d6a0e6 | 31 | ChangeLog |
0fd8d5d9 RP |
32 | a.out.encap.h |
33 | a.out.gnu.h | |
34 | a.out.host.h | |
35 | a.out.sun4.h | |
36 | a.out.vax.h | |
37 | a29k-opcode.h | |
77507546 | 38 | h8300-opcode.h |
a737c70b | 39 | amdcoff.h |
0fd8d5d9 RP |
40 | ansidecl.h |
41 | aout64.h | |
42 | ar.h | |
43 | arm-opcode.h | |
44 | bcs88kcoff.h | |
45 | bfd.h | |
46 | bout.h | |
47 | convx-opcode.h | |
48 | ecoff.h | |
49 | gdbm.h | |
50 | getopt.h | |
51 | i386-opcode.h | |
137a7f11 | 52 | i386coff.h |
0fd8d5d9 RP |
53 | i860-opcode.h |
54 | i960-opcode.h | |
55 | ieee.h | |
56 | intel-coff.h | |
57 | m68k-opcode.h | |
58 | m68kcoff.h | |
59 | m88k-bcs.h | |
de9d4075 | 60 | internalcoff.h |
0fd8d5d9 RP |
61 | m88k-opcode.h |
62 | mips-opcode.h | |
63 | np1-opcode.h | |
64 | ns32k-opcode.h | |
65 | oasys.h | |
66 | obstack.h | |
67 | pn-opcode.h | |
68 | pyr-opcode.h | |
69 | ranlib.h | |
70 | reloc.h | |
71 | sparc-opcode.h | |
72 | stab.def | |
73 | stab.gnu.h | |
0fd8d5d9 RP |
74 | sys |
75 | sysdep.h | |
76 | tahoe-opcode.h | |
77 | vax-opcode.h | |
78 | wait.h | |
79 | ||
80 | Do-last: | |
81 | ||
5f62d65b | 82 | v9dirty="sparc-opcode.h aout64.h" |
0fd8d5d9 | 83 | |
24d6615c | 84 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
5f62d65b | 85 | echo Keeping v9 in ${v9dirty} |
24d6615c | 86 | else |
5f62d65b RP |
87 | for i in ${v9dirty} ; do |
88 | echo Sanitizing v9 in $i | |
89 | rm -f new | |
90 | grep -v v9 $i > new | |
91 | if [ -n "${safe}" ] ; then | |
92 | mv $i .Recover | |
93 | else | |
2fbf0d18 | 94 | rm $i |
5f62d65b RP |
95 | fi |
96 | mv new $i | |
97 | done | |
24d6615c JG |
98 | fi |
99 | ||
0fd8d5d9 RP |
100 | echo Done in `pwd`. |
101 | ||
102 | # | |
103 | # | |
104 | # $Log$ | |
77507546 SC |
105 | # Revision 1.14 1991/09/26 22:46:53 steve |
106 | # Newly created | |
107 | # | |
108 | # Revision 1.13 1991/09/13 05:17:53 gnu | |
2fbf0d18 JG |
109 | # Removes sparc-opcode.h rather than the file it is sanitizing, if not testing! |
110 | # (fixed...) | |
111 | # | |
112 | # Revision 1.12 1991/09/04 02:51:18 rich | |
5f62d65b RP |
113 | # Adding "recover"'ability. |
114 | # | |
115 | # Revision 1.11 1991/09/02 21:21:47 rich | |
1312dccc RP |
116 | # Recover the editted files. |
117 | # | |
118 | # Revision 1.10 1991/08/29 00:34:45 gnu | |
4d84d6ad JG |
119 | # Paperwork handled for AMD Coff. |
120 | # | |
121 | # Revision 1.9 1991/08/22 08:00:35 gnu | |
49d6a0e6 JG |
122 | # Add ChangeLog for Include. |
123 | # | |
124 | # Revision 1.8 1991/07/31 17:36:04 gnu | |
3097f718 JG |
125 | # Remove amdcoff.h by default because its copyright is not assigned to FSF. |
126 | # "Sanitize -keep-29k" will keep it. | |
127 | # | |
128 | # Revision 1.7 1991/07/31 03:11:46 gnu | |
51c27f49 JG |
129 | # Remove symseg.h, the ancient GDB symbol-segments (gdb-specific debug |
130 | # information) definition. | |
131 | # | |
132 | # Revision 1.6 1991/07/24 01:07:25 gnu | |
8e71e6e3 JG |
133 | # Add COPYING file. |
134 | # | |
135 | # Revision 1.5 1991/07/24 00:47:13 gnu | |
24d6615c JG |
136 | # Blow away v9 stuff in aout64.h too. |
137 | # | |
138 | # Revision 1.4 1991/07/15 23:34:14 steve | |
a737c70b SC |
139 | # *** empty log message *** |
140 | # | |
141 | # Revision 1.3 1991/06/14 22:14:07 steve | |
de9d4075 SC |
142 | # *** empty log message *** |
143 | # | |
144 | # Revision 1.2 1991/05/31 11:26:52 gnu | |
137a7f11 JG |
145 | # Add i386coff.h. Print msg when sanitizing sparc-opcode.h. |
146 | # | |
147 | # Revision 1.1 1991/05/23 17:00:59 rich | |
0fd8d5d9 RP |
148 | # Initial revision |
149 | # | |
150 | # | |
151 | # | |
152 | ||
153 | # End of file. |