* ar.c (write_archive): Allocate space for the null byte. From
[deliverable/binutils-gdb.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 coffdump.c
55 coffgrok.c
56 coffgrok.h
57 config
58 configure.bat
59 configure.in
60 filemode.c
61 gmalloc.c
62 is-ranlib.c
63 is-strip.c
64 maybe-ranlib.c
65 maybe-strip.c
66 nlmconv.1
67 nlmconv.c
68 nlmconv.h
69 nlmheader.y
70 nm.1
71 nm.c
72 not-ranlib.c
73 not-strip.c
74 objcopy.1
75 objcopy.c
76 objdump.1
77 objdump.c
78 ranlib.1
79 ranlib.sh
80 sanity.sh
81 size.1
82 size.c
83 srconv.c
84 strings.1
85 strings.c
86 strip.1
87 sysdump.c
88 sysinfo.y
89 syslex.l
90 sysroff.info
91 testsuite
92 version.c
93
94 Things-to-lose:
95
96 Do-last:
97
98 ppcfiles="ChangeLog nlmconv.c"
99 if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
100 if [ -n "${verbose}" ] ; then
101 echo Keeping PowerPC NetWare stuff in $ppcfiles.
102 fi
103 else
104 if [ -n "${verbose}" ]; then
105 echo -n Removing PowerPC NetWare in `pwd`:
106 fi
107 for f in $ppcfiles ; do
108 if [ -n "${verbose}" ] ; then
109 echo -n " " $f
110 fi
111 sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
112 if [ -n "${safe}" ] ; then
113 mv $f .Recover
114 fi
115 mv new $f
116 done
117 fi
This page took 0.032112 seconds and 4 git commands to generate.