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