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 |
c31c8827 | 32 | aux.h |
045f6b66 | 33 | ecoff.h |
1ee1fd7e | 34 | h8300.h |
ff975a2c | 35 | h8500.h |
1ee1fd7e | 36 | i386.h |
da40dd53 | 37 | i860.h |
1ee1fd7e SC |
38 | i960.h |
39 | internal.h | |
40 | m68k.h | |
41 | m88k.h | |
42 | mips.h | |
9111b25a | 43 | pe.h |
85009674 | 44 | powerpc.h |
1ee1fd7e | 45 | rs6000.h |
dfbbce32 | 46 | sh.h |
a3ffe730 | 47 | sparc.h |
291dcdc6 JG |
48 | sym.h |
49 | symconst.h | |
08acc833 | 50 | w65.h |
f581f995 | 51 | we32k.h |
eaa0f4f8 | 52 | z8k.h |
1ee1fd7e | 53 | |
87756e15 RP |
54 | Things-to-lose: |
55 | ||
775d4a40 | 56 | |
2a6795f1 | 57 | Do-last: |
1ee1fd7e | 58 | |
b55701fa KR |
59 | i960xl_files="ChangeLog i960.h" |
60 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
61 | if [ -n "${verbose}" ] ; then | |
62 | echo Keeping i960xl stuff in $i960xl_files. | |
63 | fi | |
64 | else | |
65 | if [ -n "${verbose}" ]; then | |
66 | echo -n Cleaning i960xl in `pwd`: | |
67 | fi | |
68 | for f in $i960xl_files ; do | |
69 | if [ -n "${verbose}" ] ; then | |
70 | echo -n " " $f | |
71 | fi | |
72 | sed '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
73 | if [ -n "${safe}" ] ; then | |
74 | mv $f .Recover | |
75 | fi | |
76 | mv new $f | |
77 | done | |
78 | fi | |
79 | ||
1ee1fd7e | 80 | # End of file. |