* Makefile.in: Let's call it version 2.0.
[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
0ce51ae9 31Makefile.dos
86e4d6e4 32Makefile.in
5a77e916 33README
86e4d6e4
RP
34TODO
35alloca.c
5a77e916 36am29k-pinsn.c
05b47bfb 37ar.1
5a77e916 38ar.c
c0cc6912 39arlex.l
aef3999f 40arparse.y
c0cc6912
SC
41arsup.c
42arsup.h
c83497f5 43binutils.texi
86e4d6e4 44bucomm.c
5a77e916 45bucomm.h
0ce51ae9 46configure.bat
86e4d6e4 47configure.in
e49dde89 48config
86e4d6e4 49copy.c
86e4d6e4
RP
50filemode.c
51gmalloc.c
60c80016 52i386-pinsn.c
86e4d6e4 53i960-pinsn.c
5a77e916
SC
54is-ranlib.c
55is-strip.c
86e4d6e4 56m68k-pinsn.c
5a77e916
SC
57maybe-ranlib.c
58maybe-strip.c
59nm.1
86e4d6e4 60nm.c
5a77e916
SC
61not-ranlib.c
62not-strip.c
63objdump.1
86e4d6e4 64objdump.c
5a77e916
SC
65objdump.h
66ranlib.1
06a97fbd 67ranlib.sh
aef3999f 68sanity.sh
5a77e916 69size.1
86e4d6e4
RP
70size.c
71sparc-pinsn.c
5a77e916 72strip.1
86e4d6e4
RP
73version.c
74
75Do-last:
76
5d138676 77v9dirty="sparc-pinsn.c"
86e4d6e4 78
5d138676
JG
79if ( echo $* | grep keep\-v9 > /dev/null ) ; then
80 echo Keeping v9 in ${v9dirty}
81else
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
96fi
This page took 0.071451 seconds and 4 git commands to generate.