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 |
08942d11 RP |
33 | aout32.c |
34 | aout64.c | |
35 | aoutf1.h | |
08942d11 | 36 | aoutx.h |
a89f7423 | 37 | aout-target.h |
08942d11 RP |
38 | archive.c |
39 | archures.c | |
901c5bfd | 40 | bfd-in.h |
08942d11 | 41 | bfd.c |
08942d11 RP |
42 | bout.c |
43 | cache.c | |
e181b631 | 44 | ctor.c |
156e3852 | 45 | coff-a29k.c |
71e34032 | 46 | coff-h8300.c |
156e3852 JG |
47 | coff-i386.c |
48 | coff-i960.c | |
49 | coff-m68k.c | |
50 | coff-m88k.c | |
51 | coff-mips.c | |
583f79e9 | 52 | coff-msym.c |
156e3852 | 53 | coff-rs6000.c |
08942d11 | 54 | coffcode.h |
fb1c4481 | 55 | config |
13b351cc | 56 | configure.bat |
08942d11 | 57 | configure.in |
6f715d66 | 58 | core.c |
08942d11 | 59 | demo64.c |
ea3768dc | 60 | elf.c |
08942d11 | 61 | filemode.c |
6f715d66 | 62 | format.c |
608de555 | 63 | gen-aout.c |
08942d11 | 64 | host-aout.c |
90c7c720 | 65 | hosts |
76b731f9 | 66 | hppa.c |
b7de6963 | 67 | i386aout.c |
08942d11 | 68 | ieee.c |
141c97ea | 69 | libaout.h |
901c5bfd | 70 | libbfd-in.h |
63ffe5ef SC |
71 | cpu-a29k.c |
72 | cpu-i386.c | |
73 | cpu-m68k.c | |
74 | cpu-mips.c | |
75 | cpu-vax.c | |
76 | cpu-h8300.c | |
76b731f9 | 77 | cpu-hppa.c |
63ffe5ef SC |
78 | cpu-i960.c |
79 | cpu-m88k.c | |
cc97dfbb | 80 | cpu-rs6000.c |
1d535e75 | 81 | hp300bsd.c |
63ffe5ef | 82 | init.c |
63ffe5ef | 83 | cpu-sparc.c |
08942d11 RP |
84 | libbfd.c |
85 | libbfd.h | |
901c5bfd | 86 | libcoff-in.h |
08942d11 | 87 | libcoff.h |
76b731f9 | 88 | libhppa.h |
08942d11 RP |
89 | libieee.h |
90 | liboasys.h | |
08942d11 RP |
91 | newsos3.c |
92 | oasys.c | |
93 | opncls.c | |
6f715d66 | 94 | reloc.c |
cf15d9e9 | 95 | rs6000-core.c |
2403c164 | 96 | scripts |
e98e6ec1 | 97 | seclet.c |
dc72b0b6 | 98 | seclet.h |
6f715d66 | 99 | section.c |
08942d11 | 100 | srec.c |
7de245d3 | 101 | stab-syms.c |
08942d11 | 102 | sunos.c |
6f715d66 | 103 | syms.c |
08942d11 | 104 | targets.c |
a14b2941 | 105 | tekhex.c |
08942d11 RP |
106 | trad-core.c |
107 | trad-core.h | |
108 | ||
109 | Do-last: | |
110 | ||
446545dd JG |
111 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
112 | echo Keeping v9 in aoutx.h | |
113 | else | |
114 | echo Sanitizing v9 in aoutx.h | |
115 | rm -f new | |
116 | while grep -s start-sanitize-v9 aoutx.h ; do | |
117 | sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new | |
01f0a88e RP |
118 | if [ -n "${safe}" ] ; then |
119 | mv aoutx.h .Recover | |
120 | else | |
121 | rm aoutx.h | |
122 | fi | |
446545dd JG |
123 | mv new aoutx.h |
124 | done | |
125 | fi | |
126 | ||
08942d11 RP |
127 | echo Done in `pwd`. |
128 | ||
08942d11 | 129 | # End of file. |