keep arm files
[platform/upstream/binutils.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 # 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 alpha-dis.c
37 alpha-opc.h
38 arm-dis.c
39 arm-opc.h
40 a29k-dis.c
41 configure.bat
42 configure.in
43 dis-buf.c
44 disassemble.c
45 h8300-dis.c
46 h8500-dis.c
47 h8500-opc.h
48 hppa-dis.c
49 i386-dis.c
50 i960-dis.c
51 m68k-dis.c
52 m88k-dis.c
53 mips-dis.c
54 mips-opc.c
55 ns32k-dis.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
66 Things-to-lose:
67
68 Do-last:
69
70 i960xl_files="ChangeLog i960-dis.c"
71 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
72         if [ -n "${verbose}" ] ; then
73                 echo Keeping i960xl stuff in $i960xl_files.
74         fi
75 else
76         if [ -n "${verbose}" ]; then
77                 echo -n Cleaning i960xl in `pwd`:
78         fi
79         for f in $i960xl_files ; do
80                 if [ -n "${verbose}" ] ; then
81                         echo -n " " $f
82                 fi
83                 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' -e '/ xl /d' < $f > new
84                 if [ -n "${safe}" ] ; then
85                         mv $f .Recover
86                 fi
87                 mv new $f
88         done
89 fi
90
91 # End of file.