*** empty log message ***
[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 if [ -n "${verbose}" ] ; then
67 echo Processing \"tic80\"...
68 fi
69
70 tic80_files="ChangeLog dis-asm.h"
71 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
72 for i in $tic80_files ; do
73 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
74 if [ -n "${verbose}" ] ; then
75 echo Keeping tic80 stuff in $i
76 fi
77 fi
78 done
79 else
80 for i in $tic80_files ; do
81 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
82 if [ -n "${verbose}" ] ; then
83 echo Removing traces of \"tic80\" from $i...
84 fi
85 cp $i new
86 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
87 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
88 if [ -n "${verbose}" ] ; then
89 echo Caching $i in .Recover...
90 fi
91 mv $i .Recover
92 fi
93 mv new $i
94 fi
95 done
96 fi
97
98 if [ -n "${verbose}" ] ; then
99 echo Processing \"sky\"...
100 fi
101
102 sky_files="ChangeLog dis-asm.h"
103 if ( echo $* | grep keep\-sky > /dev/null ) ; then
104 for i in $sky_files ; do
105 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
106 if [ -n "${verbose}" ] ; then
107 echo Keeping sky stuff in $i
108 fi
109 fi
110 done
111 else
112 for i in $sky_files ; do
113 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
114 if [ -n "${verbose}" ] ; then
115 echo Removing traces of \"sky\" from $i...
116 fi
117 cp $i new
118 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
119 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
120 if [ -n "${verbose}" ] ; then
121 echo Caching $i in .Recover...
122 fi
123 mv $i .Recover
124 fi
125 mv new $i
126 fi
127 done
128 fi
129
130 if [ -n "${verbose}" ] ; then
131 echo Processing \"java\"...
132 fi
133
134 java_files="ChangeLog demangle.h"
135 if ( echo $* | grep keep\-java > /dev/null ) ; then
136 for i in $java_files ; do
137 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Keeping java stuff in $i
140 fi
141 fi
142 done
143 else
144 for i in * ; do
145 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
146 if [ -n "${verbose}" ] ; then
147 echo Removing traces of \"java\" from $i...
148 fi
149 cp $i new
150 sed '/start\-sanitize\-java/,/end-\sanitize\-java/d' < $i > new
151 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
152 if [ -n "${verbose}" ] ; then
153 echo Caching $i in .Recover...
154 fi
155 mv $i .Recover
156 fi
157 mv new $i
158 fi
159 done
160 fi
161
162 for i in * ; do
163 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
164 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
165 fi
166 done
167
168 # End of file.
This page took 0.033681 seconds and 4 git commands to generate.