added things-to-lose sections
[deliverable/binutils-gdb.git] / include / aout / .Sanitize
CommitLineData
1ee1fd7e
SC
1
2# Sanitize.in for devo.
3# $Id$
4#
5
6# Each directory to survive it's way into a release will need a file
7# like this one called "./.Sanitize". All keyword lines must exist,
8# and must exist in the order specified by this file. Each directory
9# in the tree will be processed, top down, in the following order.
10
11# Hash started lines like this one are comments and will be deleted
12# before anything else is done. Blank lines will also be squashed
13# out.
14
15# The lines between the "Do-first:" line and the "Things-to-keep:"
16# line are executed as a /bin/sh shell script before anything else is
17# done in this
18
19Do-first:
20
21# All files listed between the "Things-to-keep:" line and the
22# "Files-to-sed:" line will be kept. All other files will be removed.
23# Directories listed in this section will have their own Sanitize
24# called. Directories not listed will be removed in their entirety
25# with rm -rf.
26
27Things-to-keep:
28
29ChangeLog
8513228a 30adobe.h
1ee1fd7e
SC
31aout64.h
32ar.h
33encap.h
34host.h
35hp.h
a2d34a52 36hp300hpux.h
76b731f9 37hppa.h
1ee1fd7e
SC
38ranlib.h
39reloc.h
40stab.def
41stab_gnu.h
42sun4.h
43
87756e15
RP
44Things-to-lose:
45
1ee1fd7e
SC
46Do-last:
47
48v9dirty="aout64.h"
49
7b85349f
RP
50if ( echo $* | egrep verbose > /dev/null ) ; then
51 verbose=true
52else
53 verbose=
54fi
55
56
1ee1fd7e 57if ( echo $* | grep keep\-v9 > /dev/null ) ; then
7b85349f
RP
58 if [ -n "${verbose}" ] ; then
59 echo Keeping v9 in ${v9dirty}
60 fi
1ee1fd7e
SC
61else
62 for i in ${v9dirty} ; do
7b85349f
RP
63 if [ -n "${verbose}" ] ; then
64 echo Sanitizing v9 in $i
65 fi
1ee1fd7e
SC
66 rm -f new
67 grep -v v9 $i > new
68 if [ -n "${safe}" ] ; then
69 mv $i .Recover
70 else
71 rm $i
72 fi
73 mv new $i
74 done
75fi
76
1ee1fd7e 77# End of file.
This page took 0.055936 seconds and 4 git commands to generate.