Add OBJF_SYMS flag and use it to decide whether or not we have already
[deliverable/binutils-gdb.git] / binutils / .Sanitize
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
16 # done in this
17
18 Do-first:
19
20 echo Sanitizing `pwd`...
21
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
26 # with rm -rf.
27
28 Things-to-keep:
29
30 ChangeLog
31 Makefile.dos
32 Makefile.in
33 README
34 TODO
35 alloca.c
36 am29k-pinsn.c
37 ar.1
38 ar.c
39 binutils.texi
40 bucomm.c
41 bucomm.h
42 configure.bat
43 configure.in
44 copy.c
45 cplus-dem.c
46 filemode.c
47 gmalloc.c
48 i960-pinsn.c
49 is-ranlib.c
50 is-strip.c
51 m68k-pinsn.c
52 maybe-ranlib.c
53 maybe-strip.c
54 nm.1
55 nm.c
56 not-ranlib.c
57 not-strip.c
58 objdump.1
59 objdump.c
60 objdump.h
61 ranlib.1
62 ranlib.sh
63 size.1
64 size.c
65 sparc-pinsn.c
66 strip.1
67 version.c
68
69 Do-last:
70
71 v9dirty="sparc-pinsn.c"
72
73 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
74 echo Keeping v9 in ${v9dirty}
75 else
76 for i in ${v9dirty} ; do
77 echo Sanitizing v9 in $i
78 rm -f new
79 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
80 if grep -s -i v9 new ; then
81 echo ***** SANITIZING V9 IN $i FAILED *****\a\a
82 fi
83 if [ -n "${safe}" ] ; then
84 mv $i .Recover
85 else
86 rm $i
87 fi
88 mv new $i
89 done
90 fi
This page took 0.030671 seconds and 4 git commands to generate.