Wed Jun 10 07:53:24 1992 Steve Chamberlain (sac@thepub.cygnus.com)
[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 arlex.l
40 arparse.y
41 arsup.c
42 arsup.h
43 binutils.texi
44 bucomm.c
45 bucomm.h
46 configure.bat
47 configure.in
48 copy.c
49 cplus-dem.c
50 filemode.c
51 gmalloc.c
52 i386-pinsn.c
53 i960-pinsn.c
54 is-ranlib.c
55 is-strip.c
56 m68k-pinsn.c
57 maybe-ranlib.c
58 maybe-strip.c
59 nm.1
60 nm.c
61 not-ranlib.c
62 not-strip.c
63 objdump.1
64 objdump.c
65 objdump.h
66 ranlib.1
67 ranlib.sh
68 sanity.sh
69 size.1
70 size.c
71 sparc-pinsn.c
72 strip.1
73 version.c
74
75 Do-last:
76
77 v9dirty="sparc-pinsn.c"
78
79 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
80 echo Keeping v9 in ${v9dirty}
81 else
82 for i in ${v9dirty} ; do
83 echo Sanitizing v9 in $i
84 rm -f new
85 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
86 if grep -s -i v9 new ; then
87 echo ***** SANITIZING V9 IN $i FAILED *****\a\a
88 fi
89 if [ -n "${safe}" ] ; then
90 mv $i .Recover
91 else
92 rm $i
93 fi
94 mv new $i
95 done
96 fi
This page took 0.031313 seconds and 4 git commands to generate.