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