50bd4db1d61ebbfb2df02710db2d17dcf55681a1
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
1 # .Sanitize for devo/opcodes.
2
3 # Each directory to survive its way into a release will need a file
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 directory.
15
16 Do-first:
17
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
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:
33
34 ChangeLog
35 Makefile.in
36 aclocal.m4
37 alpha-dis.c
38 alpha-opc.c
39 arm-dis.c
40 arm-opc.h
41 a29k-dis.c
42 config.in
43 configure
44 configure.bat
45 configure.in
46 dis-buf.c
47 disassemble.c
48 h8300-dis.c
49 h8500-dis.c
50 h8500-opc.h
51 hppa-dis.c
52 i386-dis.c
53 i960-dis.c
54 m68k-dis.c
55 m68k-opc.c
56 m88k-dis.c
57 makefile.vms
58 mips-dis.c
59 mips-opc.c
60 mpw-config.in
61 mpw-make.sed
62 ns32k-dis.c
63 ppc-dis.c
64 ppc-opc.c
65 sh-opc.h
66 sh-dis.c
67 sparc-dis.c
68 sparc-opc.c
69 sysdep.h
70 w65-dis.c
71 w65-opc.h
72 z8k-dis.c
73 z8k-opc.h
74 z8kgen.c
75
76 Things-to-lose:
77
78 Do-last:
79
80 arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
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
108 h8s_files="ChangeLog disassemble.c h8300-dis.c"
109 if ( 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
117 else
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
134 fi
135
136 for 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
140 done
141
142 # End of file.
This page took 0.033031 seconds and 4 git commands to generate.