* ldmain.c (lprefix): Change default from a char to a string
[deliverable/binutils-gdb.git] / ld / .Sanitize
CommitLineData
86e4d6e4
RP
1# Sanitize.in for devo.
2# $Id$
3#
4
5# Each directory to survive it's way into a release will need a file
6# like this one called "./.Sanitize". All keyword lines must exist,
7# and must exist in the order specified by this file. Each directory
8# in the tree will be processed, top down, in the following order.
9
10# Hash started lines like this one are comments and will be deleted
11# before anything else is done. Blank lines will also be squashed
12# out.
13
14# The lines between the "Do-first:" line and the "Things-to-keep:"
15# line are executed as a /bin/sh shell script before anything else is
c05e34de 16# done in this
86e4d6e4
RP
17
18Do-first:
19
d9c2980f
DE
20if ( echo $* | grep keep\-v9 > /dev/null ) ; then
21 keep_these_too=""
22fi
86e4d6e4
RP
23
24# All files listed between the "Things-to-keep:" line and the
25# "Files-to-sed:" line will be kept. All other files will be removed.
26# Directories listed in this section will have their own Sanitize
27# called. Directories not listed will be removed in their entirety
28# with rm -rf.
29
30Things-to-keep:
87756e15 31
5784123f 32ChangeLog
86e4d6e4 33Makefile.in
bc3b479c 34NEWS
c3d97ef6 35README
fbd74d07 36TODO
917bffa7
PB
37cdtest-foo.cc
38cdtest-foo.h
39cdtest-func.cc
40cdtest-main.cc
41cdtest.exp
86e4d6e4 42config
5f1fec76 43config.h
65aa3724 44configure.bat
86e4d6e4 45configure.in
f8083739 46dep-in.sed
2b63dbfe
DM
47emulparams
48emultempl
c3d97ef6 49genscripts.sh
2412a768 50h8-doc.texi
40ab8532 51ld.1
2412a768 52gen-doc.texi
5f1fec76
SC
53ld.h
54ld.texinfo
ffa057ee 55ldctor.c
1cc27b5e 56ldctor.h
c3d97ef6
PB
57ldemul.c
58ldemul.h
59lderror.c
4fe79f06 60lderror.h
5f1fec76
SC
61ldexp.c
62ldexp.h
63ldfile.c
5f1fec76 64ldfile.h
5f1fec76 65ldgram.y
c3d97ef6
PB
66ldindr.c
67ldindr.h
4b91c519 68ldint.texinfo
5f1fec76
SC
69ldlang.c
70ldlang.h
71ldlex.h
72ldlex.l
5f1fec76
SC
73ldmain.c
74ldmain.h
75ldmisc.c
76ldmisc.h
77ldsym.c
78ldsym.h
5f1fec76
SC
79ldver.c
80ldver.h
c3d97ef6 81ldwarn.c
5f1fec76
SC
82ldwarn.h
83ldwrite.c
84ldwrite.h
0cc6a796 85lexsup.c
b11a9b28 86mri.c
a586b5bc 87mri.h
c3d97ef6 88relax.c
4fe79f06 89relax.h
2b63dbfe 90scripttempl
86e4d6e4 91
87756e15
RP
92Things-to-lose:
93
86e4d6e4
RP
94Do-last:
95
d9c2980f
DE
96echo Looking for signs of \"v9\"...
97
98# Don't try to clean directories here, as the 'mv' command will fail.
99# Also, grep fails on NFS mounted directories.
100if ( echo $* | grep keep\-v9 > /dev/null ) ; then
101 for i in * ; do
102 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
103 echo Keeping v9 stuff in $i
104 fi
105 done
106else
107 for i in * ; do
108 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
109 echo Cleaning the \"v9\" out of $i...
110 cp $i new
111 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
112 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
113 echo Caching $i in .Recover...
114 mv $i .Recover
115 fi
116 mv new $i
117 fi
118 done
119fi
86e4d6e4 120
86e4d6e4 121# End of file.
This page took 0.094304 seconds and 4 git commands to generate.