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 | ||
baf6d28e FF |
18 | tic80_files="tic80.h" |
19 | ||
20 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
21 | keep_these_too="${tic80_files} ${keep_these_too}" | |
22 | else | |
23 | lose_these_too="${tic80_files} ${lose_these_too}" | |
24 | fi | |
dfbbce32 | 25 | |
1ee1fd7e SC |
26 | # All files listed between the "Things-to-keep:" line and the |
27 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
28 | # Directories listed in this section will have their own Sanitize | |
29 | # called. Directories not listed will be removed in their entirety | |
30 | # with rm -rf. | |
31 | ||
32 | Things-to-keep: | |
33 | ||
34 | ChangeLog | |
35 | a29k.h | |
f581f995 | 36 | alpha.h |
8bd3f876 | 37 | apollo.h |
f581f995 | 38 | arm.h |
c6bb2315 | 39 | aux-coff.h |
045f6b66 | 40 | ecoff.h |
35743787 | 41 | go32exe.h |
1ee1fd7e | 42 | h8300.h |
ff975a2c | 43 | h8500.h |
1ee1fd7e | 44 | i386.h |
da40dd53 | 45 | i860.h |
1ee1fd7e SC |
46 | i960.h |
47 | internal.h | |
48 | m68k.h | |
49 | m88k.h | |
50 | mips.h | |
9111b25a | 51 | pe.h |
85009674 | 52 | powerpc.h |
1ee1fd7e | 53 | rs6000.h |
dfbbce32 | 54 | sh.h |
a3ffe730 | 55 | sparc.h |
291dcdc6 JG |
56 | sym.h |
57 | symconst.h | |
5de94458 | 58 | tic30.h |
08acc833 | 59 | w65.h |
f581f995 | 60 | we32k.h |
eaa0f4f8 | 61 | z8k.h |
1ee1fd7e | 62 | |
87756e15 RP |
63 | Things-to-lose: |
64 | ||
775d4a40 | 65 | |
2a6795f1 | 66 | Do-last: |
1ee1fd7e | 67 | |
61a5c2fd | 68 | tic80_files="ChangeLog internal.h" |
baf6d28e FF |
69 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
70 | for i in $tic80_files ; do | |
71 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
72 | if [ -n "${verbose}" ] ; then | |
73 | echo Keeping tic80 stuff in $i | |
74 | fi | |
75 | fi | |
76 | done | |
77 | else | |
78 | for i in $tic80_files ; do | |
79 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
80 | if [ -n "${verbose}" ] ; then | |
81 | echo Removing traces of \"tic80\" from $i... | |
82 | fi | |
83 | cp $i new | |
84 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
85 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
86 | if [ -n "${verbose}" ] ; then | |
87 | echo Caching $i in .Recover... | |
88 | fi | |
89 | mv $i .Recover | |
90 | fi | |
91 | mv new $i | |
92 | fi | |
93 | done | |
94 | fi | |
95 | ||
1ee1fd7e | 96 | # End of file. |