]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/tic80/.Sanitize
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / config / tic80 / .Sanitize
CommitLineData
09f0789e
FF
1# .Sanitize for devo/gdb/config/tic80.
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
16Do-first:
17
18tic80_files="tm-tic80.h tic80.mt"
19
20if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
21 keep_these_too="${tic80_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${tic80_files}
24 fi
25else
26 lose_these_too="${tic80_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${tic80_files}
29 fi
30fi
31
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:
39
40Things-to-lose:
41
42
43Do-last:
44
45if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
46 for i in * ; do
47 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
48 if [ -n "${verbose}" ] ; then
49 echo Keeping tic80 stuff in $i
50 fi
51 fi
52 done
53else
54 for i in * ; do
55 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
56 if [ -n "${verbose}" ] ; then
57 echo Removing traces of \"tic80\" from $i...
58 fi
59 cp $i new
60 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
61 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
62 if [ -n "${verbose}" ] ; then
63 echo Caching $i in .Recover...
64 fi
65 mv $i .Recover
66 fi
67 mv new $i
68 fi
69 done
70fi
71
72# End of file.