Separated out opcode aliases from m68k opcode table, to reduce table size and
[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
2b510738 18mpw_files="mpw-make.in mpw-config.in mpw-em.c ChangeLog.mpw"
10f1b597 19
747a47f2 20if ( echo $* | grep keep\-mpw > /dev/null ) ; then
10f1b597 21 keep_these_too="${mpw_files} ${keep_these_too}"
747a47f2 22else
10f1b597 23 lose_these_too="${mpw_files} ${lose_these_too}"
747a47f2
SS
24fi
25
86e4d6e4
RP
26# All files listed between the "Things-to-keep:" line and the
27# "Files-to-sed:" line will be kept. All other files will be removed.
28# Directories listed in this section will have their own Sanitize
29# called. Directories not listed will be removed in their entirety
30# with rm -rf.
31
32Things-to-keep:
87756e15 33
5784123f 34ChangeLog
86e4d6e4 35Makefile.in
bc3b479c 36NEWS
c3d97ef6 37README
fbd74d07 38TODO
86e4d6e4 39config
5f1fec76 40config.h
65aa3724 41configure.bat
86e4d6e4 42configure.in
f8083739 43dep-in.sed
2b63dbfe
DM
44emulparams
45emultempl
c3d97ef6 46genscripts.sh
2412a768 47h8-doc.texi
40ab8532 48ld.1
2412a768 49gen-doc.texi
5f1fec76
SC
50ld.h
51ld.texinfo
ffa057ee 52ldctor.c
1cc27b5e 53ldctor.h
c3d97ef6
PB
54ldemul.c
55ldemul.h
5f1fec76
SC
56ldexp.c
57ldexp.h
58ldfile.c
5f1fec76 59ldfile.h
5f1fec76 60ldgram.y
4b91c519 61ldint.texinfo
5f1fec76
SC
62ldlang.c
63ldlang.h
64ldlex.h
65ldlex.l
5f1fec76
SC
66ldmain.c
67ldmain.h
68ldmisc.c
69ldmisc.h
5f1fec76
SC
70ldver.c
71ldver.h
5f1fec76
SC
72ldwrite.c
73ldwrite.h
0cc6a796 74lexsup.c
b11a9b28 75mri.c
a586b5bc 76mri.h
2b63dbfe 77scripttempl
e2f9f0f6 78testsuite
86e4d6e4 79
87756e15
RP
80Things-to-lose:
81
86e4d6e4
RP
82Do-last:
83
747a47f2
SS
84echo Looking for traces of \"mpw\"...
85
86# Don't try to clean directories here, as the 'mv' command will fail.
87# Also, grep fails on NFS mounted directories.
88if ( echo $* | grep keep\-mpw > /dev/null ) ; then
89 for i in * ; do
90 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
91 echo Keeping mpw traces in $i
92 fi
93 done
94else
95 for i in * ; do
96 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
97 echo Removing traces of \"mpw\" out of $i...
98 cp $i new
99 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
100 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
101 echo Caching $i in .Recover...
102 mv $i .Recover
103 fi
104 mv new $i
105 fi
106 done
107fi
108
fb14975b 109rce_files="configure.in Makefile.in"
5fa60968 110
ff030c98
MT
111if ( echo $* | grep keep\-rce > /dev/null ) ; then
112 for i in $rce_files ; do
113 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5fa60968 114 if [ -n "${verbose}" ] ; then
ff030c98 115 echo Keeping rce stuff in $i
5fa60968
MT
116 fi
117 fi
118 done
119else
ff030c98
MT
120 for i in $rce_files ; do
121 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5fa60968 122 if [ -n "${verbose}" ] ; then
ff030c98 123 echo Removing traces of \"rce\" from $i...
5fa60968
MT
124 fi
125 cp $i new
ff030c98 126 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
5fa60968
MT
127 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
128 if [ -n "${verbose}" ] ; then
129 echo Caching $i in .Recover...
130 fi
131 mv $i .Recover
132 fi
133 mv new $i
134 fi
135 done
136fi
137
a466a7a0 138arc_files="ChangeLog configure.in Makefile.in"
d0bfd8ec 139
d0bfd8ec
KR
140if ( echo $* | grep keep\-arc > /dev/null ) ; then
141 for i in $arc_files ; do
142 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
143 if [ -n "${verbose}" ] ; then
144 echo Keeping arc stuff in $i
145 fi
146 fi
147 done
148else
149 for i in $arc_files ; do
150 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Removing traces of \"arc\" from $i...
153 fi
154 cp $i new
155 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
156 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
157 if [ -n "${verbose}" ] ; then
158 echo Caching $i in .Recover...
159 fi
160 mv $i .Recover
161 fi
162 mv new $i
163 fi
164 done
165fi
166
5fa60968
MT
167for i in * ; do
168 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
169 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
170 fi
171done
172
173#
86e4d6e4 174# End of file.
This page took 0.131257 seconds and 4 git commands to generate.