Commit | Line | Data |
---|---|---|
a6148eeb | 1 | # .Sanitize for devo/gas. |
d4d5412d | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
d4d5412d RP |
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 | |
a6148eeb | 14 | # done in this directory. |
d4d5412d RP |
15 | |
16 | Do-first: | |
17 | ||
4f5d16c7 | 18 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
623d4854 | 19 | keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw" |
2a79b202 | 20 | else |
623d4854 | 21 | lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw" |
2a79b202 SS |
22 | fi |
23 | ||
d4d5412d RP |
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 | .gdbinit | |
eee109cd | 33 | CONTRIBUTORS |
d4d5412d RP |
34 | COPYING |
35 | ChangeLog | |
36 | Makefile.in | |
eee109cd | 37 | NEWS |
d4d5412d RP |
38 | NOTES |
39 | NOTES.config | |
40 | README | |
920babce | 41 | README-quirks |
eee109cd | 42 | README-vms |
d4d5412d RP |
43 | README.coff |
44 | README.rich | |
45 | app.c | |
46 | as.c | |
47 | as.h | |
48 | atof-generic.c | |
d4d5412d RP |
49 | bignum-copy.c |
50 | bignum.h | |
eee109cd | 51 | bit_fix.h |
d4d5412d RP |
52 | cond.c |
53 | config | |
003acb2d | 54 | config-gas.com |
c593cf41 | 55 | configure.bat |
d4d5412d RP |
56 | configure.in |
57 | debug.c | |
a262a1b2 | 58 | doc |
9faec336 ILT |
59 | ecoff.c |
60 | ecoff.h | |
d4d5412d RP |
61 | expr.c |
62 | expr.h | |
d4d5412d | 63 | flonum-copy.c |
eee109cd | 64 | flonum-konst.c |
d4d5412d RP |
65 | flonum-mult.c |
66 | flonum.h | |
67 | frags.c | |
68 | frags.h | |
a5a4b5ac | 69 | gasp.c |
d4d5412d RP |
70 | hash.c |
71 | hash.h | |
72 | hex-value.c | |
73 | input-file.c | |
74 | input-file.h | |
75 | input-scrub.c | |
920babce | 76 | link.cmd |
d7d28d22 RP |
77 | listing.c |
78 | listing.h | |
2d29d89d | 79 | literal.c |
d4d5412d RP |
80 | make-gas.com |
81 | messages.c | |
82 | obj.h | |
d4d5412d RP |
83 | output-file.c |
84 | output-file.h | |
85 | read.c | |
86 | read.h | |
29249b42 | 87 | stabs.c |
d4d5412d RP |
88 | struc-symbol.h |
89 | subsegs.c | |
90 | subsegs.h | |
91 | symbols.c | |
92 | symbols.h | |
93 | tc.h | |
f70a4714 | 94 | testsuite |
be2fc7ec | 95 | vmsconf.sh |
d4d5412d RP |
96 | write.c |
97 | write.h | |
98 | xmalloc.c | |
d4d5412d | 99 | |
87756e15 RP |
100 | Things-to-lose: |
101 | ||
d4d5412d RP |
102 | Do-last: |
103 | ||
10db66ec KR |
104 | i960xl_files=ChangeLog |
105 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
106 | if [ -n "${verbose}" ] ; then | |
107 | echo Keeping i960xl stuff in $i960xl_files. | |
108 | fi | |
109 | else | |
110 | if [ -n "${verbose}" ]; then | |
111 | echo -n Cleaning i960xl in `pwd`: | |
112 | fi | |
113 | for f in $i960xl_files ; do | |
114 | if [ -n "${verbose}" ] ; then | |
115 | echo -n " " $f | |
116 | fi | |
117 | sed '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
118 | if [ -n "${safe}" ] ; then | |
119 | mv $f .Recover | |
120 | fi | |
121 | mv new $f | |
122 | done | |
123 | fi | |
124 | ||
d4d5412d | 125 | # |
d4d5412d | 126 | # End of file. |