]> Git Repo - binutils.git/blob - ld/.Sanitize
* lexsup.c (parse_args): Changed "retain-symbols-file" from
[binutils.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 mpw_files="mpw-make.in mpw-config.in ChangeLog.mpw"
19
20 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
21         keep_these_too="${mpw_files} ${keep_these_too}"
22 else
23         lose_these_too="${mpw_files} ${lose_these_too}"
24 fi
25
26 if ( echo $* | grep keep\-gm > /dev/null ) ; then
27         keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
28 else
29         lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
30 fi
31
32 # All files listed between the "Things-to-keep:" line and the
33 # "Files-to-sed:" line will be kept.  All other files will be removed.
34 # Directories listed in this section will have their own Sanitize
35 # called.  Directories not listed will be removed in their entirety
36 # with rm -rf.
37
38 Things-to-keep:
39
40 ChangeLog
41 Makefile.in
42 NEWS
43 README
44 TODO
45 cdtest-foo.cc
46 cdtest-foo.h
47 cdtest-bar.cc
48 cdtest-main.cc
49 cdtest.exp
50 config
51 config.h
52 configure.bat
53 configure.in
54 dep-in.sed
55 emulparams
56 emultempl
57 genscripts.sh
58 h8-doc.texi
59 ld.1
60 gen-doc.texi
61 ld.h
62 ld.texinfo
63 ldctor.c
64 ldctor.h
65 ldemul.c
66 ldemul.h
67 ldexp.c
68 ldexp.h
69 ldfile.c
70 ldfile.h
71 ldgram.y
72 ldint.texinfo
73 ldlang.c
74 ldlang.h
75 ldlex.h
76 ldlex.l
77 ldmain.c
78 ldmain.h
79 ldmisc.c
80 ldmisc.h
81 ldver.c
82 ldver.h
83 ldwrite.c
84 ldwrite.h
85 lexsup.c
86 mri.c
87 mri.h
88 scripttempl
89 testsuite
90
91 Things-to-lose:
92
93 Do-last:
94
95 echo Looking for traces of \"mpw\"...
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\-mpw > /dev/null ) ; then
100         for i in * ; do
101                 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
102                         echo Keeping mpw traces in $i
103                 fi
104         done
105 else
106         for i in * ; do
107                 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
108                         echo Removing traces of \"mpw\" out of $i...
109                         cp $i new
110                         sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/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.03061 seconds and 4 git commands to generate.