Commit | Line | Data |
---|---|---|
2a6795f1 | 1 | # Sanitize.in for include/coff. |
1ee1fd7e SC |
2 | |
3 | # Each directory to survive it's way into a release will need a file | |
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 | |
14 | # done in this | |
15 | ||
16 | Do-first: | |
17 | ||
dfbbce32 | 18 | |
1ee1fd7e SC |
19 | # All files listed between the "Things-to-keep:" line and the |
20 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
21 | # Directories listed in this section will have their own Sanitize | |
22 | # called. Directories not listed will be removed in their entirety | |
23 | # with rm -rf. | |
24 | ||
25 | Things-to-keep: | |
26 | ||
27 | ChangeLog | |
28 | a29k.h | |
f581f995 | 29 | alpha.h |
8bd3f876 | 30 | apollo.h |
f581f995 | 31 | arm.h |
045f6b66 | 32 | ecoff.h |
1ee1fd7e | 33 | h8300.h |
ff975a2c | 34 | h8500.h |
1ee1fd7e SC |
35 | i386.h |
36 | i960.h | |
37 | internal.h | |
38 | m68k.h | |
39 | m88k.h | |
40 | mips.h | |
9111b25a | 41 | pe.h |
85009674 | 42 | powerpc.h |
1ee1fd7e | 43 | rs6000.h |
dfbbce32 | 44 | sh.h |
a3ffe730 | 45 | sparc.h |
291dcdc6 JG |
46 | sym.h |
47 | symconst.h | |
08acc833 | 48 | w65.h |
f581f995 | 49 | we32k.h |
eaa0f4f8 | 50 | z8k.h |
1ee1fd7e | 51 | |
87756e15 RP |
52 | Things-to-lose: |
53 | ||
775d4a40 | 54 | |
2a6795f1 | 55 | Do-last: |
1ee1fd7e | 56 | |
b55701fa KR |
57 | i960xl_files="ChangeLog i960.h" |
58 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
59 | if [ -n "${verbose}" ] ; then | |
60 | echo Keeping i960xl stuff in $i960xl_files. | |
61 | fi | |
62 | else | |
63 | if [ -n "${verbose}" ]; then | |
64 | echo -n Cleaning i960xl in `pwd`: | |
65 | fi | |
66 | for f in $i960xl_files ; do | |
67 | if [ -n "${verbose}" ] ; then | |
68 | echo -n " " $f | |
69 | fi | |
70 | sed '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
71 | if [ -n "${safe}" ] ; then | |
72 | mv $f .Recover | |
73 | fi | |
74 | mv new $f | |
75 | done | |
76 | fi | |
77 | ||
1ee1fd7e | 78 | # End of file. |