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