]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/mn10300/.Sanitize
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / config / mn10300 / .Sanitize
CommitLineData
021b78fb
GN
1# .Sanitize for devo/gdb/config/mn10300.
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
18# All files listed between the "Things-to-keep:" line and the
19# "Files-to-sed:" 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
24Things-to-keep:
25
26mn10300.mt
e385d6e0 27tm-mn10300.h
021b78fb
GN
28
29Things-to-lose:
30
72e83496
AMT
31Do-last:
32
b041460d 33if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
f05bd277 34 for i in * ; do
b041460d 35 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
f05bd277 36 if [ -n "${verbose}" ] ; then
b041460d 37 echo Keeping cygnus stuff in $i
f05bd277
JL
38 fi
39 fi
40 done
41else
42 for i in * ; do
b041460d 43 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
f05bd277 44 if [ -n "${verbose}" ] ; then
b041460d 45 echo Removing traces of \"cygnus\" from $i...
f05bd277
JL
46 fi
47 cp $i new
b041460d 48 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
f05bd277
JL
49 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
50 if [ -n "${verbose}" ] ; then
51 echo Caching $i in .Recover...
52 fi
53 mv $i .Recover
54 fi
55 mv new $i
56 fi
57 done
58fi
59
021b78fb 60# End of file.