]> Git Repo - binutils.git/blob - gdb/testsuite/.Sanitize
* gdb.base/funcargs.c: Use cast rather than "UL" suffix to
[binutils.git] / gdb / testsuite / .Sanitize
1 # .Sanitize for devo/gdb/testsuite.
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 # All files listed between the "Things-to-keep:" line and the
19 # "Do-last:" line will be kept.  All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called.  Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 .gdbinit
27 ChangeLog
28 Makefile.in
29 TODO
30 aclocal.m4
31 config
32 configure
33 configure.in
34 gdb.base
35 gdb.c++
36 gdb.chill
37 gdb.disasm
38 gdb.fortran
39 gdb.stabs
40 gdb.threads
41 lib
42
43 Things-to-lose:
44
45 # The lines between the "Do-last:" line and the end of the file
46 # are executed as a /bin/sh shell script after everything else is
47 # done.
48
49 Do-last:
50
51 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
52         for i in * ; do
53                 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
54                         if [ -n "${verbose}" ] ; then
55                                 echo Keeping m32r stuff in $i
56                         fi
57                 fi
58         done
59 else
60         for i in * ; do
61                 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
62                         if [ -n "${verbose}" ] ; then
63                                 echo Removing traces of \"m32r\" from $i...
64                         fi
65                         cp $i new
66                         sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
67                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
68                                 if [ -n "${verbose}" ] ; then
69                                         echo Caching $i in .Recover...
70                                 fi
71                                 mv $i .Recover
72                         fi
73                         mv new $i
74                 fi
75         done
76 fi
77
78 # eof
This page took 0.028833 seconds and 4 git commands to generate.