]>
Commit | Line | Data |
---|---|---|
86e4d6e4 RP |
1 | # Sanitize.in for devo. |
2 | # $Id$ | |
3 | # | |
4 | ||
5 | # Each directory to survive it's way into a release will need a file | |
6 | # like this one called "./.Sanitize". All keyword lines must exist, | |
7 | # and must exist in the order specified by this file. Each directory | |
8 | # in the tree will be processed, top down, in the following order. | |
9 | ||
10 | # Hash started lines like this one are comments and will be deleted | |
11 | # before anything else is done. Blank lines will also be squashed | |
12 | # out. | |
13 | ||
14 | # The lines between the "Do-first:" line and the "Things-to-keep:" | |
15 | # line are executed as a /bin/sh shell script before anything else is | |
c05e34de | 16 | # done in this |
86e4d6e4 RP |
17 | |
18 | Do-first: | |
19 | ||
d9c2980f DE |
20 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
21 | keep_these_too="" | |
22 | fi | |
86e4d6e4 RP |
23 | |
24 | # All files listed between the "Things-to-keep:" line and the | |
25 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
26 | # Directories listed in this section will have their own Sanitize | |
27 | # called. Directories not listed will be removed in their entirety | |
28 | # with rm -rf. | |
29 | ||
30 | Things-to-keep: | |
87756e15 | 31 | |
5784123f | 32 | ChangeLog |
86e4d6e4 | 33 | Makefile.in |
bc3b479c | 34 | NEWS |
c3d97ef6 | 35 | README |
fbd74d07 | 36 | TODO |
917bffa7 PB |
37 | cdtest-foo.cc |
38 | cdtest-foo.h | |
39 | cdtest-func.cc | |
40 | cdtest-main.cc | |
41 | cdtest.exp | |
86e4d6e4 | 42 | config |
5f1fec76 | 43 | config.h |
65aa3724 | 44 | configure.bat |
86e4d6e4 | 45 | configure.in |
f8083739 | 46 | dep-in.sed |
2b63dbfe DM |
47 | emulparams |
48 | emultempl | |
c3d97ef6 | 49 | genscripts.sh |
2412a768 | 50 | h8-doc.texi |
40ab8532 | 51 | ld.1 |
2412a768 | 52 | gen-doc.texi |
5f1fec76 SC |
53 | ld.h |
54 | ld.texinfo | |
ffa057ee | 55 | ldctor.c |
1cc27b5e | 56 | ldctor.h |
c3d97ef6 PB |
57 | ldemul.c |
58 | ldemul.h | |
5f1fec76 SC |
59 | ldexp.c |
60 | ldexp.h | |
61 | ldfile.c | |
5f1fec76 | 62 | ldfile.h |
5f1fec76 | 63 | ldgram.y |
4b91c519 | 64 | ldint.texinfo |
5f1fec76 SC |
65 | ldlang.c |
66 | ldlang.h | |
67 | ldlex.h | |
68 | ldlex.l | |
5f1fec76 SC |
69 | ldmain.c |
70 | ldmain.h | |
71 | ldmisc.c | |
72 | ldmisc.h | |
5f1fec76 SC |
73 | ldver.c |
74 | ldver.h | |
5f1fec76 SC |
75 | ldwrite.c |
76 | ldwrite.h | |
0cc6a796 | 77 | lexsup.c |
b11a9b28 | 78 | mri.c |
a586b5bc | 79 | mri.h |
2b63dbfe | 80 | scripttempl |
86e4d6e4 | 81 | |
87756e15 RP |
82 | Things-to-lose: |
83 | ||
86e4d6e4 RP |
84 | Do-last: |
85 | ||
d9c2980f DE |
86 | echo Looking for signs of \"v9\"... |
87 | ||
88 | # Don't try to clean directories here, as the 'mv' command will fail. | |
89 | # Also, grep fails on NFS mounted directories. | |
90 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then | |
91 | for i in * ; do | |
92 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
93 | echo Keeping v9 stuff in $i | |
94 | fi | |
95 | done | |
96 | else | |
97 | for i in * ; do | |
98 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
99 | echo Cleaning the \"v9\" out of $i... | |
100 | cp $i new | |
101 | sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new | |
102 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
103 | echo Caching $i in .Recover... | |
104 | mv $i .Recover | |
105 | fi | |
106 | mv new $i | |
107 | fi | |
108 | done | |
109 | fi | |
86e4d6e4 | 110 | |
86e4d6e4 | 111 | # End of file. |