sanitize keep-cygnus cgen generation
[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 cygnus_files="cgen.sh"
19 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
20 keep_these_too="${cygnus_files} ${keep_these_too}"
21 else
22 lose_these_too="${cygnus_files} ${lose_these_too}"
23 fi
24
25 # All files listed between the "Things-to-keep:" line and the
26 # "Files-to-sed:" line will be kept. All other files will be removed.
27 # Directories listed in this section will have their own Sanitize
28 # called. Directories not listed will be removed in their entirety
29 # with rm -rf.
30
31 Things-to-keep:
32
33 ChangeLog
34 Make-common.in
35 Makefile.in
36 aclocal.m4
37 callback.c
38 cgen-mem.h
39 cgen-ops.h
40 cgen-scache.c
41 cgen-sim.h
42 cgen-trace.c
43 cgen-trace.h
44 cgen-types.h
45 cgen-utils.c
46 config.in
47 configure.in
48 configure
49 gdbinit.in
50 genmloop.sh
51 gennltvals.sh
52 gentmap.c
53 gentvals.sh
54 nltvals.def
55 nrun.c
56 run.c
57 run.1
58 sim-abort.c
59 sim-alu.h
60 sim-assert.h
61 sim-base.h
62 sim-basics.h
63 sim-bits.c
64 sim-bits.h
65 sim-break.c
66 sim-break.h
67 sim-config.c
68 sim-config.h
69 sim-core.c
70 sim-core.h
71 sim-endian.c
72 sim-endian.h
73 sim-engine.c
74 sim-engine.h
75 sim-events.c
76 sim-events.h
77 sim-fpu.c
78 sim-fpu.h
79 sim-hload.c
80 sim-hrw.c
81 sim-inline.c
82 sim-inline.h
83 sim-io.c
84 sim-io.h
85 sim-load.c
86 sim-memopt.c
87 sim-memopt.h
88 sim-model.c
89 sim-model.h
90 sim-module.c
91 sim-module.h
92 sim-n-bits.h
93 sim-n-core.h
94 sim-n-endian.h
95 sim-options.c
96 sim-options.h
97 sim-profile.c
98 sim-profile.h
99 sim-reason.c
100 sim-resume.c
101 sim-run.c
102 sim-signal.c
103 sim-signal.h
104 sim-stop.c
105 sim-trace.c
106 sim-trace.h
107 sim-types.h
108 sim-utils.c
109 sim-utils.h
110 sim-watch.c
111 sim-watch.h
112 sim-xcat.h
113 syscall.c
114 tconfig.in
115
116 Things-to-lose:
117
118
119 Do-last:
120
121 d30v_files="ChangeLog gennltvals.sh nltvals.def"
122 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
123 for i in $d30v_files ; do
124 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
125 if [ -n "${verbose}" ] ; then
126 echo Keeping d30v stuff in $i
127 fi
128 fi
129 done
130 else
131 for i in $d30v_files ; do
132 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
133 if [ -n "${verbose}" ] ; then
134 echo Removing traces of \"d30v\" from $i...
135 fi
136 cp $i new
137 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
138 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
139 if [ -n "${verbose}" ] ; then
140 echo Caching $i in .Recover...
141 fi
142 mv $i .Recover
143 fi
144 mv new $i
145 fi
146 done
147 fi
148
149 cygnus_files="ChangeLog Make-common.in"
150 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
151 for i in $cygnus_files ; do
152 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
153 if [ -n "${verbose}" ] ; then
154 echo Keeping cygnus stuff in $i
155 fi
156 fi
157 done
158 else
159 for i in $cygnus_files ; do
160 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
161 if [ -n "${verbose}" ] ; then
162 echo Removing traces of \"cygnus\" from $i...
163 fi
164 cp $i new
165 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
166 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
167 if [ -n "${verbose}" ] ; then
168 echo Caching $i in .Recover...
169 fi
170 mv $i .Recover
171 fi
172 mv new $i
173 fi
174 done
175 fi
176
177 # End of file.
This page took 0.033387 seconds and 5 git commands to generate.