* nm.c: Modify behavior of -o flag for archives to match
[deliverable/binutils-gdb.git] / binutils / .Sanitize
CommitLineData
86e4d6e4 1# Sanitize.in for devo.
86e4d6e4
RP
2#
3
4# Each directory to survive it's way into a release will need a file
5# like this one called "./.Sanitize". All keyword lines must exist,
6# and must exist in the order specified by this file. Each directory
7# in the tree will be processed, top down, in the following order.
8
9# Hash started lines like this one are comments and will be deleted
10# before anything else is done. Blank lines will also be squashed
11# out.
12
13# The lines between the "Do-first:" line and the "Things-to-keep:"
14# line are executed as a /bin/sh shell script before anything else is
15# done in this
16
17Do-first:
18
86e4d6e4
RP
19
20# All files listed between the "Things-to-keep:" line and the
21# "Files-to-sed:" line will be kept. All other files will be removed.
22# Directories listed in this section will have their own Sanitize
23# called. Directories not listed will be removed in their entirety
24# with rm -rf.
25
26Things-to-keep:
27
28ChangeLog
29Makefile.in
9c994225 30NEWS
5a77e916 31README
86e4d6e4
RP
32TODO
33alloca.c
5a77e916 34am29k-pinsn.c
05b47bfb 35ar.1
5a77e916 36ar.c
c0cc6912 37arlex.l
aef3999f 38arparse.y
c0cc6912
SC
39arsup.c
40arsup.h
c83497f5 41binutils.texi
86e4d6e4 42bucomm.c
5a77e916 43bucomm.h
0ce51ae9 44configure.bat
86e4d6e4 45configure.in
e49dde89 46config
86e4d6e4 47copy.c
86e4d6e4
RP
48filemode.c
49gmalloc.c
50i960-pinsn.c
5a77e916
SC
51is-ranlib.c
52is-strip.c
5a77e916
SC
53maybe-ranlib.c
54maybe-strip.c
55nm.1
86e4d6e4 56nm.c
5a77e916
SC
57not-ranlib.c
58not-strip.c
59objdump.1
86e4d6e4 60objdump.c
5a77e916
SC
61objdump.h
62ranlib.1
06a97fbd 63ranlib.sh
aef3999f 64sanity.sh
5a77e916 65size.1
86e4d6e4
RP
66size.c
67sparc-pinsn.c
5a77e916 68strip.1
86e4d6e4
RP
69version.c
70
71Do-last:
72
5d138676 73v9dirty="sparc-pinsn.c"
86e4d6e4 74
5d138676
JG
75if ( echo $* | grep keep\-v9 > /dev/null ) ; then
76 echo Keeping v9 in ${v9dirty}
77else
78 for i in ${v9dirty} ; do
79 echo Sanitizing v9 in $i
80 rm -f new
81 sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
82 if grep -s -i v9 new ; then
83 echo ***** SANITIZING V9 IN $i FAILED *****\a\a
84 fi
85 if [ -n "${safe}" ] ; then
86 mv $i .Recover
87 else
88 rm $i
89 fi
90 mv new $i
91 done
92fi
This page took 0.059134 seconds and 4 git commands to generate.