Commit | Line | Data |
---|---|---|
2323d13b | 1 | # .Sanitize for devo/include. |
0fd8d5d9 | 2 | |
2323d13b | 3 | # Each directory to survive its way into a release will need a file |
0fd8d5d9 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 | |
2323d13b | 14 | # done in this directory. |
0fd8d5d9 RP |
15 | |
16 | Do-first: | |
17 | ||
2323d13b | 18 | |
0fd8d5d9 RP |
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 | ||
8e71e6e3 | 27 | COPYING |
49d6a0e6 | 28 | ChangeLog |
0fd8d5d9 | 29 | ansidecl.h |
11eab90c | 30 | aout |
9a0418eb | 31 | bfdlink.h |
0fd8d5d9 | 32 | bout.h |
9d10b92d | 33 | callback.h |
11eab90c | 34 | coff |
c9725927 | 35 | demangle.h |
d7e1be46 | 36 | dis-asm.h |
11eab90c | 37 | elf |
8b1d1557 | 38 | floatformat.h |
fa8e5931 | 39 | fnmatch.h |
201258d5 JW |
40 | fopen-bin.h |
41 | fopen-same.h | |
a570d4b2 | 42 | fopen-vms.h |
0fd8d5d9 RP |
43 | gdbm.h |
44 | getopt.h | |
8ee0532b | 45 | hp-symtab.h |
0fd8d5d9 | 46 | ieee.h |
e51437f1 | 47 | libiberty.h |
01c32fc4 | 48 | mpw |
f7da7289 | 49 | nlm |
0fd8d5d9 | 50 | oasys.h |
bc68afb2 | 51 | objalloc.h |
0fd8d5d9 | 52 | obstack.h |
02400c00 | 53 | os9k.h |
11eab90c | 54 | opcode |
d4d4c53c | 55 | progress.h |
05e4e44f | 56 | remote-sim.h |
2acf55ff | 57 | symcat.h |
0fd8d5d9 RP |
58 | wait.h |
59 | ||
87756e15 RP |
60 | Things-to-lose: |
61 | ||
775d4a40 | 62 | |
0fd8d5d9 RP |
63 | Do-last: |
64 | ||
33aeaf00 FF |
65 | tic80_files="ChangeLog dis-asm.h" |
66 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
67 | for i in $tic80_files ; do | |
68 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
69 | if [ -n "${verbose}" ] ; then | |
70 | echo Keeping tic80 stuff in $i | |
71 | fi | |
72 | fi | |
73 | done | |
74 | else | |
75 | for i in $tic80_files ; do | |
76 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
77 | if [ -n "${verbose}" ] ; then | |
78 | echo Removing traces of \"tic80\" from $i... | |
79 | fi | |
80 | cp $i new | |
81 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
82 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
83 | if [ -n "${verbose}" ] ; then | |
84 | echo Caching $i in .Recover... | |
85 | fi | |
86 | mv $i .Recover | |
87 | fi | |
88 | mv new $i | |
89 | fi | |
90 | done | |
91 | fi | |
92 | ||
713495a9 MH |
93 | d30v_files="ChangeLog dis-asm.h" |
94 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
95 | for i in $d30v_files ; do | |
96 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
97 | if [ -n "${verbose}" ] ; then | |
98 | echo Keeping d30v stuff in $i | |
99 | fi | |
100 | fi | |
101 | done | |
102 | else | |
103 | for i in $d30v_files ; do | |
104 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
105 | if [ -n "${verbose}" ] ; then | |
106 | echo Removing traces of \"d30v\" from $i... | |
107 | fi | |
108 | cp $i new | |
109 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
110 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
111 | if [ -n "${verbose}" ] ; then | |
112 | echo Caching $i in .Recover... | |
113 | fi | |
114 | mv $i .Recover | |
115 | fi | |
116 | mv new $i | |
117 | fi | |
118 | done | |
119 | fi | |
120 | ||
1eb4e377 DE |
121 | sky_files="ChangeLog dis-asm.h" |
122 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
123 | for i in $sky_files ; do | |
124 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
125 | if [ -n "${verbose}" ] ; then | |
126 | echo Keeping sky stuff in $i | |
127 | fi | |
128 | fi | |
129 | done | |
130 | else | |
131 | for i in $sky_files ; do | |
132 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
133 | if [ -n "${verbose}" ] ; then | |
134 | echo Removing traces of \"sky\" from $i... | |
135 | fi | |
136 | cp $i new | |
137 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
138 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
139 | if [ -n "${verbose}" ] ; then | |
140 | echo Caching $i in .Recover... | |
141 | fi | |
142 | mv $i .Recover | |
143 | fi | |
144 | mv new $i | |
145 | fi | |
146 | done | |
147 | fi | |
148 | ||
dc997928 DE |
149 | for i in * ; do |
150 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
151 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
152 | fi | |
153 | done | |
154 | ||
0fd8d5d9 | 155 | # End of file. |