]> Git Repo - binutils.git/blame - ld/.Sanitize
(1) fix typo ('_if_' and '_fi_' for '_if__' and '_fi__'!)
[binutils.git] / ld / .Sanitize
CommitLineData
86e4d6e4
RP
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
18Do-first:
19
20echo 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
28Things-to-keep:
29
30Makefile.in
1b3f485c
SC
31README
32README.configure
33bison
34bfd
35binutils
86e4d6e4 36config
1b3f485c 37config.sub
86e4d6e4
RP
38configure
39configure.in
1b3f485c
SC
40cvs
41diff
42emacs
43gas
44gcc
45gdb
46gdbm
47gnulib
48grep
49include
50ld
51libiberty
52make
53prms
54rcs
55readline
56texinfo
86e4d6e4
RP
57
58Do-last:
59
1b3f485c
SC
60echo Looking for signs of \"v9\"...
61
62# Don't try to clean directories here, as the 'mv' command will fail.
63# Also, grep fails on NFS mounted directories.
64if ( echo $* | grep keep\-v9 > /dev/null ) ; then
65 for i in * ; do
66 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
67 echo Keeping v9 stuff in $i
68 fi
69 done
70else
71 for i in * ; do
72 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
73 echo Cleaning the \"v9\" out of $i...
74 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
75 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
76 mv $i .Recover
77 fi
78 mv new $i
79 fi
80 done
81fi
82
83echo 'Propagating sanitized top-level ./configure and ./config.sub through tree.'
84
85./configure -v -template=./configure
86
86e4d6e4
RP
87echo Done in `pwd`.
88
89#
90#
91# $Log$
1b3f485c
SC
92# Revision 1.10 1991/09/20 21:47:46 steve
93# Removed all the stuff I added yesterday.
9fe37813 94#
1b3f485c
SC
95# Revision 1.16 1991/09/13 03:59:44 gnu
96# Third time's a charm.
7c589d25 97#
1b3f485c
SC
98# Revision 1.15 1991/09/13 03:20:18 gnu
99# One more try at top-level sanity on config.sub
1e332873 100#
1b3f485c
SC
101# Revision 1.14 1991/09/13 03:11:27 gnu
102# Clean out "v9" stuff from here, and propagate configure and config.sub
103# to all lower directories after sanity sets in.
30104b16 104#
1b3f485c
SC
105# Revision 1.13 1991/09/12 00:33:59 rich
106# add gdbm.
1b7ed4c9 107#
1b3f485c
SC
108# Revision 1.12 1991/09/02 22:19:49 rich
109# Updated list of Sanitizable directories.
1af27af8 110#
1b3f485c
SC
111# Revision 1.11 1991/09/02 01:12:42 rich
112# dump the obsolete INSTALL.
113#
114# Revision 1.10 1991/08/25 23:40:20 rich
115# rcs enters the soup.
b648e172 116#
1b3f485c
SC
117# Revision 1.9 1991/08/25 21:48:37 rich
118# Adding diff to the fray.
119#
120# Revision 1.8 1991/08/23 07:15:55 gnu
121# Make README stick...
122#
123# Revision 1.7 1991/08/22 07:30:50 gnu
124# New config.sub.
125#
126# Revision 1.6 1991/07/31 05:15:37 gnu
127# Add texinfo
128#
129# Revision 1.5 1991/07/25 16:11:27 tiemann
130# Don't eliminate libg++. Jimmy Hoffa disappeared before libg++ was
131# even conceived.
132#
133# Revision 1.4 1991/07/24 22:25:50 steve
a4c407e5
SC
134# *** empty log message ***
135#
1b3f485c
SC
136# Revision 1.3 1991/05/23 22:21:19 rich
137# added bfd, binutils, ld, gdb, gcc.
138#
139# Revision 1.2 1991/05/23 21:15:10 rich
140# Added bfd.
141#
142# Revision 1.1 1991/05/23 17:32:34 rich
143# Initial revision
144#
145# Revision 1.1 1991/05/23 17:18:12 rich
86e4d6e4
RP
146# Initial revision
147#
148#
149#
150
151# End of file.
This page took 0.057106 seconds and 4 git commands to generate.