Describe AT option of SECTIONS command, at long last.
[deliverable/binutils-gdb.git] / ld / .Sanitize
CommitLineData
747a47f2 1# .Sanitize for devo/ld
86e4d6e4 2
747a47f2 3# Each directory to survive its way into a release will need a file
86e4d6e4
RP
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
747a47f2 14# done in this directory.
86e4d6e4
RP
15
16Do-first:
17
d9c2980f
DE
18if ( echo $* | grep keep\-v9 > /dev/null ) ; then
19 keep_these_too=""
20fi
86e4d6e4 21
747a47f2
SS
22if ( echo $* | grep keep\-mpw > /dev/null ) ; then
23 keep_these_too="mpw-config.in mpw-build.in mpw-make.in ChangeLog.mpw ${keep_these_too}"
24else
25 lose_these_too="mpw-config.in mpw-build.in mpw-make.in ChangeLog.mpw ${lose_these_too}"
26fi
27
28if ( echo $* | grep keep\-gm > /dev/null ) ; then
29 keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
30else
31 lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
32fi
33
86e4d6e4
RP
34# All files listed between the "Things-to-keep:" line and the
35# "Files-to-sed:" line will be kept. All other files will be removed.
36# Directories listed in this section will have their own Sanitize
37# called. Directories not listed will be removed in their entirety
38# with rm -rf.
39
40Things-to-keep:
87756e15 41
5784123f 42ChangeLog
86e4d6e4 43Makefile.in
bc3b479c 44NEWS
c3d97ef6 45README
fbd74d07 46TODO
917bffa7
PB
47cdtest-foo.cc
48cdtest-foo.h
49cdtest-func.cc
50cdtest-main.cc
51cdtest.exp
86e4d6e4 52config
5f1fec76 53config.h
65aa3724 54configure.bat
86e4d6e4 55configure.in
f8083739 56dep-in.sed
2b63dbfe
DM
57emulparams
58emultempl
c3d97ef6 59genscripts.sh
2412a768 60h8-doc.texi
40ab8532 61ld.1
2412a768 62gen-doc.texi
5f1fec76
SC
63ld.h
64ld.texinfo
ffa057ee 65ldctor.c
1cc27b5e 66ldctor.h
c3d97ef6
PB
67ldemul.c
68ldemul.h
5f1fec76
SC
69ldexp.c
70ldexp.h
71ldfile.c
5f1fec76 72ldfile.h
5f1fec76 73ldgram.y
4b91c519 74ldint.texinfo
5f1fec76
SC
75ldlang.c
76ldlang.h
77ldlex.h
78ldlex.l
5f1fec76
SC
79ldmain.c
80ldmain.h
81ldmisc.c
82ldmisc.h
5f1fec76
SC
83ldver.c
84ldver.h
5f1fec76
SC
85ldwrite.c
86ldwrite.h
0cc6a796 87lexsup.c
b11a9b28 88mri.c
a586b5bc 89mri.h
2b63dbfe 90scripttempl
e2f9f0f6 91testsuite
86e4d6e4 92
87756e15
RP
93Things-to-lose:
94
86e4d6e4
RP
95Do-last:
96
d9c2980f
DE
97echo Looking for signs of \"v9\"...
98
99# Don't try to clean directories here, as the 'mv' command will fail.
100# Also, grep fails on NFS mounted directories.
101if ( echo $* | grep keep\-v9 > /dev/null ) ; then
102 for i in * ; do
103 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
104 echo Keeping v9 stuff in $i
105 fi
106 done
107else
108 for i in * ; do
109 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
110 echo Cleaning the \"v9\" out of $i...
111 cp $i new
112 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
113 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
114 echo Caching $i in .Recover...
115 mv $i .Recover
116 fi
117 mv new $i
118 fi
119 done
120fi
86e4d6e4 121
747a47f2
SS
122echo Looking for traces of \"mpw\"...
123
124# Don't try to clean directories here, as the 'mv' command will fail.
125# Also, grep fails on NFS mounted directories.
126if ( echo $* | grep keep\-mpw > /dev/null ) ; then
127 for i in * ; do
128 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
129 echo Keeping mpw traces in $i
130 fi
131 done
132else
133 for i in * ; do
134 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
135 echo Removing traces of \"mpw\" out of $i...
136 cp $i new
137 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
138 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
139 echo Caching $i in .Recover...
140 mv $i .Recover
141 fi
142 mv new $i
143 fi
144 done
145fi
146
86e4d6e4 147# End of file.
This page took 0.102961 seconds and 4 git commands to generate.