Safely check in r16 targets for binutils.
[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 mpw_files="mpw-make.in mpw-config.in ChangeLog.mpw"
19
20 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
21 keep_these_too="${mpw_files} ${keep_these_too}"
22 else
23 lose_these_too="${mpw_files} ${lose_these_too}"
24 fi
25
26 r16_files="r16-dis.c r16-opc.h"
27
28 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
29 keep_these_too="${r16_files} ${keep_these_too}"
30 else
31 lose_these_too="${r16_files} ${lose_these_too}"
32 fi
33
34 # All files listed between the "Things-to-keep:" line and the
35 # "Files-to-sed:" line will be kept. All other files will be removed.
36 # Directories listed in this section will have their own Sanitize
37 # called. Directories not listed will be removed in their entirety
38 # with rm -rf.
39
40 Things-to-keep:
41
42 ChangeLog
43 Makefile.in
44 alpha-dis.c
45 alpha-opc.h
46 arm-dis.c
47 arm-opc.h
48 a29k-dis.c
49 configure.bat
50 configure.in
51 dis-buf.c
52 disassemble.c
53 h8300-dis.c
54 h8500-dis.c
55 h8500-opc.h
56 hppa-dis.c
57 i386-dis.c
58 i960-dis.c
59 m68k-dis.c
60 m88k-dis.c
61 mips-dis.c
62 mips-opc.c
63 ns32k-dis.c
64 ppc-dis.c
65 ppc-opc.c
66 sh-opc.h
67 sh-dis.c
68 sparc-dis.c
69 sparc-opc.c
70 z8k-dis.c
71 z8k-opc.h
72 z8kgen.c
73
74 Things-to-lose:
75
76 Do-last:
77
78 i960xl_files="ChangeLog i960-dis.c"
79 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
80 if [ -n "${verbose}" ] ; then
81 echo Keeping i960xl stuff in $i960xl_files.
82 fi
83 else
84 if [ -n "${verbose}" ]; then
85 echo -n Cleaning i960xl in `pwd`:
86 fi
87 for f in $i960xl_files ; do
88 if [ -n "${verbose}" ] ; then
89 echo -n " " $f
90 fi
91 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' -e '/ xl /d' < $f > new
92 if [ -n "${safe}" ] ; then
93 mv $f .Recover
94 fi
95 mv new $f
96 done
97 fi
98
99 # End of file.
This page took 0.048881 seconds and 5 git commands to generate.