Commit | Line | Data |
---|---|---|
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 | ||
17 | Do-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 | ||
25 | Things-to-keep: | |
26 | ||
646c6f2b DE |
27 | ChangeLog |
28 | Makefile.in | |
5c8f1c01 | 29 | README |
646c6f2b | 30 | TODO |
369fba30 DE |
31 | arch.c |
32 | arch.h | |
646c6f2b DE |
33 | config.in |
34 | configure | |
35 | configure.in | |
47d57be1 | 36 | cpu.h |
369fba30 | 37 | cpuall.h |
646c6f2b DE |
38 | decode.c |
39 | decode.h | |
40 | extract.c | |
41 | m32r-sim.h | |
42 | m32r.c | |
369fba30 | 43 | mloop.in |
646c6f2b | 44 | model.c |
646c6f2b | 45 | sem-switch.c |
369fba30 | 46 | sem.c |
646c6f2b DE |
47 | sim-if.c |
48 | sim-main.h | |
49 | tconfig.in | |
5c8f1c01 DE |
50 | |
51 | Things-to-lose: | |
52 | ||
53 | Do-last: | |
54 | ||
369fba30 DE |
55 | cygnus_files="ChangeLog Makefile.in" |
56 | if ( 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 | |
64 | else | |
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 | |
81 | fi | |
82 | ||
83 | m32rx_files="ChangeLog Makefile.in sim-if.c sim-main.h" | |
84 | if ( 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 | |
92 | else | |
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 | |
109 | fi | |
110 | ||
5c8f1c01 | 111 | # End of file. |