0f753493035248b3ed338d3e00de7a95f1fa48bf
[binutils-gdb.git] / gdb / config / .Sanitize
1 # .Sanitize for devo/gdb/config.
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 if ( echo $* | grep keep\-arc > /dev/null ) ; then
19 keep_these_too="arc ${keep_these_too}"
20 else
21 lose_these_too="arc ${lose_these_too}"
22 fi
23
24 gm_files="tm-magic.h"
25
26 if ( echo $* | grep keep\-gm > /dev/null ) ; then
27 keep_these_too="${gm_files} ${keep_these_too}"
28 if [ -n "${verbose}" ] ; then
29 echo Keeping ${gm_files}
30 fi
31 else
32 lose_these_too="${gm_files} ${lose_these_too}"
33 if [ -n "${verbose}" ] ; then
34 echo Deleting ${gm_files}
35 fi
36 fi
37
38 v850_files="v850"
39
40 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
41 keep_these_too="${v850_files} ${keep_these_too}"
42 if [ -n "${verbose}" ] ; then
43 echo Keeping ${v850_files}
44 fi
45 else
46 lose_these_too="${v850_files} ${lose_these_too}"
47 if [ -n "${verbose}" ] ; then
48 echo Deleting ${v850_files}
49 fi
50 fi
51
52 tic80_files="tic80"
53
54 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
55 keep_these_too="${tic80_files} ${keep_these_too}"
56 if [ -n "${verbose}" ] ; then
57 echo Keeping ${tic80_files}
58 fi
59 else
60 lose_these_too="${tic80_files} ${lose_these_too}"
61 if [ -n "${verbose}" ] ; then
62 echo Deleting ${tic80_files}
63 fi
64 fi
65
66 # All files listed between the "Things-to-keep:" line and the
67 # "Files-to-sed:" line will be kept. All other files will be removed.
68 # Directories listed in this section will have their own Sanitize
69 # called. Directories not listed will be removed in their entirety
70 # with rm -rf.
71
72 Things-to-keep:
73
74 a29k
75 alpha
76 arm
77 convex
78 d10v
79 gould
80 h8300
81 h8500
82 i386
83 i960
84 m32r
85 m68k
86 m88k
87 mips
88 mn10200
89 mn10300
90 nm-empty.h
91 nm-gnu.h
92 nm-lynx.h
93 nm-m3.h
94 nm-nbsd.h
95 nm-sysv4.h
96 none
97 ns32k
98 pa
99 powerpc
100 pyr
101 romp
102 rs6000
103 sh
104 sparc
105 tahoe
106 tm-lynx.h
107 tm-nbsd.h
108 tm-sunos.h
109 tm-sysv4.h
110 vax
111 xm-aix4.h
112 xm-lynx.h
113 xm-mpw.h
114 xm-nbsd.h
115 xm-sysv4.h
116 w65
117 z8k
118
119 Things-to-lose:
120
121 Do-last:
122
123 # End of file.