D10V memory map changed. Update.
[deliverable/binutils-gdb.git] / config / .Sanitize
1 # .Sanitize for devo/config.
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 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
19 keep_these_too="${keep_these_too} mt-r5900"
20 else
21 lose_these_too="${lose_these_too} mt-r5900"
22 fi
23
24 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
25 lose_these_too="${lose_these_too} mh-windows"
26 else
27 keep_these_too="${keep_these_too} mh-windows"
28 fi
29
30 # All files listed between the "Things-to-keep:" line and the
31 # "Files-to-sed:" line will be kept. All other files will be removed.
32 # Directories listed in this section will have their own Sanitize
33 # called. Directories not listed will be removed in their entirety
34 # with rm -rf.
35
36 Things-to-keep:
37
38 ChangeLog
39 mh-a68bsd
40 mh-aix386
41 mh-apollo68
42 mh-cxux
43 mh-cygwin32
44 mh-decstation
45 mh-delta88
46 mh-dgux
47 mh-dgux386
48 mh-elfalphapic
49 mh-go32
50 mh-hp300
51 mh-hpux
52 mh-hpux8
53 mh-irix4
54 mh-irix5
55 mh-irix6
56 mh-lynxos
57 mh-lynxrs6k
58 mh-m68kpic
59 mh-mingw32
60 mh-ncr3000
61 mh-ncrsvr43
62 mh-necv4
63 mh-papic
64 mh-ppcpic
65 mh-riscos
66 mh-sco
67 mh-solaris
68 mh-sparcpic
69 mh-sun3
70 mh-sysv
71 mh-sysv4
72 mh-vaxult2
73 mh-x86pic
74 mpw
75 mpw-mh-mpw
76 mt-elfalphapic
77 mt-linux
78 mt-m68kpic
79 mt-netware
80 mt-papic
81 mt-ppcpic
82 mt-sparcpic
83 mt-v810
84 mt-x86pic
85
86 Things-to-lose:
87
88 Do-last:
89
90 r5900_files="ChangeLog"
91
92 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
93 for i in $r5900_files ; do
94 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping r5900 stuff in $i
97 fi
98 fi
99 done
100 else
101 for i in $r5900_files ; do
102 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"r5900\" from $i...
105 fi
106 cp $i new
107 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
111 fi
112 mv $i .Recover
113 fi
114 mv new $i
115 fi
116 done
117 fi
118
119 cygnus_files="mh-go32"
120
121 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
122 for i in $cygnus_files ; do
123 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Keeping cygnus stuff in $i
126 fi
127 fi
128 done
129 else
130 for i in $cygnus_files ; do
131 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Removing traces of \"cygnus\" from $i...
134 fi
135 cp $i new
136 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
137 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
138 if [ -n "${verbose}" ] ; then
139 echo Caching $i in .Recover...
140 fi
141 mv $i .Recover
142 fi
143 mv new $i
144 fi
145 done
146 fi
147
148 # End of file.
This page took 0.032399 seconds and 4 git commands to generate.