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 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
f08a8281 | 19 | keep_these_too="${keep_these_too} mpw" |
2323d13b | 20 | else |
f08a8281 | 21 | lose_these_too="${lose_these_too} mpw" |
2323d13b SS |
22 | fi |
23 | ||
0fd8d5d9 RP |
24 | # All files listed between the "Things-to-keep:" line and the |
25 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
26 | # Directories listed in this section will have their own Sanitize | |
27 | # called. Directories not listed will be removed in their entirety | |
28 | # with rm -rf. | |
29 | ||
30 | Things-to-keep: | |
31 | ||
8e71e6e3 | 32 | COPYING |
49d6a0e6 | 33 | ChangeLog |
0fd8d5d9 | 34 | ansidecl.h |
11eab90c | 35 | aout |
9a0418eb | 36 | bfdlink.h |
0fd8d5d9 | 37 | bout.h |
11eab90c | 38 | coff |
c9725927 | 39 | demangle.h |
d7e1be46 | 40 | dis-asm.h |
11eab90c | 41 | elf |
8b1d1557 | 42 | floatformat.h |
201258d5 JW |
43 | fopen-bin.h |
44 | fopen-same.h | |
0fd8d5d9 RP |
45 | gdbm.h |
46 | getopt.h | |
8ee0532b | 47 | hp-symtab.h |
0fd8d5d9 | 48 | ieee.h |
e51437f1 | 49 | libiberty.h |
f7da7289 | 50 | nlm |
0fd8d5d9 RP |
51 | oasys.h |
52 | obstack.h | |
02400c00 | 53 | os9k.h |
11eab90c | 54 | opcode |
d4d4c53c | 55 | progress.h |
0fd8d5d9 RP |
56 | wait.h |
57 | ||
87756e15 RP |
58 | Things-to-lose: |
59 | ||
775d4a40 | 60 | |
0fd8d5d9 RP |
61 | Do-last: |
62 | ||
dc997928 DE |
63 | arc_files="ChangeLog dis-asm.h" |
64 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
65 | for i in $arc_files ; do | |
66 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
67 | if [ -n "${verbose}" ] ; then | |
68 | echo Keeping arc stuff in $i | |
69 | fi | |
70 | fi | |
71 | done | |
72 | else | |
73 | for i in $arc_files ; do | |
74 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
75 | if [ -n "${verbose}" ] ; then | |
76 | echo Removing traces of \"arc\" from $i... | |
77 | fi | |
78 | cp $i new | |
79 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
80 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
81 | if [ -n "${verbose}" ] ; then | |
82 | echo Caching $i in .Recover... | |
83 | fi | |
84 | mv $i .Recover | |
85 | fi | |
86 | mv new $i | |
87 | fi | |
88 | done | |
89 | fi | |
90 | ||
91 | for i in * ; do | |
92 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
93 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
94 | fi | |
95 | done | |
96 | ||
0fd8d5d9 | 97 | # End of file. |