* internal.h (R_IPRMED, R_OPTCALL, R_OPTCALLX): Move definitions
[deliverable/binutils-gdb.git] / include / coff / .Sanitize
1 # Sanitize.in for include/coff.
2
3 # Each directory to survive it's 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
15
16 Do-first:
17
18 tic80_files="tic80.h"
19
20 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
21 keep_these_too="${tic80_files} ${keep_these_too}"
22 else
23 lose_these_too="${tic80_files} ${lose_these_too}"
24 fi
25
26 # All files listed between the "Things-to-keep:" line and the
27 # "Files-to-sed:" line will be kept. All other files will be removed.
28 # Directories listed in this section will have their own Sanitize
29 # called. Directories not listed will be removed in their entirety
30 # with rm -rf.
31
32 Things-to-keep:
33
34 ChangeLog
35 a29k.h
36 alpha.h
37 apollo.h
38 arm.h
39 aux-coff.h
40 ecoff.h
41 h8300.h
42 h8500.h
43 i386.h
44 i860.h
45 i960.h
46 internal.h
47 m68k.h
48 m88k.h
49 mips.h
50 pe.h
51 powerpc.h
52 rs6000.h
53 sh.h
54 sparc.h
55 sym.h
56 symconst.h
57 w65.h
58 we32k.h
59 z8k.h
60
61 Things-to-lose:
62
63
64 Do-last:
65
66 tic80_files="ChangeLog"
67 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
68 for i in $tic80_files ; do
69 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
70 if [ -n "${verbose}" ] ; then
71 echo Keeping tic80 stuff in $i
72 fi
73 fi
74 done
75 else
76 for i in $tic80_files ; do
77 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
78 if [ -n "${verbose}" ] ; then
79 echo Removing traces of \"tic80\" from $i...
80 fi
81 cp $i new
82 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
83 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
84 if [ -n "${verbose}" ] ; then
85 echo Caching $i in .Recover...
86 fi
87 mv $i .Recover
88 fi
89 mv new $i
90 fi
91 done
92 fi
93
94 # End of file.
This page took 0.055812 seconds and 4 git commands to generate.