Commit | Line | Data |
---|---|---|
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 | |
16 | Do-first: | |
17 | ||
86e4d6e4 RP |
18 | # All files listed between the "Things-to-keep:" line and the |
19 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
20 | # Directories listed in this section will have their own Sanitize | |
21 | # called. Directories not listed will be removed in their entirety | |
22 | # with rm -rf. | |
23 | ||
24 | Things-to-keep: | |
87756e15 | 25 | |
5784123f | 26 | ChangeLog |
86e4d6e4 | 27 | Makefile.in |
bc3b479c | 28 | NEWS |
c3d97ef6 | 29 | README |
fbd74d07 | 30 | TODO |
d66c832b ILT |
31 | acconfig.h |
32 | aclocal.m4 | |
ef346f1a | 33 | config.in |
d66c832b | 34 | configure |
65aa3724 | 35 | configure.bat |
d66c832b | 36 | configure.host |
86e4d6e4 | 37 | configure.in |
d66c832b | 38 | configure.tgt |
f8083739 | 39 | dep-in.sed |
2b63dbfe DM |
40 | emulparams |
41 | emultempl | |
c3d97ef6 | 42 | genscripts.sh |
2412a768 | 43 | h8-doc.texi |
40ab8532 | 44 | ld.1 |
2412a768 | 45 | gen-doc.texi |
5f1fec76 SC |
46 | ld.h |
47 | ld.texinfo | |
07acd23b | 48 | ldcref.c |
ffa057ee | 49 | ldctor.c |
1cc27b5e | 50 | ldctor.h |
c3d97ef6 PB |
51 | ldemul.c |
52 | ldemul.h | |
5f1fec76 SC |
53 | ldexp.c |
54 | ldexp.h | |
55 | ldfile.c | |
5f1fec76 | 56 | ldfile.h |
5f1fec76 | 57 | ldgram.y |
4b91c519 | 58 | ldint.texinfo |
5f1fec76 SC |
59 | ldlang.c |
60 | ldlang.h | |
61 | ldlex.h | |
62 | ldlex.l | |
5f1fec76 SC |
63 | ldmain.c |
64 | ldmain.h | |
65 | ldmisc.c | |
66 | ldmisc.h | |
5f1fec76 SC |
67 | ldver.c |
68 | ldver.h | |
5f1fec76 SC |
69 | ldwrite.c |
70 | ldwrite.h | |
0cc6a796 | 71 | lexsup.c |
aacc02d7 | 72 | mac-ld.r |
36ae618c SS |
73 | mpw-config.in |
74 | mpw-emipsidt.c | |
aaa877b7 | 75 | mpw-eppcmac.c |
aad90580 | 76 | mpw-esh.c |
aacc02d7 | 77 | mpw-make.sed |
b11a9b28 | 78 | mri.c |
a586b5bc | 79 | mri.h |
2b63dbfe | 80 | scripttempl |
d66c832b | 81 | sysdep.h |
e2f9f0f6 | 82 | testsuite |
86e4d6e4 | 83 | |
87756e15 RP |
84 | Things-to-lose: |
85 | ||
86e4d6e4 RP |
86 | Do-last: |
87 | ||
d66c832b | 88 | arc_files="ChangeLog configure.in configure.tgt Makefile.in" |
d0bfd8ec | 89 | |
d0bfd8ec KR |
90 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
91 | for i in $arc_files ; do | |
92 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
93 | if [ -n "${verbose}" ] ; then | |
94 | echo Keeping arc stuff in $i | |
95 | fi | |
96 | fi | |
97 | done | |
98 | else | |
99 | for i in $arc_files ; do | |
100 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
101 | if [ -n "${verbose}" ] ; then | |
102 | echo Removing traces of \"arc\" from $i... | |
103 | fi | |
104 | cp $i new | |
105 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
106 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
107 | if [ -n "${verbose}" ] ; then | |
108 | echo Caching $i in .Recover... | |
109 | fi | |
110 | mv $i .Recover | |
111 | fi | |
112 | mv new $i | |
113 | fi | |
114 | done | |
115 | fi | |
116 | ||
e9525d96 MH |
117 | d10v_files="ChangeLog configure.in configure.tgt Makefile.in" |
118 | ||
119 | if ( echo $* | grep keep\-d10v > /dev/null ) ; then | |
120 | for i in $d10v_files ; do | |
121 | if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then | |
122 | if [ -n "${verbose}" ] ; then | |
123 | echo Keeping d10v stuff in $i | |
124 | fi | |
125 | fi | |
126 | done | |
127 | else | |
128 | for i in $d10v_files ; do | |
129 | if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then | |
130 | if [ -n "${verbose}" ] ; then | |
131 | echo Removing traces of \"d10v\" from $i... | |
132 | fi | |
133 | cp $i new | |
134 | sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new | |
135 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
136 | if [ -n "${verbose}" ] ; then | |
137 | echo Caching $i in .Recover... | |
138 | fi | |
139 | mv $i .Recover | |
140 | fi | |
141 | mv new $i | |
142 | fi | |
143 | done | |
144 | fi | |
145 | ||
5fa60968 MT |
146 | for i in * ; do |
147 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
148 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
149 | fi | |
150 | done | |
151 | ||
152 | # | |
86e4d6e4 | 153 | # End of file. |