Tue Jul 22 18:18:58 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
[deliverable/binutils-gdb.git] / include / coff / .Sanitize
CommitLineData
2a6795f1 1# Sanitize.in for include/coff.
1ee1fd7e
SC
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
16Do-first:
17
baf6d28e
FF
18tic80_files="tic80.h"
19
20if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
21 keep_these_too="${tic80_files} ${keep_these_too}"
22else
23 lose_these_too="${tic80_files} ${lose_these_too}"
24fi
dfbbce32 25
1ee1fd7e
SC
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
32Things-to-keep:
33
34ChangeLog
35a29k.h
f581f995 36alpha.h
8bd3f876 37apollo.h
f581f995 38arm.h
c6bb2315 39aux-coff.h
045f6b66 40ecoff.h
35743787 41go32exe.h
1ee1fd7e 42h8300.h
ff975a2c 43h8500.h
1ee1fd7e 44i386.h
da40dd53 45i860.h
1ee1fd7e
SC
46i960.h
47internal.h
48m68k.h
49m88k.h
50mips.h
9111b25a 51pe.h
85009674 52powerpc.h
1ee1fd7e 53rs6000.h
dfbbce32 54sh.h
a3ffe730 55sparc.h
291dcdc6
JG
56sym.h
57symconst.h
08acc833 58w65.h
f581f995 59we32k.h
eaa0f4f8 60z8k.h
1ee1fd7e 61
87756e15
RP
62Things-to-lose:
63
775d4a40 64
2a6795f1 65Do-last:
1ee1fd7e 66
61a5c2fd 67tic80_files="ChangeLog internal.h"
baf6d28e
FF
68if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
69 for i in $tic80_files ; do
70 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
71 if [ -n "${verbose}" ] ; then
72 echo Keeping tic80 stuff in $i
73 fi
74 fi
75 done
76else
77 for i in $tic80_files ; do
78 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
79 if [ -n "${verbose}" ] ; then
80 echo Removing traces of \"tic80\" from $i...
81 fi
82 cp $i new
83 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
84 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
85 if [ -n "${verbose}" ] ; then
86 echo Caching $i in .Recover...
87 fi
88 mv $i .Recover
89 fi
90 mv new $i
91 fi
92 done
93fi
94
1ee1fd7e 95# End of file.
This page took 0.183179 seconds and 4 git commands to generate.