deleted code for keep-v9 that does nothing useful
[deliverable/binutils-gdb.git] / ld / .Sanitize
1 # .Sanitize for devo/ld.
2
3 # Each directory to survive its 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 directory.
15
16 Do-first:
17
18 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
19 keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${keep_these_too}"
20 else
21 lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${lose_these_too}"
22 fi
23
24 if ( echo $* | grep keep\-gm > /dev/null ) ; then
25 keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
26 else
27 lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
28 fi
29
30 # All files listed between the "Things-to-keep:" line and the
31 # "Files-to-sed:" line will be kept. All other files will be removed.
32 # Directories listed in this section will have their own Sanitize
33 # called. Directories not listed will be removed in their entirety
34 # with rm -rf.
35
36 Things-to-keep:
37
38 ChangeLog
39 Makefile.in
40 NEWS
41 README
42 TODO
43 cdtest-foo.cc
44 cdtest-foo.h
45 cdtest-bar.cc
46 cdtest-main.cc
47 cdtest.exp
48 config
49 config.h
50 configure.bat
51 configure.in
52 dep-in.sed
53 emulparams
54 emultempl
55 genscripts.sh
56 h8-doc.texi
57 ld.1
58 gen-doc.texi
59 ld.h
60 ld.texinfo
61 ldctor.c
62 ldctor.h
63 ldemul.c
64 ldemul.h
65 ldexp.c
66 ldexp.h
67 ldfile.c
68 ldfile.h
69 ldgram.y
70 ldint.texinfo
71 ldlang.c
72 ldlang.h
73 ldlex.h
74 ldlex.l
75 ldmain.c
76 ldmain.h
77 ldmisc.c
78 ldmisc.h
79 ldver.c
80 ldver.h
81 ldwrite.c
82 ldwrite.h
83 lexsup.c
84 mri.c
85 mri.h
86 scripttempl
87 testsuite
88
89 Things-to-lose:
90
91 Do-last:
92
93 echo Looking for traces of \"mpw\"...
94
95 # Don't try to clean directories here, as the 'mv' command will fail.
96 # Also, grep fails on NFS mounted directories.
97 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
98 for i in * ; do
99 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
100 echo Keeping mpw traces in $i
101 fi
102 done
103 else
104 for i in * ; do
105 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
106 echo Removing traces of \"mpw\" out of $i...
107 cp $i new
108 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
109 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
110 echo Caching $i in .Recover...
111 mv $i .Recover
112 fi
113 mv new $i
114 fi
115 done
116 fi
117
118 # End of file.
This page took 0.045633 seconds and 5 git commands to generate.