Remove amdcoff.c (and its name from Makefile.in) by default, because
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this
17
18 Do-first:
19
20 echo Sanitizing `pwd`.
21
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
26 # with rm -rf.
27
28 Things-to-keep:
29 COPYING
30 CVS.adm
31 ChangeLog
32 Makefile.in
33 TODO
34 VERSION
35 amdcoff.c
36 aout32.c
37 aout64.c
38 aoutf1.h
39 aoutx.h
40 archive.c
41 archures.c
42 archures.h
43 bfd.c
44 bfd.texinfo
45 bout.c
46 cache.c
47 coffcode.h
48 config
49 configure
50 configure.in
51 core.c
52 demo64.c
53 ecoff.c
54 filemode.c
55 format.c
56 host-aout.c
57 i386coff.c
58 icoff.c
59 ieee.c
60 libaout.h
61 libbfd.c
62 libbfd.h
63 libcoff.h
64 libieee.h
65 liboasys.h
66 m68kcoff.c
67 m88k-bcs.c
68 newsos3.c
69 oasys.c
70 opncls.c
71 reloc.c
72 section.c
73 srec.c
74 sunos.c
75 syms.c
76 targets.c
77 trad-core.c
78 trad-core.h
79
80 Do-last:
81
82 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
83 echo Keeping v9 in aoutx.h
84 else
85 echo Sanitizing v9 in aoutx.h
86 rm -f new
87 while grep -s start-sanitize-v9 aoutx.h ; do
88 sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new
89 rm aoutx.h
90 mv new aoutx.h
91 done
92 fi
93
94 if ( echo $* | grep keep\-29k > /dev/null ) ; then
95 echo Keeping 29k in amdcoff.c and Makefile.in
96 else
97 echo Sanitizing 29k in amdcoff.c and Makefile.in
98 rm -f amdcoff.c
99 rm -f new
100 sed -e 's/ amdcoff.[co] / /g' <Makefile.in >new
101 mv new Makefile.in
102 fi
103
104 echo Done in `pwd`.
105
106 #
107 #
108 # $Log$
109 # Revision 1.9 1991/07/31 17:37:00 gnu
110 # Remove amdcoff.c (and its name from Makefile.in) by default, because
111 # its copyright is not yet assigned to FSF.
112 #
113 # Revision 1.8 1991/07/31 07:54:31 gnu
114 # Better sanitize aoutx.h too!
115 #
116 # Revision 1.7 1991/07/16 00:39:03 steve
117 # *** empty log message ***
118 #
119 # Revision 1.6 1991/07/16 00:35:56 steve
120 # *** empty log message ***
121 #
122 # Revision 1.5 1991/07/15 23:32:40 steve
123 # *** empty log message ***
124 #
125 # Revision 1.4 1991/07/04 16:52:54 steve
126 # Now full of documentation. Yum Yum.
127 #
128 # Revision 1.3 1991/05/31 11:22:12 gnu
129 # Remove coff-code.h and liba.out.h, add libaout.h.
130 #
131 # Revision 1.2 1991/05/29 02:40:08 gnu
132 # Fix up .Sanitize file, remove files that are not referenced.
133 #
134 # Revision 1.1 1991/05/23 21:14:00 rich
135 # Initial revision
136 #
137 #
138 #
139
140 # End of file.
This page took 0.04309 seconds and 5 git commands to generate.