Initial Fortran language support, adapted from work by Farooq Butt
[deliverable/binutils-gdb.git] / ld / .Sanitize
CommitLineData
764eb349 1# .Sanitize for devo/ld.
86e4d6e4 2
747a47f2 3# Each directory to survive its way into a release will need a file
86e4d6e4
RP
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
747a47f2 14# done in this directory.
86e4d6e4
RP
15
16Do-first:
17
10f1b597
SS
18mpw_files="mpw-make.in mpw-config.in ChangeLog.mpw"
19
747a47f2 20if ( echo $* | grep keep\-mpw > /dev/null ) ; then
10f1b597 21 keep_these_too="${mpw_files} ${keep_these_too}"
747a47f2 22else
10f1b597 23 lose_these_too="${mpw_files} ${lose_these_too}"
747a47f2
SS
24fi
25
26if ( echo $* | grep keep\-gm > /dev/null ) ; then
27 keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
28else
29 lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
30fi
31
86e4d6e4
RP
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
38Things-to-keep:
87756e15 39
5784123f 40ChangeLog
86e4d6e4 41Makefile.in
bc3b479c 42NEWS
c3d97ef6 43README
fbd74d07 44TODO
917bffa7
PB
45cdtest-foo.cc
46cdtest-foo.h
7e16be78 47cdtest-bar.cc
917bffa7
PB
48cdtest-main.cc
49cdtest.exp
86e4d6e4 50config
5f1fec76 51config.h
65aa3724 52configure.bat
86e4d6e4 53configure.in
f8083739 54dep-in.sed
2b63dbfe
DM
55emulparams
56emultempl
c3d97ef6 57genscripts.sh
2412a768 58h8-doc.texi
40ab8532 59ld.1
2412a768 60gen-doc.texi
5f1fec76
SC
61ld.h
62ld.texinfo
ffa057ee 63ldctor.c
1cc27b5e 64ldctor.h
c3d97ef6
PB
65ldemul.c
66ldemul.h
5f1fec76
SC
67ldexp.c
68ldexp.h
69ldfile.c
5f1fec76 70ldfile.h
5f1fec76 71ldgram.y
4b91c519 72ldint.texinfo
5f1fec76
SC
73ldlang.c
74ldlang.h
75ldlex.h
76ldlex.l
5f1fec76
SC
77ldmain.c
78ldmain.h
79ldmisc.c
80ldmisc.h
5f1fec76
SC
81ldver.c
82ldver.h
5f1fec76
SC
83ldwrite.c
84ldwrite.h
0cc6a796 85lexsup.c
b11a9b28 86mri.c
a586b5bc 87mri.h
2b63dbfe 88scripttempl
e2f9f0f6 89testsuite
86e4d6e4 90
87756e15
RP
91Things-to-lose:
92
86e4d6e4
RP
93Do-last:
94
747a47f2
SS
95echo 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.
99if ( 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
105else
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
118fi
119
86e4d6e4 120# End of file.
This page took 0.116171 seconds and 4 git commands to generate.