]>
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 | ||
2b510738 | 18 | mpw_files="mpw-make.in mpw-config.in mpw-em.c ChangeLog.mpw" |
10f1b597 | 19 | |
747a47f2 | 20 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
10f1b597 | 21 | keep_these_too="${mpw_files} ${keep_these_too}" |
747a47f2 | 22 | else |
10f1b597 | 23 | lose_these_too="${mpw_files} ${lose_these_too}" |
747a47f2 SS |
24 | fi |
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 | ||
32 | Things-to-keep: | |
87756e15 | 33 | |
5784123f | 34 | ChangeLog |
86e4d6e4 | 35 | Makefile.in |
bc3b479c | 36 | NEWS |
c3d97ef6 | 37 | README |
fbd74d07 | 38 | TODO |
917bffa7 PB |
39 | cdtest-foo.cc |
40 | cdtest-foo.h | |
7e16be78 | 41 | cdtest-bar.cc |
917bffa7 PB |
42 | cdtest-main.cc |
43 | cdtest.exp | |
86e4d6e4 | 44 | config |
5f1fec76 | 45 | config.h |
65aa3724 | 46 | configure.bat |
86e4d6e4 | 47 | configure.in |
f8083739 | 48 | dep-in.sed |
2b63dbfe DM |
49 | emulparams |
50 | emultempl | |
c3d97ef6 | 51 | genscripts.sh |
2412a768 | 52 | h8-doc.texi |
40ab8532 | 53 | ld.1 |
2412a768 | 54 | gen-doc.texi |
5f1fec76 SC |
55 | ld.h |
56 | ld.texinfo | |
ffa057ee | 57 | ldctor.c |
1cc27b5e | 58 | ldctor.h |
c3d97ef6 PB |
59 | ldemul.c |
60 | ldemul.h | |
5f1fec76 SC |
61 | ldexp.c |
62 | ldexp.h | |
63 | ldfile.c | |
5f1fec76 | 64 | ldfile.h |
5f1fec76 | 65 | ldgram.y |
4b91c519 | 66 | ldint.texinfo |
5f1fec76 SC |
67 | ldlang.c |
68 | ldlang.h | |
69 | ldlex.h | |
70 | ldlex.l | |
5f1fec76 SC |
71 | ldmain.c |
72 | ldmain.h | |
73 | ldmisc.c | |
74 | ldmisc.h | |
5f1fec76 SC |
75 | ldver.c |
76 | ldver.h | |
5f1fec76 SC |
77 | ldwrite.c |
78 | ldwrite.h | |
0cc6a796 | 79 | lexsup.c |
b11a9b28 | 80 | mri.c |
a586b5bc | 81 | mri.h |
2b63dbfe | 82 | scripttempl |
e2f9f0f6 | 83 | testsuite |
86e4d6e4 | 84 | |
87756e15 RP |
85 | Things-to-lose: |
86 | ||
86e4d6e4 RP |
87 | Do-last: |
88 | ||
747a47f2 SS |
89 | echo Looking for traces of \"mpw\"... |
90 | ||
91 | # Don't try to clean directories here, as the 'mv' command will fail. | |
92 | # Also, grep fails on NFS mounted directories. | |
93 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
94 | for i in * ; do | |
95 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
96 | echo Keeping mpw traces in $i | |
97 | fi | |
98 | done | |
99 | else | |
100 | for i in * ; do | |
101 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
102 | echo Removing traces of \"mpw\" out of $i... | |
103 | cp $i new | |
104 | sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new | |
105 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
106 | echo Caching $i in .Recover... | |
107 | mv $i .Recover | |
108 | fi | |
109 | mv new $i | |
110 | fi | |
111 | done | |
112 | fi | |
113 | ||
86e4d6e4 | 114 | # End of file. |