Tweak list of files to keep.
[deliverable/binutils-gdb.git] / gdb / testsuite / config / .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=""
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
30aout-gdb.exp
31coff-gdb.exp
31ca3f4c 32mips-gdb.exp
bf3d2b75
MW
33udi-gdb.exp
34unix-gdb.exp
35vx-gdb.exp
36
37# The lines between the "Do-last:" line and the end of the file
38# are executed as a /bin/sh shell script after everything else is
39# done.
40
41Do-last:
42echo Thawing away the \"chill\"...
43
44# Don't try to clean directories here, as the 'mv' command will fail.
45# Also, grep fails on NFS mounted directories.
46if ( echo $* | grep keep\-chill > /dev/null ) ; then
47 for i in * ; do
48 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
49 echo Keeping chill stuff in $i
50 fi
51 done
52else
53 for i in * ; do
54 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
55 echo Thawing the \"chill\" out of $i...
56 cp $i new
57 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
58 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
59 echo Caching $i in .Recover...
60 mv $i .Recover
61 fi
62 mv new $i
63 fi
64 done
65 echo Thawing the \"chill\" out of mt-unix...
66 cp mt-unix new
67 sed -e '
68 /CHILL =/d
69 /CHILLFLAGS =/d
70 ' < mt-unix > new
71 if [ -n "${safe}" -a ! -f .Recover/mt-unix ] ; then
72 echo Caching mt-unix in .Recover...
73 mv mt-unix .Recover
74 fi
75 mv new mt-unix
76fi
77
78# eof
This page took 0.028768 seconds and 4 git commands to generate.