1 # Sanitize.in for devo.
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.
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
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
20 echo Sanitizing `pwd`.
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
81 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
82 echo Keeping v9 in aoutx.h
84 echo Sanitizing v9 in aoutx.h
86 while grep -s start-sanitize-v9 aoutx.h ; do
87 sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new
93 if ( echo $* | grep keep\-29k > /dev/null ) ; then
94 echo Keeping 29k in amdcoff.c and Makefile.in and targets.c
96 echo Sanitizing 29k in amdcoff.c and Makefile.in and targets.c
99 sed -e 's/ amdcoff.[co] / /g' <Makefile.in >new
101 sed -e '/a29kcoff/d' <targets.c >new
110 # Revision 1.13 1991/08/01 14:37:51 steve
111 # *** empty log message ***
113 # Revision 1.12 1991/08/01 05:33:39 gnu
114 # Forgot one more place to remove amdcoff.c reference (sigh).
116 # Revision 1.11 1991/08/01 01:27:44 gnu
117 # Delete CVS.adm from the release!
119 # Revision 1.10 1991/07/31 22:28:30 gnu
122 # Revision 1.9 1991/07/31 17:37:00 gnu
123 # Remove amdcoff.c (and its name from Makefile.in) by default, because
124 # its copyright is not yet assigned to FSF.
126 # Revision 1.8 1991/07/31 07:54:31 gnu
127 # Better sanitize aoutx.h too!
129 # Revision 1.7 1991/07/16 00:39:03 steve
130 # *** empty log message ***
132 # Revision 1.6 1991/07/16 00:35:56 steve
133 # *** empty log message ***
135 # Revision 1.5 1991/07/15 23:32:40 steve
136 # *** empty log message ***
138 # Revision 1.4 1991/07/04 16:52:54 steve
139 # Now full of documentation. Yum Yum.
141 # Revision 1.3 1991/05/31 11:22:12 gnu
142 # Remove coff-code.h and liba.out.h, add libaout.h.
144 # Revision 1.2 1991/05/29 02:40:08 gnu
145 # Fix up .Sanitize file, remove files that are not referenced.
147 # Revision 1.1 1991/05/23 21:14:00 rich