Do not try to include sys/mount.h anymore
[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 # "Do-last:" 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-sysv5
73 mh-vaxult2
74 mh-x86pic
75 mpw
76 mpw-mh-mpw
77 mt-elfalphapic
78 mt-linux
79 mt-m68kpic
80 mt-netware
81 mt-ospace
82 mt-papic
83 mt-ppcpic
84 mt-sparcpic
85 mt-v810
86 mt-x86pic
87
88 Things-to-lose:
89 acinclude.m4
90
91
92 # The lines between the "Do-last:" line and the end of the file
93 # are executed as a /bin/sh shell script after everything else is
94 # done.
95
96 Do-last:
97
98 r5900_files="ChangeLog"
99 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
100 for i in $r5900_files ; do
101 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
102 if [ -n "${verbose}" ] ; then
103 echo Keeping r5900 stuff in $i
104 fi
105 fi
106 done
107 else
108 for i in $r5900_files ; do
109 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
110 if [ -n "${verbose}" ] ; then
111 echo Removing traces of \"r5900\" from $i...
112 fi
113 cp $i new
114 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
115 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
116 if [ -n "${verbose}" ] ; then
117 echo Caching $i in .Recover...
118 fi
119 mv $i .Recover
120 fi
121 mv new $i
122 fi
123 done
124 fi
125
126 cygnus_files="mh-go32"
127 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
128 for i in $cygnus_files ; do
129 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
130 if [ -n "${verbose}" ] ; then
131 echo Keeping cygnus stuff in $i
132 fi
133 fi
134 done
135 else
136 for i in $cygnus_files ; do
137 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Removing traces of \"cygnus\" from $i...
140 fi
141 cp $i new
142 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
143 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
144 if [ -n "${verbose}" ] ; then
145 echo Caching $i in .Recover...
146 fi
147 mv $i .Recover
148 fi
149 mv new $i
150 fi
151 done
152 fi
153
154 # eof
This page took 0.036524 seconds and 4 git commands to generate.