Commit | Line | Data |
---|---|---|
5fd51993 | 1 | # Sanitize.in for devo/binutils |
86e4d6e4 | 2 | |
5fd51993 | 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 | |
42d11afa | 14 | # done in this directory. |
86e4d6e4 RP |
15 | |
16 | Do-first: | |
17 | ||
5fd51993 SS |
18 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
19 | keep_these_too="mpw-build.in mpw-make.in ChangeLog.mpw" | |
20 | else | |
21 | lose_these_too="mpw-build.in mpw-make.in ChangeLog.mpw" | |
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: | |
31 | ||
32 | ChangeLog | |
33 | Makefile.in | |
9c994225 | 34 | NEWS |
5a77e916 | 35 | README |
86e4d6e4 RP |
36 | TODO |
37 | alloca.c | |
05b47bfb | 38 | ar.1 |
5a77e916 | 39 | ar.c |
c0cc6912 | 40 | arlex.l |
aef3999f | 41 | arparse.y |
c0cc6912 SC |
42 | arsup.c |
43 | arsup.h | |
c83497f5 | 44 | binutils.texi |
86e4d6e4 | 45 | bucomm.c |
5a77e916 | 46 | bucomm.h |
3ac620d4 | 47 | c++filt.1 |
0ce51ae9 | 48 | configure.bat |
86e4d6e4 | 49 | configure.in |
e49dde89 | 50 | config |
86e4d6e4 RP |
51 | filemode.c |
52 | gmalloc.c | |
5a77e916 SC |
53 | is-ranlib.c |
54 | is-strip.c | |
5a77e916 SC |
55 | maybe-ranlib.c |
56 | maybe-strip.c | |
3883531f | 57 | nlmconv.1 |
d130c9c5 ILT |
58 | nlmconv.c |
59 | nlmconv.h | |
60 | nlmheader.y | |
5a77e916 | 61 | nm.1 |
86e4d6e4 | 62 | nm.c |
5a77e916 SC |
63 | not-ranlib.c |
64 | not-strip.c | |
3ac620d4 | 65 | objcopy.1 |
df14d957 | 66 | objcopy.c |
5a77e916 | 67 | objdump.1 |
86e4d6e4 | 68 | objdump.c |
5a77e916 | 69 | ranlib.1 |
06a97fbd | 70 | ranlib.sh |
aef3999f | 71 | sanity.sh |
5a77e916 | 72 | size.1 |
86e4d6e4 | 73 | size.c |
ba7c8e29 DM |
74 | strings.1 |
75 | strings.c | |
5a77e916 | 76 | strip.1 |
fdee1696 | 77 | testsuite |
86e4d6e4 RP |
78 | version.c |
79 | ||
87756e15 RP |
80 | Things-to-lose: |
81 | ||
86e4d6e4 | 82 | Do-last: |
d1a7f14f ILT |
83 | |
84 | ppcfiles="ChangeLog nlmconv.c" | |
85 | if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then | |
86 | if [ -n "${verbose}" ] ; then | |
87 | echo Keeping PowerPC NetWare stuff in $ppcfiles. | |
88 | fi | |
89 | else | |
90 | if [ -n "${verbose}" ]; then | |
91 | echo -n Removing PowerPC NetWare in `pwd`: | |
92 | fi | |
93 | for f in $ppcfiles ; do | |
94 | if [ -n "${verbose}" ] ; then | |
95 | echo -n " " $f | |
96 | fi | |
97 | sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new | |
98 | if [ -n "${safe}" ] ; then | |
99 | mv $f .Recover | |
100 | fi | |
101 | mv new $f | |
102 | done | |
103 | fi |