Avoid DOS file naming problems:
[deliverable/binutils-gdb.git] / gas / testsuite / gas / h8300 / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this
17
18 Do-first:
19
20 h8s_files="addsubs.s bitops1s.s bitops2s.s bitops3s.s bitops4s.s branchs.s cbranchs.s compares.s decimals.s divmuls.s extends.s incdecs.s logicals.s macs.s miscs.s movbs.s movls.s movws.s multiples.s pushpops.s rotshs.s"
21
22 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
23 keep_these_too="${h8s_files} ${keep_these_too}"
24 else
25 lose_these_too="${h8s_files} ${lose_these_too}"
26 fi
27
28 # All files listed between the "Things-to-keep:" line and the
29 # "Files-to-sed:" line will be kept. All other files will be removed.
30 # Directories listed in this section will have their own Sanitize
31 # called. Directories not listed will be removed in their entirety
32 # with rm -rf.
33
34 Things-to-keep:
35
36 addsub.s
37 addsubh.s
38 bitops1.s
39 bitops1h.s
40 bitops2.s
41 bitops2h.s
42 bitops3.s
43 bitops3h.s
44 bitops4.s
45 bitops4h.s
46 branch.s
47 branchh.s
48 cbranch.s
49 cbranchh.s
50 cmpsi2.s
51 compare.s
52 compareh.s
53 decimal.s
54 decimalh.s
55 divmul.s
56 divmulh.s
57 extendh.s
58 ffxx1.d
59 ffxx1.s
60 h8300.exp
61 incdec.s
62 incdech.s
63 logical.s
64 logicalh.s
65 misc.s
66 misch.s
67 mov32bug.s
68 movb.s
69 movbh.s
70 movlh.s
71 movw.s
72 movwh.s
73 pushpop.s
74 pushpoph.s
75 rotsh.s
76 rotshh.s
77
78 Things-to-lose:
79
80 Do-last:
81
82 if [ -n "${verbose}" ] ; then
83 echo Processing \"h8s\"...
84 fi
85
86 h8s_files="h8300.exp"
87 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
88 for i in $h8s_files ; do
89 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
90 if [ -n "${verbose}" ] ; then
91 echo Keeping h8s stuff in $i
92 fi
93 fi
94 done
95 else
96 for i in $h8s_files ; do
97 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
98 if [ -n "${verbose}" ] ; then
99 echo Removing traces of \"h8s\" from $i...
100 fi
101 cp $i new
102 sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
103 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
104 if [ -n "${verbose}" ] ; then
105 echo Caching $i in .Recover...
106 fi
107 mv $i .Recover
108 fi
109 mv new $i
110 fi
111 done
112 fi
113
114 # End of file.
This page took 0.033127 seconds and 5 git commands to generate.