* Makefile.in (autoconf-common autoheader-common): Don't pass -l
[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
b8641a4d 19m32rx_files="cpux.c cpux.h decodex.c decodex.h m32rx.c mloopx.in modelx.c readx.c semx.c"
84af43e3
DE
20if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
21 keep_these_too="${m32rx_files} ${keep_these_too}"
22else
23 lose_these_too="${m32rx_files} ${lose_these_too}"
24fi
25
5c8f1c01
DE
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
32Things-to-keep:
33
646c6f2b
DE
34ChangeLog
35Makefile.in
5c8f1c01 36README
646c6f2b 37TODO
369fba30
DE
38arch.c
39arch.h
646c6f2b
DE
40config.in
41configure
42configure.in
b8641a4d 43cpu.c
47d57be1 44cpu.h
369fba30 45cpuall.h
646c6f2b
DE
46decode.c
47decode.h
b01a8697 48devices.c
646c6f2b
DE
49extract.c
50m32r-sim.h
51m32r.c
369fba30 52mloop.in
646c6f2b 53model.c
646c6f2b 54sem-switch.c
369fba30 55sem.c
646c6f2b
DE
56sim-if.c
57sim-main.h
58tconfig.in
5c8f1c01
DE
59
60Things-to-lose:
61
62Do-last:
63
369fba30
DE
64cygnus_files="ChangeLog Makefile.in"
65if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
66 for i in $cygnus_files ; do
67 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
68 if [ -n "${verbose}" ] ; then
69 echo Keeping cygnus stuff in $i
70 fi
71 fi
72 done
73else
74 for i in $cygnus_files ; do
75 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
76 if [ -n "${verbose}" ] ; then
77 echo Removing traces of \"cygnus\" from $i...
78 fi
79 cp $i new
80 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
81 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
82 if [ -n "${verbose}" ] ; then
83 echo Caching $i in .Recover...
84 fi
85 mv $i .Recover
86 fi
87 mv new $i
88 fi
89 done
90fi
91
d5426771 92m32rx_files="ChangeLog Makefile.in sim-if.c sim-main.h arch.h arch.c cpuall.h cpu.h m32r-sim.h tconfig.in"
369fba30
DE
93if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
94 for i in $m32rx_files ; do
95 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
96 if [ -n "${verbose}" ] ; then
97 echo Keeping m32rx stuff in $i
98 fi
99 fi
100 done
101else
102 for i in $m32rx_files ; do
103 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
104 if [ -n "${verbose}" ] ; then
105 echo Removing traces of \"m32rx\" from $i...
106 fi
107 cp $i new
108 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
109 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
110 if [ -n "${verbose}" ] ; then
111 echo Caching $i in .Recover...
112 fi
113 mv $i .Recover
114 fi
115 mv new $i
116 fi
117 done
118fi
119
5c8f1c01 120# End of file.
This page took 0.067936 seconds and 4 git commands to generate.