* gennltvals.sh: Redo syscall support to allow sanitization.
[deliverable/binutils-gdb.git] / sim / common / .Sanitize
1 # .Sanitize for devo/sim/common.
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 # "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
24 Things-to-keep:
25
26 ChangeLog
27 Make-common.in
28 Makefile.in
29 aclocal.m4
30 callback.c
31 cgen-mem.h
32 cgen-ops.h
33 cgen-scache.c
34 cgen-scache.h
35 cgen-sim.h
36 cgen-trace.c
37 cgen-trace.h
38 cgen-types.h
39 cgen-utils.c
40 config.in
41 configure.in
42 configure
43 gdbinit.in
44 genmloop.sh
45 gennltvals.sh
46 gentmap.c
47 gentvals.sh
48 nltvals.def
49 nrun.c
50 run.c
51 run.1
52 sim-abort.c
53 sim-alu.h
54 sim-assert.h
55 sim-base.h
56 sim-basics.h
57 sim-bits.c
58 sim-bits.h
59 sim-break.c
60 sim-break.h
61 sim-config.c
62 sim-config.h
63 sim-core.c
64 sim-core.h
65 sim-endian.c
66 sim-endian.h
67 sim-engine.c
68 sim-engine.h
69 sim-events.c
70 sim-events.h
71 sim-fpu.c
72 sim-fpu.h
73 sim-hload.c
74 sim-hrw.c
75 sim-inline.c
76 sim-inline.h
77 sim-io.c
78 sim-io.h
79 sim-load.c
80 sim-memopt.c
81 sim-memopt.h
82 sim-model.c
83 sim-model.h
84 sim-module.c
85 sim-module.h
86 sim-n-bits.h
87 sim-n-core.h
88 sim-n-endian.h
89 sim-options.c
90 sim-options.h
91 sim-profile.c
92 sim-profile.h
93 sim-reason.c
94 sim-resume.c
95 sim-run.c
96 sim-signal.c
97 sim-signal.h
98 sim-stop.c
99 sim-trace.c
100 sim-trace.h
101 sim-types.h
102 sim-utils.c
103 sim-utils.h
104 sim-watch.c
105 sim-watch.h
106 sim-xcat.h
107 syscall.c
108 tconfig.in
109
110 Things-to-lose:
111
112
113 Do-last:
114
115 d30v_files="ChangeLog gennltvals.sh nltvals.def"
116 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
117 for i in $d30v_files ; do
118 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
119 if [ -n "${verbose}" ] ; then
120 echo Keeping d30v stuff in $i
121 fi
122 fi
123 done
124 else
125 for i in $d30v_files ; do
126 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
127 if [ -n "${verbose}" ] ; then
128 echo Removing traces of \"d30v\" from $i...
129 fi
130 cp $i new
131 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
132 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
133 if [ -n "${verbose}" ] ; then
134 echo Caching $i in .Recover...
135 fi
136 mv $i .Recover
137 fi
138 mv new $i
139 fi
140 done
141 fi
142
143 # End of file.
This page took 0.03504 seconds and 4 git commands to generate.