aef97accaabc3716392e3431abc15b5c59d94cb8
[binutils-gdb.git] / ld / emulparams / .Sanitize
1 # .Sanitize for devo/ld/emulparams
2
3 # Each directory to survive its 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 directory.
15
16 Do-first:
17
18
19 # All files listed between the "Things-to-keep:" line and the
20 # "Do-last:" 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
25 Things-to-keep:
26
27 README
28 a29k.sh
29 alpha.sh
30 coff_sparc.sh
31 ebmon29k.sh
32 elf32_sparc.sh
33 elf64_sparc.sh
34 elf32mipb.sh
35 elf32ppc.sh
36 elf_i386.sh
37 gld960.sh
38 go32.sh
39 h8300.sh
40 h8300h.sh
41 h8500.sh
42 h8500b.sh
43 h8500c.sh
44 h8500s.sh
45 h8500m.sh
46 hp300bsd.sh
47 hp3hpux.sh
48 hppaelf.sh
49 i386aout.sh
50 i386bsd.sh
51 i386coff.sh
52 i386linux.sh
53 i386lynx.sh
54 i386mach.sh
55 lnk960.sh
56 m68kcoff.sh
57 m68klynx.sh
58 m88kbcs.sh
59 mipsbig.sh
60 mipsbsd.sh
61 mipsidt.sh
62 mipsidtl.sh
63 mipslit.sh
64 news.sh
65 sa29200.sh
66 sh.sh
67 sparclynx.sh
68 st2000.sh
69 sun3.sh
70 sun4.sh
71 vanilla.sh
72 vax.sh
73 vsta.sh
74 z8ksim.sh
75
76 Things-to-lose:
77
78 # The lines between the "Do-last:" line and the end of the file
79 # are executed as a /bin/sh shell script after everything else is
80 # done.
81
82 Do-last:
83
84 if ( echo $* | grep keep-v9 > /dev/null ) ; then
85 if [ -n "${verbose}" ] ; then
86 echo Keeping `pwd`/elf64_sparc.sh.
87 fi
88 else
89 if [ -n "${verbose}" ] ; then
90 echo Removing `pwd`/elf64_sparc.sh.
91 fi
92 if [ -n "${safe}" ] ; then
93 mv elf64_sparc.sh .Recover
94 else
95 rm elf64_sparc.sh
96 fi
97 fi
98