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