]>
Commit | Line | Data |
---|---|---|
aee06af3 | 1 | # Sanitize.in for devo/bfd. |
08942d11 RP |
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 | ||
08942d11 RP |
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: | |
08942d11 | 25 | COPYING |
9ef1e2da | 26 | PORTING |
86835b01 | 27 | doc |
08942d11 | 28 | ChangeLog |
13b351cc | 29 | Makefile.dos |
08942d11 RP |
30 | Makefile.in |
31 | TODO | |
8c1891af | 32 | VERSION |
60ac749c | 33 | aix386-core.c |
08942d11 RP |
34 | aout32.c |
35 | aout64.c | |
36 | aoutf1.h | |
08942d11 | 37 | aoutx.h |
4846e30f | 38 | aout-adobe.c |
9e2b3581 | 39 | aout-encap.c |
a89f7423 | 40 | aout-target.h |
08942d11 RP |
41 | archive.c |
42 | archures.c | |
901c5bfd | 43 | bfd-in.h |
08942d11 | 44 | bfd.c |
08942d11 RP |
45 | bout.c |
46 | cache.c | |
e181b631 | 47 | ctor.c |
156e3852 | 48 | coff-a29k.c |
71e34032 | 49 | coff-h8300.c |
156e3852 JG |
50 | coff-i386.c |
51 | coff-i960.c | |
52 | coff-m68k.c | |
53 | coff-m88k.c | |
54 | coff-mips.c | |
583f79e9 | 55 | coff-msym.c |
156e3852 | 56 | coff-rs6000.c |
c7551f76 | 57 | coff-we32k.c |
d41ab714 | 58 | coff-z8k.c |
08942d11 | 59 | coffcode.h |
075caafd ILT |
60 | coffgen.c |
61 | coffswap.h | |
fb1c4481 | 62 | config |
13b351cc | 63 | configure.bat |
08942d11 | 64 | configure.in |
5a5fa368 | 65 | configure.host |
6f715d66 | 66 | core.c |
08942d11 | 67 | demo64.c |
ea3768dc | 68 | elf.c |
08942d11 | 69 | filemode.c |
6f715d66 | 70 | format.c |
608de555 | 71 | gen-aout.c |
08942d11 | 72 | host-aout.c |
90c7c720 | 73 | hosts |
76b731f9 | 74 | hppa.c |
b7de6963 | 75 | i386aout.c |
256b39e0 | 76 | i386bsd.c |
afff60cd | 77 | i386linux.c |
08942d11 | 78 | ieee.c |
141c97ea | 79 | libaout.h |
901c5bfd | 80 | libbfd-in.h |
63ffe5ef SC |
81 | cpu-a29k.c |
82 | cpu-i386.c | |
83 | cpu-m68k.c | |
84 | cpu-mips.c | |
85 | cpu-vax.c | |
86 | cpu-h8300.c | |
76b731f9 | 87 | cpu-hppa.c |
63ffe5ef SC |
88 | cpu-i960.c |
89 | cpu-m88k.c | |
cc97dfbb | 90 | cpu-rs6000.c |
c7551f76 | 91 | cpu-we32k.c |
d41ab714 | 92 | cpu-z8k.c |
1d535e75 | 93 | hp300bsd.c |
63ffe5ef | 94 | init.c |
63ffe5ef | 95 | cpu-sparc.c |
08942d11 RP |
96 | libbfd.c |
97 | libbfd.h | |
901c5bfd | 98 | libcoff-in.h |
08942d11 | 99 | libcoff.h |
76b731f9 | 100 | libhppa.h |
08942d11 RP |
101 | libieee.h |
102 | liboasys.h | |
08942d11 RP |
103 | newsos3.c |
104 | oasys.c | |
105 | opncls.c | |
6f715d66 | 106 | reloc.c |
075caafd | 107 | reloc16.c |
cf15d9e9 | 108 | rs6000-core.c |
42c39b69 | 109 | sco-core.c |
e98e6ec1 | 110 | seclet.c |
dc72b0b6 | 111 | seclet.h |
6f715d66 | 112 | section.c |
08942d11 | 113 | srec.c |
7de245d3 | 114 | stab-syms.c |
08942d11 | 115 | sunos.c |
6f715d66 | 116 | syms.c |
08942d11 | 117 | targets.c |
a14b2941 | 118 | tekhex.c |
08942d11 | 119 | trad-core.c |
08942d11 RP |
120 | |
121 | Do-last: | |
122 | ||
446545dd | 123 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
5d74c1e5 | 124 | echo Keeping v9 in aoutx.h |
446545dd JG |
125 | else |
126 | echo Sanitizing v9 in aoutx.h | |
127 | rm -f new | |
128 | while grep -s start-sanitize-v9 aoutx.h ; do | |
129 | sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new | |
01f0a88e RP |
130 | if [ -n "${safe}" ] ; then |
131 | mv aoutx.h .Recover | |
132 | else | |
133 | rm aoutx.h | |
134 | fi | |
446545dd JG |
135 | mv new aoutx.h |
136 | done | |
137 | fi | |
138 | ||
08942d11 RP |
139 | echo Done in `pwd`. |
140 | ||
08942d11 | 141 | # End of file. |