Fri Jun 21 13:52:17 1996 Richard Henderson <rth@tamu.edu>
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
CommitLineData
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
16Do-first:
17
8515dbe2
DE
18arc_files="arc-dis.c arc-opc.c"
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
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
32Things-to-keep:
87756e15 33
a4ccc310 34ChangeLog
add1fb05 35Makefile.in
9b65d522 36aclocal.m4
5f8f6d56
SC
37alpha-dis.c
38alpha-opc.h
ba08215a
KR
39arm-dis.c
40arm-opc.h
720b3aed 41a29k-dis.c
50982f7f
KR
42config.in
43configure
fc984fdb 44configure.bat
add1fb05 45configure.in
117733ad 46dis-buf.c
204c9148 47disassemble.c
3b4cc5ec 48h8300-dis.c
337110ea
SC
49h8500-dis.c
50h8500-opc.h
cfa8d061 51hppa-dis.c
c840244e 52i386-dis.c
720b3aed 53i960-dis.c
c840244e 54m68k-dis.c
85093dca 55m68k-opc.c
a4c01299 56m88k-dis.c
03496c49 57makefile.vms
bf1dd2fd 58mips-dis.c
69135a69 59mips-opc.c
7a4f107d 60mpw-config.in
077bd46a 61mpw-make.sed
2a097d73 62ns32k-dis.c
89221bd5
ILT
63ppc-dis.c
64ppc-opc.c
8679a71f
SC
65sh-opc.h
66sh-dis.c
117733ad 67sparc-dis.c
c3a1191a 68sparc-opc.c
50982f7f 69sysdep.h
9f744f91
SC
70w65-dis.c
71w65-opc.h
add1fb05 72z8k-dis.c
a4ccc310 73z8k-opc.h
ea2598e4 74z8kgen.c
add1fb05 75
87756e15
RP
76Things-to-lose:
77
62ba1060
SC
78Do-last:
79
50982f7f 80arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
8515dbe2
DE
81if ( 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
89else
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
106fi
107
cc973817
JL
108h8s_files="ChangeLog disassemble.c h8300-dis.c"
109if ( echo $* | grep keep\-h8s > /dev/null ) ; then
110 for i in $h8s_files ; do
111 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
112 if [ -n "${verbose}" ] ; then
113 echo Keeping h8s stuff in $i
114 fi
115 fi
116 done
117else
118 for i in $h8s_files ; do
119 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
120 if [ -n "${verbose}" ] ; then
121 echo Removing traces of \"h8s\" from $i...
122 fi
123 cp $i new
124 sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
125 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
126 if [ -n "${verbose}" ] ; then
127 echo Caching $i in .Recover...
128 fi
129 mv $i .Recover
130 fi
131 mv new $i
132 fi
133 done
134fi
135
5c680afd
MT
136for i in * ; do
137 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
138 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
139 fi
140done
141
a4ccc310 142# End of file.
This page took 0.461835 seconds and 4 git commands to generate.