Keep include/regs.
[deliverable/binutils-gdb.git] / include / .Sanitize
1 # .Sanitize for devo/include.
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
19 # All files listed between the "Things-to-keep:" line and the
20 # "Files-to-sed:" line will be kept. All other files will be removed.
21 # Directories listed in this section will have their own Sanitize
22 # called. Directories not listed will be removed in their entirety
23 # with rm -rf.
24
25 Things-to-keep:
26
27 COPYING
28 ChangeLog
29 ansidecl.h
30 aout
31 bfdlink.h
32 bout.h
33 callback.h
34 coff
35 demangle.h
36 dis-asm.h
37 elf
38 floatformat.h
39 fnmatch.h
40 fopen-bin.h
41 fopen-same.h
42 fopen-vms.h
43 gdbm.h
44 getopt.h
45 hp-symtab.h
46 ieee.h
47 libiberty.h
48 mpw
49 nlm
50 oasys.h
51 objalloc.h
52 obstack.h
53 os9k.h
54 opcode
55 progress.h
56 regs
57 remote-sim.h
58 symcat.h
59 wait.h
60
61 Things-to-lose:
62
63
64 Do-last:
65
66 tic80_files="ChangeLog dis-asm.h"
67 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
68 for i in $tic80_files ; do
69 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
70 if [ -n "${verbose}" ] ; then
71 echo Keeping tic80 stuff in $i
72 fi
73 fi
74 done
75 else
76 for i in $tic80_files ; do
77 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
78 if [ -n "${verbose}" ] ; then
79 echo Removing traces of \"tic80\" from $i...
80 fi
81 cp $i new
82 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
83 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
84 if [ -n "${verbose}" ] ; then
85 echo Caching $i in .Recover...
86 fi
87 mv $i .Recover
88 fi
89 mv new $i
90 fi
91 done
92 fi
93
94 d30v_files="ChangeLog dis-asm.h"
95 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
96 for i in $d30v_files ; do
97 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
98 if [ -n "${verbose}" ] ; then
99 echo Keeping d30v stuff in $i
100 fi
101 fi
102 done
103 else
104 for i in $d30v_files ; do
105 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
106 if [ -n "${verbose}" ] ; then
107 echo Removing traces of \"d30v\" from $i...
108 fi
109 cp $i new
110 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
111 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
112 if [ -n "${verbose}" ] ; then
113 echo Caching $i in .Recover...
114 fi
115 mv $i .Recover
116 fi
117 mv new $i
118 fi
119 done
120 fi
121
122 sky_files="ChangeLog dis-asm.h"
123 if ( echo $* | grep keep\-sky > /dev/null ) ; then
124 for i in $sky_files ; do
125 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
126 if [ -n "${verbose}" ] ; then
127 echo Keeping sky stuff in $i
128 fi
129 fi
130 done
131 else
132 for i in $sky_files ; do
133 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
134 if [ -n "${verbose}" ] ; then
135 echo Removing traces of \"sky\" from $i...
136 fi
137 cp $i new
138 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
139 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
140 if [ -n "${verbose}" ] ; then
141 echo Caching $i in .Recover...
142 fi
143 mv $i .Recover
144 fi
145 mv new $i
146 fi
147 done
148 fi
149
150 for i in * ; do
151 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
152 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
153 fi
154 done
155
156 # End of file.
This page took 0.033516 seconds and 5 git commands to generate.