]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32r/.Sanitize
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / m32r / .Sanitize
1 # Sanitize.in for sim/m32r
2 # $Id$
3
4 # Each directory to survive it's way into a release will need a file
5 # like this one called "./.Sanitize". All keyword lines must exist,
6 # and must exist in the order specified by this file. Each directory
7 # in the tree will be processed, top down, in the following order.
8
9 # Hash started lines like this one are comments and will be deleted
10 # before anything else is done. Blank lines will also be squashed
11 # out.
12
13 # The lines between the "Do-first:" line and the "Things-to-keep:"
14 # line are executed as a /bin/sh shell script before anything else is
15 # done in this
16
17 Do-first:
18
19 cygnus_files="cpux.c cpux.h decodex.c decodex.h m32rx.c mloopx.in modelx.c semx-switch.c"
20 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
21 keep_these_too="${cygnus_files} ${keep_these_too}"
22 else
23 lose_these_too="${cygnus_files} ${lose_these_too}"
24 fi
25
26 # All files listed between the "Things-to-keep:" line and the
27 # "Files-to-sed:" line will be kept. All other files will be removed.
28 # Directories listed in this section will have their own Sanitize
29 # called. Directories not listed will be removed in their entirety
30 # with rm -rf.
31
32 Things-to-keep:
33
34 ChangeLog
35 Makefile.in
36 README
37 TODO
38 acconfig.h
39 arch.c
40 arch.h
41 config.in
42 configure
43 configure.in
44 cpu.c
45 cpu.h
46 cpuall.h
47 decode.c
48 decode.h
49 devices.c
50 m32r-sim.h
51 m32r.c
52 mloop.in
53 model.c
54 sem-switch.c
55 sem.c
56 sim-if.c
57 sim-main.h
58 tconfig.in
59 traps.c
60
61 Things-to-lose:
62
63 Do-last:
64
65 cygnus_files="ChangeLog Makefile.in sim-if.c sim-main.h arch.h arch.c cpuall.h cpu.h m32r-sim.h tconfig.in"
66 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
67 for i in $cygnus_files ; do
68 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
69 if [ -n "${verbose}" ] ; then
70 echo Keeping cygnus stuff in $i
71 fi
72 fi
73 done
74 else
75 for i in $cygnus_files ; do
76 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
77 if [ -n "${verbose}" ] ; then
78 echo Removing traces of \"cygnus\" from $i...
79 fi
80 cp $i new
81 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
82 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
83 if [ -n "${verbose}" ] ; then
84 echo Caching $i in .Recover...
85 fi
86 mv $i .Recover
87 fi
88 mv new $i
89 fi
90 done
91 fi
92
93 # End of file.