]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/mips/.Sanitize
* Makefile.in (INTERNAL_CFLAGS): Add ENABLE_CFLAGS.
[thirdparty/binutils-gdb.git] / gdb / config / mips / .Sanitize
1 # .Sanitize for devo/gdb/config/mips.
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 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 bigmips.mt
27 bigmips64.mt
28 decstation.mh
29 decstation.mt
30 idt.mt
31 idt64.mt
32 idtl.mt
33 idtl64.mt
34 irix3.mh
35 irix3.mt
36 irix4.mh
37 irix5.mh
38 irix5.mt
39 littlemips.mh
40 littlemips.mt
41 mipsel64.mt
42 mipsm3.mh
43 mipsm3.mt
44 mipsv4.mh
45 mipsv4.mt
46 news-mips.mh
47 nm-irix3.h
48 nm-irix4.h
49 nm-irix5.h
50 nm-m3.h
51 nm-mips.h
52 nm-news-mips.h
53 nm-riscos.h
54 nm-sysv4.h
55 riscos.mh
56 tm-bigmips.h
57 tm-bigmips64.h
58 tm-idt.h
59 tm-idt64.h
60 tm-idtl.h
61 tm-idtl64.h
62 tm-irix3.h
63 tm-irix5.h
64 tm-mips.h
65 tm-mips64.h
66 tm-mipsm3.h
67 tm-mipsv4.h
68 tm-vr4300.h
69 tm-vr4300el.h
70 vr4300.mt
71 vr4300el.mt
72 xm-irix3.h
73 xm-irix4.h
74 xm-irix5.h
75 xm-mips.h
76 xm-mipsm3.h
77 xm-mipsv4.h
78 xm-news-mips.h
79 xm-riscos.h
80
81 Things-to-lose:
82
83
84 Do-last:
85
86 if ( echo $* | grep keep\-gm > /dev/null ) ; then
87 for i in * ; do
88 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
89 if [ -n "${verbose}" ] ; then
90 echo Keeping gm stuff in $i
91 fi
92 fi
93 done
94 else
95 for i in * ; do
96 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
97 if [ -n "${verbose}" ] ; then
98 echo Removing traces of \"gm\" from $i...
99 fi
100 cp $i new
101 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
102 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
103 if [ -n "${verbose}" ] ; then
104 echo Caching $i in .Recover...
105 fi
106 mv $i .Recover
107 fi
108 mv new $i
109 fi
110 done
111 fi
112
113 # End of file.