keep disassemble.c
[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
15
16 Do-first:
17
18 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
19 keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw"
20 else
21 lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw"
22 fi
23
24 if ( echo $* | grep keep\-gm > /dev/null ) ; then
25 keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
26 else
27 lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
28 fi
29
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
36 Things-to-keep:
37
38 ChangeLog
39 Makefile.in
40 alpha-dis.c
41 alpha-opc.h
42 a29k-dis.c
43 configure.in
44 dis-buf.c
45 disassemble.c
46 h8300-dis.c
47 h8500-dis.c
48 h8500-opc.h
49 hppa-dis.c
50 i386-dis.c
51 i960-dis.c
52 m68k-dis.c
53 m88k-dis.c
54 mips-dis.c
55 mips-opc.c
56 ppc-dis.c
57 ppc-opc.c
58 sh-opc.h
59 sh-dis.c
60 sparc-dis.c
61 sparc-opc.c
62 z8k-dis.c
63 z8k-opc.h
64 z8kgen.c
65 alpha-opc.h
66 alpha-dis.c
67
68 Things-to-lose:
69
70
71 Do-last:
72
73 if ( echo $* | egrep verbose > /dev/null ) ; then
74 verbose=true
75 else
76 verbose=
77 fi
78
79 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
80 if [ -n "${verbose}" ] ; then
81 echo Keeping v9 in sparc-opc.c
82 fi
83 else
84 if [ -n "${verbose}" ] ; then
85 echo Sanitizing v9 in sparc-opc.c
86 fi
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
95 fi
96
97
98 v9dirty="sparc-dis.c"
99
100 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
101 if [ -n "${verbose}" ] ; then
102 echo Keeping v9 in ${v9dirty}
103 fi
104 else
105 for i in ${v9dirty} ; do
106 if [ -n "${verbose}" ] ; then
107 echo Sanitizing v9 in $i
108 fi
109 rm -f new
110 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
111 if grep -s -i v9 new ; then
112 echo '***' SANITIZING V9 IN $i FAILED *****\a\a 1>&2
113 fi
114 if [ -n "${safe}" ] ; then
115 mv $i .Recover
116 else
117 rm $i
118 fi
119 mv new $i
120 done
121 fi
122 # End of file.
This page took 0.034126 seconds and 4 git commands to generate.