Sanitization changes to reflect other comings and goings
[platform/upstream/binutils.git] / binutils / .Sanitize
1 # .Sanitize for devo/binutils.
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
19         keep_these_too="mpw-make.in ChangeLog.mpw"
20 else
21         lose_these_too="mpw-make.in ChangeLog.mpw"
22 fi
23
24 if ( echo $* | grep keep\-gm > /dev/null ) ; then
25         keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
26 else
27         lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
28 fi
29
30 # All files listed between the "Things-to-keep:" line and the
31 # "Files-to-sed:" line will be kept.  All other files will be removed.
32 # Directories listed in this section will have their own Sanitize
33 # called.  Directories not listed will be removed in their entirety
34 # with rm -rf.
35
36 Things-to-keep:
37
38 ChangeLog
39 Makefile.in
40 NEWS
41 README
42 TODO
43 alloca.c
44 ar.1
45 ar.c
46 arlex.l
47 arparse.y
48 arsup.c
49 arsup.h
50 binutils.texi
51 bucomm.c
52 bucomm.h
53 c++filt.1
54 configure.bat
55 configure.in
56 config
57 filemode.c
58 gmalloc.c
59 is-ranlib.c
60 is-strip.c
61 maybe-ranlib.c
62 maybe-strip.c
63 nlmconv.1
64 nlmconv.c
65 nlmconv.h
66 nlmheader.y
67 nm.1
68 nm.c
69 not-ranlib.c
70 not-strip.c
71 objcopy.1
72 objcopy.c
73 objdump.1
74 objdump.c
75 ranlib.1
76 ranlib.sh
77 sanity.sh
78 size.1
79 size.c
80 strings.1
81 strings.c
82 strip.1
83 testsuite
84 version.c
85
86 Things-to-lose:
87
88 Do-last:
89
90 ppcfiles="ChangeLog nlmconv.c"
91 if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
92         if [ -n "${verbose}" ] ; then
93                 echo Keeping PowerPC NetWare stuff in $ppcfiles.
94         fi
95 else
96         if [ -n "${verbose}" ]; then
97                 echo -n Removing PowerPC NetWare in `pwd`:
98         fi
99         for f in $ppcfiles ; do
100                 if [ -n "${verbose}" ] ; then
101                         echo -n " " $f
102                 fi
103                 sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
104                 if [ -n "${safe}" ] ; then
105                         mv $f .Recover
106                 fi
107                 mv new $f
108         done
109 fi