]>
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 | ||
8515dbe2 DE |
18 | arc_files="arc-dis.c arc-opc.c" |
19 | ||
20 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
21 | keep_these_too="${arc_files} ${keep_these_too}" | |
22 | else | |
23 | lose_these_too="${arc_files} ${lose_these_too}" | |
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 |
9b65d522 | 36 | aclocal.m4 |
5f8f6d56 | 37 | alpha-dis.c |
96926bf0 | 38 | alpha-opc.c |
ba08215a KR |
39 | arm-dis.c |
40 | arm-opc.h | |
720b3aed | 41 | a29k-dis.c |
50982f7f KR |
42 | config.in |
43 | configure | |
fc984fdb | 44 | configure.bat |
add1fb05 | 45 | configure.in |
117733ad | 46 | dis-buf.c |
204c9148 | 47 | disassemble.c |
3b4cc5ec | 48 | h8300-dis.c |
337110ea SC |
49 | h8500-dis.c |
50 | h8500-opc.h | |
cfa8d061 | 51 | hppa-dis.c |
c840244e | 52 | i386-dis.c |
720b3aed | 53 | i960-dis.c |
c840244e | 54 | m68k-dis.c |
85093dca | 55 | m68k-opc.c |
a4c01299 | 56 | m88k-dis.c |
03496c49 | 57 | makefile.vms |
bf1dd2fd | 58 | mips-dis.c |
69135a69 | 59 | mips-opc.c |
7a4f107d | 60 | mpw-config.in |
077bd46a | 61 | mpw-make.sed |
2a097d73 | 62 | ns32k-dis.c |
89221bd5 ILT |
63 | ppc-dis.c |
64 | ppc-opc.c | |
8679a71f SC |
65 | sh-opc.h |
66 | sh-dis.c | |
117733ad | 67 | sparc-dis.c |
c3a1191a | 68 | sparc-opc.c |
50982f7f | 69 | sysdep.h |
9f744f91 SC |
70 | w65-dis.c |
71 | w65-opc.h | |
add1fb05 | 72 | z8k-dis.c |
a4ccc310 | 73 | z8k-opc.h |
ea2598e4 | 74 | z8kgen.c |
add1fb05 | 75 | |
87756e15 RP |
76 | Things-to-lose: |
77 | ||
62ba1060 SC |
78 | Do-last: |
79 | ||
50982f7f | 80 | arc_files="ChangeLog Makefile.in configure.in configure disassemble.c" |
8515dbe2 DE |
81 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
82 | for i in $arc_files ; do | |
83 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
84 | if [ -n "${verbose}" ] ; then | |
85 | echo Keeping arc stuff in $i | |
86 | fi | |
87 | fi | |
88 | done | |
89 | else | |
90 | for i in $arc_files ; do | |
91 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
92 | if [ -n "${verbose}" ] ; then | |
93 | echo Removing traces of \"arc\" from $i... | |
94 | fi | |
95 | cp $i new | |
96 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
97 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
98 | if [ -n "${verbose}" ] ; then | |
99 | echo Caching $i in .Recover... | |
100 | fi | |
101 | mv $i .Recover | |
102 | fi | |
103 | mv new $i | |
104 | fi | |
105 | done | |
106 | fi | |
107 | ||
5c680afd MT |
108 | for i in * ; do |
109 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
110 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
111 | fi | |
112 | done | |
113 | ||
a4ccc310 | 114 | # End of file. |