Change svr4 references to sysv4.
[deliverable/binutils-gdb.git] / binutils / .Sanitize
CommitLineData
86e4d6e4
RP
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
18Do-first:
19
20echo 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
28Things-to-keep:
29
30ChangeLog
31Makefile.in
5a77e916 32README
86e4d6e4
RP
33TODO
34alloca.c
5a77e916 35am29k-pinsn.c
05b47bfb 36ar.1
5a77e916 37ar.c
c83497f5 38binutils.texi
86e4d6e4 39bucomm.c
5a77e916 40bucomm.h
86e4d6e4 41configure.in
311894ea 42configdos.bat
86e4d6e4
RP
43copy.c
44cplus-dem.c
45filemode.c
46gmalloc.c
47i960-pinsn.c
5a77e916
SC
48is-ranlib.c
49is-strip.c
86e4d6e4 50m68k-pinsn.c
311894ea 51makefile.dos
5a77e916
SC
52maybe-ranlib.c
53maybe-strip.c
54nm.1
86e4d6e4 55nm.c
5a77e916
SC
56not-ranlib.c
57not-strip.c
58objdump.1
86e4d6e4 59objdump.c
5a77e916
SC
60objdump.h
61ranlib.1
06a97fbd 62ranlib.sh
5a77e916 63size.1
86e4d6e4
RP
64size.c
65sparc-pinsn.c
5a77e916 66strip.1
86e4d6e4
RP
67version.c
68
69Do-last:
70
5d138676 71v9dirty="sparc-pinsn.c"
86e4d6e4 72
5d138676
JG
73if ( echo $* | grep keep\-v9 > /dev/null ) ; then
74 echo Keeping v9 in ${v9dirty}
75else
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
90fi
This page took 0.036731 seconds and 4 git commands to generate.