* config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
[deliverable/binutils-gdb.git] / gdb / testsuite / .Sanitize
CommitLineData
bf3d2b75
MW
1# .Sanitize for deja-gnu.
2
3# Each directory to survive it's 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
16Do-first:
17
18if ( echo $* | grep keep\-chill > /dev/null ) ; then
19 keep_these_too="gdb.t30 gdb.t31"
20fi
21
22# All files listed between the "Things-to-keep:" line and the
23# "Do-last:" line will be kept. All other files will be removed.
24# Directories listed in this section will have their own Sanitize
25# called. Directories not listed will be removed in their entirety
26# with rm -rf.
27
28Things-to-keep:
29
30# The lines between the "Do-last:" line and the end of the file
31
32.gdbinit
33ChangeLog
34Makefile.in
35config
36configure.in
37gdb.t00
38gdb.t01
39gdb.t02
40gdb.t03
41gdb.t04
42gdb.t05
43gdb.t06
44gdb.t07
45gdb.t08
46gdb.t09
47gdb.t10
48gdb.t11
49gdb.t12
50gdb.t13
51gdb.t15
52gdb.t16
bc803007 53gdb.t17
bf3d2b75
MW
54gdb.t20
55gdb.t21
56gdb.t22
57gdb.t23
58lib
59
60# are executed as a /bin/sh shell script after everything else is
61# done.
62
63Do-last:
64
65echo Thawing away the \"chill\"...
66
67# Don't try to clean directories here, as the 'mv' command will fail.
68# Also, grep fails on NFS mounted directories.
69if ( echo $* | grep keep\-chill > /dev/null ) ; then
70 for i in * ; do
71 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
72 echo Keeping chill stuff in $i
73 fi
74 done
75else
76 for i in * ; do
77 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
78 echo Thawing the \"chill\" out of $i...
79 cp $i new
80 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
81 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
82 echo Caching $i in .Recover...
83 mv $i .Recover
84 fi
85 mv new $i
86 fi
87 done
88 echo Thawing the \"chill\" out of configure.in...
89 cp configure.in new
90 sed -e '
91 s/gdb.t30//g
92 s/gdb.t31//g
93 ' < configure.in > new
94 if [ -n "${safe}" -a ! -f .Recover/configure.in ] ; then
95 echo Caching configure.in in .Recover...
96 mv configure.in .Recover
97 fi
98 mv new configure.in
99 echo Thawing the \"chill\" out of Makefile.in...
100 cp Makefile.in new
101 sed -e '
102 /CHILL=/d
103 /CHILLFLAGS=/d
104 s/gdb.t30//g
105 s/gdb.t31//g
106 ' < Makefile.in > new
107 if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
108 echo Caching Makefile.in in .Recover...
109 mv Makefile.in .Recover
110 fi
111 mv new Makefile.in
112fi
113
114# eof
This page took 0.031593 seconds and 4 git commands to generate.