* cgen.h (enum cgen_mode): Add CGEN_MODE_TARGET_MAX, CGEN_MODE_INT,
[deliverable/binutils-gdb.git] / include / .Sanitize
CommitLineData
2323d13b 1# .Sanitize for devo/include.
0fd8d5d9 2
2323d13b 3# Each directory to survive its way into a release will need a file
0fd8d5d9
RP
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
2323d13b 14# done in this directory.
0fd8d5d9
RP
15
16Do-first:
17
2323d13b 18
0fd8d5d9
RP
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
25Things-to-keep:
26
8e71e6e3 27COPYING
49d6a0e6 28ChangeLog
0fd8d5d9 29ansidecl.h
11eab90c 30aout
9a0418eb 31bfdlink.h
0fd8d5d9 32bout.h
9d10b92d 33callback.h
11eab90c 34coff
c9725927 35demangle.h
d7e1be46 36dis-asm.h
11eab90c 37elf
8b1d1557 38floatformat.h
fa8e5931 39fnmatch.h
201258d5
JW
40fopen-bin.h
41fopen-same.h
a570d4b2 42fopen-vms.h
0fd8d5d9
RP
43gdbm.h
44getopt.h
8ee0532b 45hp-symtab.h
0fd8d5d9 46ieee.h
e51437f1 47libiberty.h
01c32fc4 48mpw
f7da7289 49nlm
0fd8d5d9 50oasys.h
bc68afb2 51objalloc.h
0fd8d5d9 52obstack.h
02400c00 53os9k.h
11eab90c 54opcode
d4d4c53c 55progress.h
71d51207 56regs
05e4e44f 57remote-sim.h
3c5f200b 58splay-tree.h
2acf55ff 59symcat.h
0fd8d5d9
RP
60wait.h
61
87756e15
RP
62Things-to-lose:
63
775d4a40 64
0fd8d5d9
RP
65Do-last:
66
6e8bee16
SG
67if [ -n "${verbose}" ] ; then
68 echo Processing \"tic80\"...
69fi
70
33aeaf00
FF
71tic80_files="ChangeLog dis-asm.h"
72if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
73 for i in $tic80_files ; do
74 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
75 if [ -n "${verbose}" ] ; then
76 echo Keeping tic80 stuff in $i
77 fi
78 fi
79 done
80else
81 for i in $tic80_files ; do
82 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
83 if [ -n "${verbose}" ] ; then
84 echo Removing traces of \"tic80\" from $i...
85 fi
86 cp $i new
87 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
88 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
89 if [ -n "${verbose}" ] ; then
90 echo Caching $i in .Recover...
91 fi
92 mv $i .Recover
93 fi
94 mv new $i
95 fi
96 done
97fi
98
6e8bee16
SG
99if [ -n "${verbose}" ] ; then
100 echo Processing \"sky\"...
101fi
102
1eb4e377
DE
103sky_files="ChangeLog dis-asm.h"
104if ( echo $* | grep keep\-sky > /dev/null ) ; then
105 for i in $sky_files ; do
106 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
107 if [ -n "${verbose}" ] ; then
108 echo Keeping sky stuff in $i
109 fi
110 fi
111 done
112else
113 for i in $sky_files ; do
114 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
115 if [ -n "${verbose}" ] ; then
116 echo Removing traces of \"sky\" from $i...
117 fi
118 cp $i new
119 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
120 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
121 if [ -n "${verbose}" ] ; then
122 echo Caching $i in .Recover...
123 fi
124 mv $i .Recover
125 fi
126 mv new $i
127 fi
128 done
129fi
130
6e8bee16
SG
131if [ -n "${verbose}" ] ; then
132 echo Processing \"java\"...
133fi
134
135java_files="ChangeLog demangle.h"
136if ( echo $* | grep keep\-java > /dev/null ) ; then
137 for i in $java_files ; do
138 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
139 if [ -n "${verbose}" ] ; then
140 echo Keeping java stuff in $i
141 fi
142 fi
143 done
144else
145 for i in * ; do
146 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
147 if [ -n "${verbose}" ] ; then
148 echo Removing traces of \"java\" from $i...
149 fi
150 cp $i new
151 sed '/start\-sanitize\-java/,/end-\sanitize\-java/d' < $i > new
152 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
153 if [ -n "${verbose}" ] ; then
154 echo Caching $i in .Recover...
155 fi
156 mv $i .Recover
157 fi
158 mv new $i
159 fi
160 done
161fi
162
dc997928
DE
163for i in * ; do
164 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
165 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
166 fi
167done
168
0fd8d5d9 169# End of file.
This page took 0.317881 seconds and 4 git commands to generate.