]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/mn10300/.Sanitize
am33 sanitization changes
[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
f05bd277
JL
33if ( echo $* | grep keep\-am33 > /dev/null ) ; then
34 for i in * ; do
35 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
36 if [ -n "${verbose}" ] ; then
37 echo Keeping am33 stuff in $i
38 fi
39 fi
40 done
41else
42 for i in * ; do
43 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
44 if [ -n "${verbose}" ] ; then
45 echo Removing traces of \"am33\" from $i...
46 fi
47 cp $i new
48 sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
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.