]>
Commit | Line | Data |
---|---|---|
0c5e345c 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 | # All files listed between the "Things-to-keep:" line and the | |
21 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
22 | # Directories listed in this section will have their own Sanitize | |
23 | # called. Directories not listed will be removed in their entirety | |
24 | # with rm -rf. | |
25 | ||
26 | Things-to-keep: | |
27 | ||
b0c02418 MT |
28 | Makefile.in |
29 | configure.in | |
730ad1a7 | 30 | all.texi |
0c5e345c | 31 | as.1 |
0c5e345c | 32 | as.texinfo |
0c5e345c RP |
33 | |
34 | Do-last: | |
35 | ||
b0c41694 | 36 | shdirty="as.texinfo h8.texi all.texi" |
0c5e345c | 37 | |
b0c41694 RP |
38 | if ( echo $* | grep keep\-sh > /dev/null ) ; then |
39 | echo Keeping Hitachi SH in ${shdirty} | |
40 | else | |
41 | for i in ${shdirty} ; do | |
42 | echo Sanitizing Hitachi SH in $i | |
43 | rm -f new | |
44 | sed '/start Hitachi-SH/,/^end Hitachi-SH/d' < $i > new | |
45 | if grep -s "[- ]SH" new ; then | |
46 | echo *****SANITIZING HITACHI SH IN $i FAILED*****\a\a | |
47 | fi | |
48 | if [ -n "${safe}" ] ; then | |
49 | mv $i .Recover | |
50 | else | |
51 | rm $i | |
52 | fi | |
53 | mv new $i | |
54 | done | |
55 | fi | |
0c5e345c RP |
56 | # |
57 | # | |
58 | # $Log$ | |
b0c41694 RP |
59 | # Revision 1.10 1993/04/15 23:06:08 pesch |
60 | # Arrange to clean out references to Hitachi SH. | |
61 | # | |
62 | # Revision 1.9 1993/04/08 03:12:53 pesch | |
730ad1a7 RP |
63 | # Converted to Texinfo conditionals; no longer need M4. |
64 | # Checked makeinfo output for "all" config; other old M4 configs now sanitized | |
65 | # out, will be replaced by .texi configs as each config is tested. | |
66 | # | |
67 | # Revision 1.8 1993/03/02 17:57:05 raeburn | |
734ed1a3 KR |
68 | # ChangeLog is gone |
69 | # | |
70 | # Revision 1.7 1993/02/13 10:12:26 zoo | |
7c859290 DZ |
71 | # removing excess verbosity |
72 | # | |
73 | # Revision 1.6 1992/12/08 09:39:03 raeburn | |
2e294274 KR |
74 | # as-m680x0.texinfo does not exist |
75 | # | |
76 | # Revision 1.5 1992/11/19 19:48:43 sac | |
242d9c06 SC |
77 | # z8000 documentation |
78 | # * Makefile.in, all.m4, as-all.texinfo as.texinfo: all modified | |
79 | # | |
80 | # Revision 1.4 1992/03/10 00:50:59 rich | |
ced0d93e RP |
81 | # keep ChangeLog and as-all.texinfo |
82 | # | |
83 | # Revision 1.3 1992/02/24 13:54:45 tiemann | |
b0c02418 MT |
84 | # Keep Makefile.in and configure.in. Don't keep Makefile. |
85 | # | |
86 | # Revision 1.2 1992/02/21 09:08:37 rich | |
7a111537 RP |
87 | # don't keep *.dvi |
88 | # | |
89 | # Revision 1.1 1992/02/14 00:28:22 pesch | |
0c5e345c RP |
90 | # Might as well keep the contents of the gas/doc subdir, as well as the |
91 | # dir itself. | |
92 | # | |
93 | ||
94 | # End of file. |