New file.
[deliverable/binutils-gdb.git] / gas / .Sanitize
CommitLineData
4f5d16c7 1# .Sanitize for devo/gas
d4d5412d 2
4f5d16c7 3# Each directory to survive its way into a release will need a file
d4d5412d
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
14# done in this
15
16Do-first:
17
4f5d16c7 18if ( echo $* | grep keep\-mpw > /dev/null ) ; then
6d15011d 19 keep_these_too="mpw-config.in mpw-build.in mpw-make.in ChangeLog.mpw"
2a79b202 20else
6d15011d 21 lose_these_too="mpw-config.in mpw-build.in mpw-make.in ChangeLog.mpw"
2a79b202
SS
22fi
23
24if ( echo $* | grep keep\-gm > /dev/null ) ; then
25 keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
26else
27 lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
4f5d16c7 28fi
d4d5412d
RP
29
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:
37
38.gdbinit
eee109cd 39CONTRIBUTORS
d4d5412d
RP
40COPYING
41ChangeLog
003acb2d 42ChangeLog.v9
d4d5412d 43Makefile.in
eee109cd 44NEWS
d4d5412d
RP
45NOTES
46NOTES.config
47README
920babce 48README-quirks
eee109cd 49README-vms
d4d5412d
RP
50README.coff
51README.rich
52app.c
53as.c
54as.h
55atof-generic.c
d4d5412d
RP
56bignum-copy.c
57bignum.h
eee109cd 58bit_fix.h
d4d5412d
RP
59cond.c
60config
003acb2d 61config-gas.com
c593cf41 62configure.bat
d4d5412d
RP
63configure.in
64debug.c
a262a1b2 65doc
9faec336
ILT
66ecoff.c
67ecoff.h
d4d5412d
RP
68expr.c
69expr.h
d4d5412d 70flonum-copy.c
eee109cd 71flonum-konst.c
d4d5412d
RP
72flonum-mult.c
73flonum.h
74frags.c
75frags.h
76hash.c
77hash.h
78hex-value.c
79input-file.c
80input-file.h
81input-scrub.c
920babce 82link.cmd
d7d28d22
RP
83listing.c
84listing.h
2d29d89d 85literal.c
d4d5412d
RP
86make-gas.com
87messages.c
88obj.h
d4d5412d
RP
89output-file.c
90output-file.h
91read.c
92read.h
29249b42 93stabs.c
d4d5412d
RP
94struc-symbol.h
95subsegs.c
96subsegs.h
97symbols.c
98symbols.h
99tc.h
f70a4714 100testsuite
d4d5412d
RP
101write.c
102write.h
103xmalloc.c
d4d5412d 104
87756e15
RP
105Things-to-lose:
106
d4d5412d
RP
107Do-last:
108
003acb2d 109if ( echo $* | grep keep-v9 > /dev/null ) ; then
b15fb2ae
KR
110 if [ -n "${verbose}" ] ; then
111 echo Keeping `pwd`/ChangeLog.v9.
112 echo Keeping v9 code in `pwd`/configure.in.
113 fi
003acb2d 114else
b15fb2ae
KR
115 if [ -n "${verbose}" ] ; then
116 echo Removing `pwd`/ChangeLog.v9
117 fi
003acb2d
KR
118 if [ -n "${safe}" ] ; then
119 mv ChangeLog.v9 .Recover
120 else
121 rm ChangeLog.v9
122 fi
b15fb2ae
KR
123 if [ -n "${verbose}" ] ; then
124 echo Cleaning v9 code from `pwd`/configure.in.
125 fi
126 grep -v v9 < configure.in > new
127 if [ -n "${safe}" ]; then
128 mv configure.in .Recover
129 fi
130 mv -f new configure.in
003acb2d
KR
131fi
132
d4d5412d
RP
133
134#
d4d5412d 135# End of file.
This page took 0.098581 seconds and 4 git commands to generate.