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 | |
33 | config.h.in | |
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 | |
ffa057ee | 48 | ldctor.c |
1cc27b5e | 49 | ldctor.h |
c3d97ef6 PB |
50 | ldemul.c |
51 | ldemul.h | |
5f1fec76 SC |
52 | ldexp.c |
53 | ldexp.h | |
54 | ldfile.c | |
5f1fec76 | 55 | ldfile.h |
5f1fec76 | 56 | ldgram.y |
4b91c519 | 57 | ldint.texinfo |
5f1fec76 SC |
58 | ldlang.c |
59 | ldlang.h | |
60 | ldlex.h | |
61 | ldlex.l | |
5f1fec76 SC |
62 | ldmain.c |
63 | ldmain.h | |
64 | ldmisc.c | |
65 | ldmisc.h | |
5f1fec76 SC |
66 | ldver.c |
67 | ldver.h | |
5f1fec76 SC |
68 | ldwrite.c |
69 | ldwrite.h | |
0cc6a796 | 70 | lexsup.c |
36ae618c SS |
71 | mpw-config.in |
72 | mpw-emipsidt.c | |
aad90580 | 73 | mpw-esh.c |
36ae618c | 74 | mpw-make.in |
b11a9b28 | 75 | mri.c |
a586b5bc | 76 | mri.h |
2b63dbfe | 77 | scripttempl |
d66c832b | 78 | sysdep.h |
e2f9f0f6 | 79 | testsuite |
86e4d6e4 | 80 | |
87756e15 RP |
81 | Things-to-lose: |
82 | ||
86e4d6e4 RP |
83 | Do-last: |
84 | ||
d66c832b | 85 | rce_files="configure.in configure.tgt Makefile.in" |
5fa60968 | 86 | |
ff030c98 MT |
87 | if ( echo $* | grep keep\-rce > /dev/null ) ; then |
88 | for i in $rce_files ; do | |
89 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5fa60968 | 90 | if [ -n "${verbose}" ] ; then |
ff030c98 | 91 | echo Keeping rce stuff in $i |
5fa60968 MT |
92 | fi |
93 | fi | |
94 | done | |
95 | else | |
ff030c98 MT |
96 | for i in $rce_files ; do |
97 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5fa60968 | 98 | if [ -n "${verbose}" ] ; then |
ff030c98 | 99 | echo Removing traces of \"rce\" from $i... |
5fa60968 MT |
100 | fi |
101 | cp $i new | |
ff030c98 | 102 | sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new |
5fa60968 MT |
103 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
104 | if [ -n "${verbose}" ] ; then | |
105 | echo Caching $i in .Recover... | |
106 | fi | |
107 | mv $i .Recover | |
108 | fi | |
109 | mv new $i | |
110 | fi | |
111 | done | |
112 | fi | |
113 | ||
d66c832b | 114 | arc_files="ChangeLog configure.in configure.tgt Makefile.in" |
d0bfd8ec | 115 | |
d0bfd8ec KR |
116 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
117 | for i in $arc_files ; do | |
118 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
119 | if [ -n "${verbose}" ] ; then | |
120 | echo Keeping arc stuff in $i | |
121 | fi | |
122 | fi | |
123 | done | |
124 | else | |
125 | for i in $arc_files ; do | |
126 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
127 | if [ -n "${verbose}" ] ; then | |
128 | echo Removing traces of \"arc\" from $i... | |
129 | fi | |
130 | cp $i new | |
131 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
132 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
133 | if [ -n "${verbose}" ] ; then | |
134 | echo Caching $i in .Recover... | |
135 | fi | |
136 | mv $i .Recover | |
137 | fi | |
138 | mv new $i | |
139 | fi | |
140 | done | |
141 | fi | |
142 | ||
5fa60968 MT |
143 | for i in * ; do |
144 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
145 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
146 | fi | |
147 | done | |
148 | ||
149 | # | |
86e4d6e4 | 150 | # End of file. |