daf6a127a329dbca44063f01a34e29a4baa61130
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # Sanitize.in for devo/bfd.
2
3 # Each directory to survive it's 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
15
16 Do-first:
17
18 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25 COPYING
26 PORTING
27 doc
28 ChangeLog
29 Makefile.dos
30 Makefile.in
31 TODO
32 VERSION
33 aout32.c
34 aout64.c
35 aoutf1.h
36 aoutx.h
37 aout-encap.c
38 aout-target.h
39 archive.c
40 archures.c
41 bfd-in.h
42 bfd.c
43 bout.c
44 cache.c
45 ctor.c
46 coff-a29k.c
47 coff-h8300.c
48 coff-i386.c
49 coff-i960.c
50 coff-m68k.c
51 coff-m88k.c
52 coff-mips.c
53 coff-msym.c
54 coff-rs6000.c
55 coffcode.h
56 config
57 configure.bat
58 configure.in
59 core.c
60 demo64.c
61 elf.c
62 filemode.c
63 format.c
64 gen-aout.c
65 host-aout.c
66 hosts
67 hppa.c
68 i386aout.c
69 i386linux.c
70 ieee.c
71 libaout.h
72 libbfd-in.h
73 cpu-a29k.c
74 cpu-i386.c
75 cpu-m68k.c
76 cpu-mips.c
77 cpu-vax.c
78 cpu-h8300.c
79 cpu-hppa.c
80 cpu-i960.c
81 cpu-m88k.c
82 cpu-rs6000.c
83 hp300bsd.c
84 init.c
85 cpu-sparc.c
86 libbfd.c
87 libbfd.h
88 libcoff-in.h
89 libcoff.h
90 libhppa.h
91 libieee.h
92 liboasys.h
93 newsos3.c
94 oasys.c
95 opc-sparc.c
96 opncls.c
97 reloc.c
98 rs6000-core.c
99 sco-core.c
100 scripts
101 seclet.c
102 seclet.h
103 section.c
104 srec.c
105 stab-syms.c
106 sunos.c
107 syms.c
108 targets.c
109 tekhex.c
110 trad-core.c
111 trad-core.h
112
113 Do-last:
114
115 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
116 echo Keeping v9 in aoutx.h opc-sparc.c
117 else
118 echo Sanitizing v9 in aoutx.h
119 rm -f new
120 while grep -s start-sanitize-v9 aoutx.h ; do
121 sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new
122 if [ -n "${safe}" ] ; then
123 mv aoutx.h .Recover
124 else
125 rm aoutx.h
126 fi
127 mv new aoutx.h
128 done
129 echo Sanitizing v9 in opc-sparc.c
130 rm -f new
131 grep -v v9 opc-sparc.c > new
132 if [ -n "${safe}" ] ; then
133 mv opc-sparc.c .Recover
134 else
135 rm opc-sparc.c
136 fi
137 mv new opc-sparc.c
138 fi
139
140 echo Done in `pwd`.
141
142 # End of file.
This page took 0.031852 seconds and 4 git commands to generate.