* gdb.base/sigall.exp: Add workaround for alpha weirdness.
[deliverable/binutils-gdb.git] / include / .Sanitize
CommitLineData
2323d13b 1# .Sanitize for devo/include.
0fd8d5d9 2
2323d13b 3# Each directory to survive its way into a release will need a file
0fd8d5d9
RP
4# like this one called "./.Sanitize". All keyword lines must exist,
5# and must exist in the order specified by this file. Each directory
6# in the tree will be processed, top down, in the following order.
7
8# Hash started lines like this one are comments and will be deleted
9# before anything else is done. Blank lines will also be squashed
10# out.
11
12# The lines between the "Do-first:" line and the "Things-to-keep:"
13# line are executed as a /bin/sh shell script before anything else is
2323d13b 14# done in this directory.
0fd8d5d9
RP
15
16Do-first:
17
2323d13b 18if ( echo $* | grep keep\-mpw > /dev/null ) ; then
f08a8281 19 keep_these_too="${keep_these_too} mpw"
2323d13b 20else
f08a8281 21 lose_these_too="${lose_these_too} mpw"
2323d13b
SS
22fi
23
0fd8d5d9
RP
24# All files listed between the "Things-to-keep:" line and the
25# "Files-to-sed:" line will be kept. All other files will be removed.
26# Directories listed in this section will have their own Sanitize
27# called. Directories not listed will be removed in their entirety
28# with rm -rf.
29
30Things-to-keep:
31
8e71e6e3 32COPYING
49d6a0e6 33ChangeLog
0fd8d5d9 34ansidecl.h
11eab90c 35aout
9a0418eb 36bfdlink.h
0fd8d5d9 37bout.h
11eab90c 38coff
c9725927 39demangle.h
d7e1be46 40dis-asm.h
11eab90c 41elf
8b1d1557 42floatformat.h
201258d5
JW
43fopen-bin.h
44fopen-same.h
0fd8d5d9
RP
45gdbm.h
46getopt.h
8ee0532b 47hp-symtab.h
0fd8d5d9 48ieee.h
e51437f1 49libiberty.h
f7da7289 50nlm
0fd8d5d9
RP
51oasys.h
52obstack.h
02400c00 53os9k.h
11eab90c 54opcode
d4d4c53c 55progress.h
0fd8d5d9
RP
56wait.h
57
87756e15
RP
58Things-to-lose:
59
775d4a40 60
0fd8d5d9
RP
61Do-last:
62
dc997928
DE
63arc_files="ChangeLog dis-asm.h"
64if ( echo $* | grep keep\-arc > /dev/null ) ; then
65 for i in $arc_files ; do
66 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
67 if [ -n "${verbose}" ] ; then
68 echo Keeping arc stuff in $i
69 fi
70 fi
71 done
72else
73 for i in $arc_files ; do
74 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
75 if [ -n "${verbose}" ] ; then
76 echo Removing traces of \"arc\" from $i...
77 fi
78 cp $i new
79 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
80 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
81 if [ -n "${verbose}" ] ; then
82 echo Caching $i in .Recover...
83 fi
84 mv $i .Recover
85 fi
86 mv new $i
87 fi
88 done
89fi
90
91for i in * ; do
92 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
93 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
94 fi
95done
96
0fd8d5d9 97# End of file.
This page took 0.123086 seconds and 4 git commands to generate.