| 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 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
| 19 | keep_these_too="elf64-sparc.c" |
| 20 | fi |
| 21 | |
| 22 | # All files listed between the "Things-to-keep:" line and the |
| 23 | # "Files-to-sed:" line will be kept. All other files will be removed. |
| 24 | # Directories listed in this section will have their own Sanitize |
| 25 | # called. Directories not listed will be removed in their entirety |
| 26 | # with rm -rf. |
| 27 | |
| 28 | Things-to-keep: |
| 29 | |
| 30 | COPYING |
| 31 | ChangeLog |
| 32 | Makefile.in |
| 33 | PORTING |
| 34 | README.hppaelf |
| 35 | TODO |
| 36 | VERSION |
| 37 | aix386-core.c |
| 38 | aout-adobe.c |
| 39 | aout-encap.c |
| 40 | aout-target.h |
| 41 | aout32.c |
| 42 | aout64.c |
| 43 | aoutf1.h |
| 44 | aoutx.h |
| 45 | archive.c |
| 46 | archures.c |
| 47 | bfd-in.h |
| 48 | bfd-in2.h |
| 49 | bfd.c |
| 50 | bout.c |
| 51 | cache.c |
| 52 | coff-a29k.c |
| 53 | coff-alpha.c |
| 54 | coff-h8300.c |
| 55 | coff-h8500.c |
| 56 | coff-i386.c |
| 57 | coff-i960.c |
| 58 | coff-m68k.c |
| 59 | coff-m88k.c |
| 60 | coff-mips.c |
| 61 | coff-rs6000.c |
| 62 | coff-sh.c |
| 63 | coff-u68k.c |
| 64 | coff-we32k.c |
| 65 | coff-z8k.c |
| 66 | coffcode.h |
| 67 | coffgen.c |
| 68 | coffswap.h |
| 69 | config |
| 70 | config.bfd |
| 71 | configure.bat |
| 72 | configure.host |
| 73 | configure.in |
| 74 | core.c |
| 75 | cpu-a29k.c |
| 76 | cpu-alpha.c |
| 77 | cpu-h8300.c |
| 78 | cpu-h8500.c |
| 79 | cpu-hppa.c |
| 80 | cpu-i386.c |
| 81 | cpu-i960.c |
| 82 | cpu-m68k.c |
| 83 | cpu-m88k.c |
| 84 | cpu-mips.c |
| 85 | cpu-rs6000.c |
| 86 | cpu-sh.c |
| 87 | cpu-sparc.c |
| 88 | cpu-vax.c |
| 89 | cpu-we32k.c |
| 90 | cpu-z8k.c |
| 91 | ctor.c |
| 92 | demo64.c |
| 93 | doc |
| 94 | ecoff.c |
| 95 | ecoffswap.h |
| 96 | elf.c |
| 97 | elf32-gen.c |
| 98 | elf32-hppa.c |
| 99 | elf32-hppa.h |
| 100 | elf32-i386.c |
| 101 | elf32-i860.c |
| 102 | elf32-m68k.c |
| 103 | elf32-m88k.c |
| 104 | elf32-mips.c |
| 105 | elf32-sparc.c |
| 106 | elf32-target.h |
| 107 | elf32.c |
| 108 | elf64-gen.c |
| 109 | elf64-target.h |
| 110 | elf64.c |
| 111 | elfcode.h |
| 112 | filemode.c |
| 113 | format.c |
| 114 | gen-aout.c |
| 115 | host-aout.c |
| 116 | hosts |
| 117 | hp300bsd.c |
| 118 | hp300hpux.c |
| 119 | hppa.c |
| 120 | hppa_stubs.h |
| 121 | hpux-core.c |
| 122 | i386aout.c |
| 123 | i386bsd.c |
| 124 | i386linux.c |
| 125 | i386lynx.c |
| 126 | ieee.c |
| 127 | init.c |
| 128 | libaout.h |
| 129 | libbfd-in.h |
| 130 | libbfd.c |
| 131 | libbfd.h |
| 132 | libcoff-in.h |
| 133 | libcoff.h |
| 134 | libecoff.h |
| 135 | libelf.h |
| 136 | libhppa.h |
| 137 | libieee.h |
| 138 | libnlm.h |
| 139 | liboasys.h |
| 140 | mipsbsd.c |
| 141 | newsos3.c |
| 142 | nlm-target.h |
| 143 | nlm.c |
| 144 | nlm32-gen.c |
| 145 | nlm32-i386.c |
| 146 | nlm32.c |
| 147 | nlm64-gen.c |
| 148 | nlm64.c |
| 149 | nlmcode.h |
| 150 | oasys.c |
| 151 | opncls.c |
| 152 | reloc.c |
| 153 | reloc16.c |
| 154 | rs6000-core.c |
| 155 | sco-core.c |
| 156 | seclet.c |
| 157 | seclet.h |
| 158 | section.c |
| 159 | srec.c |
| 160 | stab-syms.c |
| 161 | sunos.c |
| 162 | syms.c |
| 163 | targets.c |
| 164 | tekhex.c |
| 165 | trad-core.c |
| 166 | |
| 167 | Things-to-lose: |
| 168 | |
| 169 | |
| 170 | Do-last: |
| 171 | |
| 172 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c" |
| 173 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
| 174 | if [ -n "${verbose}" ] ; then |
| 175 | echo Keeping v9 stuff in $v9files. |
| 176 | fi |
| 177 | else |
| 178 | if [ -n "${verbose}" ]; then |
| 179 | echo -n Cleaning v9 in `pwd`: |
| 180 | fi |
| 181 | for f in $v9files ; do |
| 182 | if [ -n "${verbose}" ] ; then |
| 183 | echo -n " " $f |
| 184 | fi |
| 185 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
| 186 | if [ -n "${safe}" ] ; then |
| 187 | mv $f .Recover |
| 188 | fi |
| 189 | mv new $f |
| 190 | done |
| 191 | fi |
| 192 | |
| 193 | # End of file. |