* scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
[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 if ( echo $* | grep keep\-gm > /dev/null ) ; then
21 keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
22 fi
23 fi
24
25 # All files listed between the "Things-to-keep:" line and the
26 # "Files-to-sed:" line will be kept. All other files will be removed.
27 # Directories listed in this section will have their own Sanitize
28 # called. Directories not listed will be removed in their entirety
29 # with rm -rf.
30
31 Things-to-keep:
32
33 ChangeLog
34 Makefile.in
35 alpha-dis.c
36 alpha-opc.h
37 a29k-dis.c
38 configure.in
39 dis-buf.c
40 h8300-dis.c
41 h8500-dis.c
42 h8500-opc.h
43 hppa-dis.c
44 i386-dis.c
45 i960-dis.c
46 m68881-ext.c
47 m68k-dis.c
48 m88k-dis.c
49 mips-dis.c
50 mips-opc.c
51 sh-opc.h
52 sh-dis.c
53 sparc-dis.c
54 sparc-opc.c
55 z8k-dis.c
56 z8k-opc.h
57 z8kgen.c
58 alpha-opc.h
59 alpha-dis.c
60
61 Things-to-lose:
62
63
64 Do-last:
65
66 if ( echo $* | egrep verbose > /dev/null ) ; then
67 verbose=true
68 else
69 verbose=
70 fi
71
72 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
73 if [ -n "${verbose}" ] ; then
74 echo Keeping v9 in sparc-opc.c
75 fi
76 else
77 if [ -n "${verbose}" ] ; then
78 echo Sanitizing v9 in sparc-opc.c
79 fi
80 rm -f new
81 grep -v v9 sparc-opc.c > new
82 if [ -n "${safe}" ] ; then
83 mv sparc-opc.c .Recover
84 else
85 rm sparc-opc.c
86 fi
87 mv new sparc-opc.c
88 fi
89
90
91 v9dirty="sparc-dis.c"
92
93 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
94 if [ -n "${verbose}" ] ; then
95 echo Keeping v9 in ${v9dirty}
96 fi
97 else
98 for i in ${v9dirty} ; do
99 if [ -n "${verbose}" ] ; then
100 echo Sanitizing v9 in $i
101 fi
102 rm -f new
103 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
104 if grep -s -i v9 new ; then
105 echo '***' SANITIZING V9 IN $i FAILED *****\a\a 1>&2
106 fi
107 if [ -n "${safe}" ] ; then
108 mv $i .Recover
109 else
110 rm $i
111 fi
112 mv new $i
113 done
114 fi
115 # End of file.
This page took 0.035821 seconds and 4 git commands to generate.