]>
Commit | Line | Data |
---|---|---|
67c2d8c8 | 1 | # .Sanitize for devo/opcodes. |
a4ccc310 | 2 | |
e7c4e61c | 3 | # Each directory to survive its way into a release will need a file |
a4ccc310 SC |
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 | |
10f1b597 | 14 | # done in this directory. |
a4ccc310 SC |
15 | |
16 | Do-first: | |
17 | ||
10f1b597 SS |
18 | mpw_files="mpw-make.in mpw-config.in ChangeLog.mpw" |
19 | ||
e7c4e61c | 20 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
10f1b597 | 21 | keep_these_too="${mpw_files} ${keep_these_too}" |
e4c7516b | 22 | else |
10f1b597 | 23 | lose_these_too="${mpw_files} ${lose_these_too}" |
e4c7516b SS |
24 | fi |
25 | ||
a4ccc310 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: | |
87756e15 | 33 | |
a4ccc310 | 34 | ChangeLog |
add1fb05 | 35 | Makefile.in |
5f8f6d56 SC |
36 | alpha-dis.c |
37 | alpha-opc.h | |
ba08215a KR |
38 | arm-dis.c |
39 | arm-opc.h | |
720b3aed | 40 | a29k-dis.c |
fc984fdb | 41 | configure.bat |
add1fb05 | 42 | configure.in |
117733ad | 43 | dis-buf.c |
204c9148 | 44 | disassemble.c |
3b4cc5ec | 45 | h8300-dis.c |
337110ea SC |
46 | h8500-dis.c |
47 | h8500-opc.h | |
cfa8d061 | 48 | hppa-dis.c |
c840244e | 49 | i386-dis.c |
720b3aed | 50 | i960-dis.c |
c840244e | 51 | m68k-dis.c |
a4c01299 | 52 | m88k-dis.c |
bf1dd2fd | 53 | mips-dis.c |
69135a69 | 54 | mips-opc.c |
2a097d73 | 55 | ns32k-dis.c |
89221bd5 ILT |
56 | ppc-dis.c |
57 | ppc-opc.c | |
8679a71f SC |
58 | sh-opc.h |
59 | sh-dis.c | |
117733ad | 60 | sparc-dis.c |
c3a1191a | 61 | sparc-opc.c |
add1fb05 | 62 | z8k-dis.c |
a4ccc310 | 63 | z8k-opc.h |
ea2598e4 | 64 | z8kgen.c |
add1fb05 | 65 | |
87756e15 RP |
66 | Things-to-lose: |
67 | ||
62ba1060 SC |
68 | Do-last: |
69 | ||
2a097d73 KR |
70 | i960xl_files="ChangeLog i960-dis.c" |
71 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
72 | if [ -n "${verbose}" ] ; then | |
73 | echo Keeping i960xl stuff in $i960xl_files. | |
74 | fi | |
75 | else | |
76 | if [ -n "${verbose}" ]; then | |
77 | echo -n Cleaning i960xl in `pwd`: | |
78 | fi | |
79 | for f in $i960xl_files ; do | |
80 | if [ -n "${verbose}" ] ; then | |
81 | echo -n " " $f | |
82 | fi | |
83 | sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' -e '/ xl /d' < $f > new | |
84 | if [ -n "${safe}" ] ; then | |
85 | mv $f .Recover | |
86 | fi | |
87 | mv new $f | |
88 | done | |
89 | fi | |
90 | ||
a4ccc310 | 91 | # End of file. |