keep binutils-hppa
[deliverable/binutils-gdb.git] / include / .Sanitize
1 # .Sanitize for devo/include.
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
19 keep_these_too="${keep_these_too} mpw"
20 else
21 lose_these_too="${lose_these_too} mpw"
22 fi
23
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
30 Things-to-keep:
31
32 COPYING
33 ChangeLog
34 ansidecl.h
35 aout
36 bfdlink.h
37 bout.h
38 coff
39 demangle.h
40 dis-asm.h
41 elf
42 floatformat.h
43 fopen-bin.h
44 fopen-same.h
45 gdbm.h
46 getopt.h
47 hp-symtab.h
48 ieee.h
49 libiberty.h
50 nlm
51 oasys.h
52 obstack.h
53 os9k.h
54 opcode
55 progress.h
56 wait.h
57
58 Things-to-lose:
59
60
61 Do-last:
62
63 arc_files="ChangeLog dis-asm.h"
64 if ( 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
72 else
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
89 fi
90
91 for 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
95 done
96
97 # End of file.
This page took 0.030905 seconds and 4 git commands to generate.