* remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
CommitLineData
e7c4e61c 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
14# done in this
15
16Do-first:
17
e7c4e61c
SS
18if ( echo $* | grep keep\-mpw > /dev/null ) ; then
19 keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw"
e4c7516b
SS
20else
21 lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw"
22fi
23
24if ( echo $* | grep keep\-gm > /dev/null ) ; then
25 keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
26else
27 lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
e7c4e61c
SS
28fi
29
a4ccc310
SC
30# All files listed between the "Things-to-keep:" line and the
31# "Files-to-sed:" line will be kept. All other files will be removed.
32# Directories listed in this section will have their own Sanitize
33# called. Directories not listed will be removed in their entirety
34# with rm -rf.
35
36Things-to-keep:
87756e15 37
a4ccc310 38ChangeLog
add1fb05 39Makefile.in
5f8f6d56
SC
40alpha-dis.c
41alpha-opc.h
720b3aed 42a29k-dis.c
add1fb05 43configure.in
117733ad 44dis-buf.c
3b4cc5ec 45h8300-dis.c
337110ea
SC
46h8500-dis.c
47h8500-opc.h
cfa8d061 48hppa-dis.c
c840244e 49i386-dis.c
720b3aed 50i960-dis.c
c840244e
PB
51m68881-ext.c
52m68k-dis.c
a4c01299 53m88k-dis.c
bf1dd2fd 54mips-dis.c
69135a69 55mips-opc.c
89221bd5
ILT
56ppc-dis.c
57ppc-opc.c
8679a71f
SC
58sh-opc.h
59sh-dis.c
117733ad 60sparc-dis.c
c3a1191a 61sparc-opc.c
add1fb05 62z8k-dis.c
a4ccc310 63z8k-opc.h
ea2598e4 64z8kgen.c
5f8f6d56
SC
65alpha-opc.h
66alpha-dis.c
add1fb05 67
87756e15
RP
68Things-to-lose:
69
775d4a40 70
62ba1060
SC
71Do-last:
72
7b85349f
RP
73if ( echo $* | egrep verbose > /dev/null ) ; then
74 verbose=true
75else
76 verbose=
77fi
8679a71f 78
62ba1060 79if ( echo $* | grep keep\-v9 > /dev/null ) ; then
7b85349f
RP
80 if [ -n "${verbose}" ] ; then
81 echo Keeping v9 in sparc-opc.c
82 fi
62ba1060 83else
7b85349f
RP
84 if [ -n "${verbose}" ] ; then
85 echo Sanitizing v9 in sparc-opc.c
86 fi
62ba1060
SC
87 rm -f new
88 grep -v v9 sparc-opc.c > new
89 if [ -n "${safe}" ] ; then
90 mv sparc-opc.c .Recover
91 else
92 rm sparc-opc.c
93 fi
94 mv new sparc-opc.c
95fi
a4ccc310 96
f7ed13c7 97
117733ad 98v9dirty="sparc-dis.c"
f7ed13c7
JK
99
100if ( echo $* | grep keep\-v9 > /dev/null ) ; then
7b85349f
RP
101 if [ -n "${verbose}" ] ; then
102 echo Keeping v9 in ${v9dirty}
103 fi
f7ed13c7
JK
104else
105 for i in ${v9dirty} ; do
7b85349f
RP
106 if [ -n "${verbose}" ] ; then
107 echo Sanitizing v9 in $i
108 fi
f7ed13c7
JK
109 rm -f new
110 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
111 if grep -s -i v9 new ; then
7b85349f 112 echo '***' SANITIZING V9 IN $i FAILED *****\a\a 1>&2
f7ed13c7
JK
113 fi
114 if [ -n "${safe}" ] ; then
115 mv $i .Recover
116 else
117 rm $i
118 fi
119 mv new $i
120 done
121fi
a4ccc310 122# End of file.
This page took 0.079815 seconds and 4 git commands to generate.