d9eade3dcca58e5a0e288b611228ff9ed1437cfd
[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 arsup.c
41 arsup.h
42 arparse.y
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 size.1
69 size.c
70 sparc-pinsn.c
71 strip.1
72 version.c
73
74 Do-last:
75
76 v9dirty="sparc-pinsn.c"
77
78 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
79 echo Keeping v9 in ${v9dirty}
80 else
81 for i in ${v9dirty} ; do
82 echo Sanitizing v9 in $i
83 rm -f new
84 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
85 if grep -s -i v9 new ; then
86 echo ***** SANITIZING V9 IN $i FAILED *****\a\a
87 fi
88 if [ -n "${safe}" ] ; then
89 mv $i .Recover
90 else
91 rm $i
92 fi
93 mv new $i
94 done
95 fi
This page took 0.035907 seconds and 3 git commands to generate.