* emultempl/pe.em (gld_i386_finish): generate import library
[deliverable/binutils-gdb.git] / ld / emultempl / .Sanitize
CommitLineData
8ddef552
DM
1# .Sanitize for devo/ld/config
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
16Do-first:
17
fbb99e9a 18
d51be0a9
RH
19beos_files="beos.em"
20if ( echo $* | grep keep\-beos > /dev/null ) ; then
21 keep_these_too="${beos_files} ${keep_these_too}"
22else
23 lose_these_too="${beos_files} ${lose_these_too}"
24fi
25
8ddef552
DM
26
27# All files listed between the "Things-to-keep:" line and the
28# "Do-last:" line will be kept. All other files will be removed.
29# Directories listed in this section will have their own Sanitize
30# called. Directories not listed will be removed in their entirety
31# with rm -rf.
32
33Things-to-keep:
34
35README
b5f076d4 36aix.em
796daf20 37armcoff.em
4be26f9d 38armelf.em
2a9fa50c 39elf32.em
8ddef552
DM
40generic.em
41gld960.em
7009748c 42gld960c.em
6cc2ced1 43hppaelf.em
08f20f66 44linux.em
8ddef552 45lnk960.em
dc5df17b 46mipsecoff.em
eb7f87c5 47pe.em
3f38a017 48stringify.sed
ed601bea 49sunos.em
8ddef552
DM
50vanilla.em
51
52Things-to-lose:
53
54# The lines between the "Do-last:" line and the end of the file
55# are executed as a /bin/sh shell script after everything else is
56# done.
57
58Do-last:
59
bf86ea82
DE
60sky_files="elf32.em"
61if ( echo $* | grep keep\-sky > /dev/null ) ; then
62 for i in $sky_files ; do
63 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
64 if [ -n "${verbose}" ] ; then
65 echo Keeping sky stuff in $i
66 fi
67 fi
68 done
69else
70 for i in $sky_files ; do
71 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
72 if [ -n "${verbose}" ] ; then
73 echo Removing traces of \"sky\" from $i...
74 fi
75 cp $i new
76 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
77 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
78 if [ -n "${verbose}" ] ; then
79 echo Caching $i in .Recover...
80 fi
81 mv $i .Recover
82 fi
83 mv new $i
84 fi
85 done
86fi
87
88for i in * ; do
bd163c91
ILT
89 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
90 echo '***' Some mentions of Sanitize are still left in ld/emultempl/$i! 1>&2
91 fi
bf86ea82 92done
This page took 0.194638 seconds and 4 git commands to generate.