gcc lint
[deliverable/binutils-gdb.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 emulparams
47 emultempl
48 genscripts.sh
49 h8-doc.texi
50 ld.1
51 gen-doc.texi
52 ld.h
53 ld.texinfo
54 ldctor.c
55 ldctor.h
56 ldemul.c
57 ldemul.h
58 lderror.c
59 lderror.h
60 ldexp.c
61 ldexp.h
62 ldfile.c
63 ldfile.h
64 ldgram.y
65 ldindr.c
66 ldindr.h
67 ldint.texinfo
68 ldlang.c
69 ldlang.h
70 ldlex.h
71 ldlex.l
72 ldmain.c
73 ldmain.h
74 ldmisc.c
75 ldmisc.h
76 ldsym.c
77 ldsym.h
78 ldver.c
79 ldver.h
80 ldwarn.c
81 ldwarn.h
82 ldwrite.c
83 ldwrite.h
84 lexsup.c
85 mri.c
86 mri.h
87 relax.c
88 relax.h
89 scripttempl
90
91 Things-to-lose:
92
93 Do-last:
94
95 echo Looking for signs of \"v9\"...
96
97 # Don't try to clean directories here, as the 'mv' command will fail.
98 # Also, grep fails on NFS mounted directories.
99 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
100 for i in * ; do
101 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
102 echo Keeping v9 stuff in $i
103 fi
104 done
105 else
106 for i in * ; do
107 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
108 echo Cleaning the \"v9\" out of $i...
109 cp $i new
110 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
111 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
112 echo Caching $i in .Recover...
113 mv $i .Recover
114 fi
115 mv new $i
116 fi
117 done
118 fi
119
120 # End of file.
This page took 0.03818 seconds and 4 git commands to generate.