* cpu.h: New file.
[deliverable/binutils-gdb.git] / sim / m32r / .Sanitize
CommitLineData
5c8f1c01
DE
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
17Do-first:
18
19# All files listed between the "Things-to-keep:" line and the
20# "Files-to-sed:" line will be kept. All other files will be removed.
21# Directories listed in this section will have their own Sanitize
22# called. Directories not listed will be removed in their entirety
23# with rm -rf.
24
25Things-to-keep:
26
646c6f2b
DE
27ChangeLog
28Makefile.in
5c8f1c01 29README
646c6f2b 30TODO
369fba30
DE
31arch.c
32arch.h
646c6f2b
DE
33config.in
34configure
35configure.in
47d57be1 36cpu.h
369fba30 37cpuall.h
646c6f2b
DE
38decode.c
39decode.h
40extract.c
41m32r-sim.h
42m32r.c
369fba30 43mloop.in
646c6f2b 44model.c
646c6f2b 45sem-switch.c
369fba30 46sem.c
646c6f2b
DE
47sim-if.c
48sim-main.h
49tconfig.in
5c8f1c01
DE
50
51Things-to-lose:
52
53Do-last:
54
369fba30
DE
55cygnus_files="ChangeLog Makefile.in"
56if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
57 for i in $cygnus_files ; do
58 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
59 if [ -n "${verbose}" ] ; then
60 echo Keeping cygnus stuff in $i
61 fi
62 fi
63 done
64else
65 for i in $cygnus_files ; do
66 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
67 if [ -n "${verbose}" ] ; then
68 echo Removing traces of \"cygnus\" from $i...
69 fi
70 cp $i new
71 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
72 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
73 if [ -n "${verbose}" ] ; then
74 echo Caching $i in .Recover...
75 fi
76 mv $i .Recover
77 fi
78 mv new $i
79 fi
80 done
81fi
82
83m32rx_files="ChangeLog Makefile.in sim-if.c sim-main.h"
84if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
85 for i in $m32rx_files ; do
86 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
87 if [ -n "${verbose}" ] ; then
88 echo Keeping m32rx stuff in $i
89 fi
90 fi
91 done
92else
93 for i in $m32rx_files ; do
94 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Removing traces of \"m32rx\" from $i...
97 fi
98 cp $i new
99 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
100 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
101 if [ -n "${verbose}" ] ; then
102 echo Caching $i in .Recover...
103 fi
104 mv $i .Recover
105 fi
106 mv new $i
107 fi
108 done
109fi
110
5c8f1c01 111# End of file.
This page took 0.054931 seconds and 4 git commands to generate.