0bef42c1b01380b5d5ced9599b8c9394723304c5
[platform/upstream/curl.git] / packages / vms / clean_gnv_curl.com
1 $! File: clean_gnv_curl.COM
2 $!
3 $! $Id$
4 $!
5 $! The GNV environment leaves behind some during the configure and build
6 $! procedure that need to be cleaned up.
7 $!
8 $! The default is to remove all the left over stuff from running the
9 $! configure script and to remove all intermediate binary files.
10 $!
11 $! This should be run with no parameters after the gnv_curl_configure.sh
12 $! script is run.
13 $!
14 $! Paramter P1: REALCLEAN
15 $!   This removes all build products and brings the environment back to
16 $!   the point where the gnv_curl_configure.sh procedure needs to be run again.
17 $!
18 $! Copyright 2009, John Malmberg
19 $!
20 $! Permission to use, copy, modify, and/or distribute this software for any
21 $! purpose with or without fee is hereby granted, provided that the above
22 $! copyright notice and this permission notice appear in all copies.
23 $!
24 $! THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
25 $! WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
26 $! MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
27 $! ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
28 $! WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
29 $! ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
30 $! OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
31 $!
32 $!
33 $! 07-Jul-2009  J. Malmberg
34 $!============================================================================
35 $!
36 $! Save this so we can get back.
37 $ default_dir = f$environment("default")
38 $!
39 $!
40 $! Move to where the base directory is.
41 $ set def [--]
42 $!
43 $!
44 $ file = "sys$login:sh*."
45 $ if f$search(file) .nes. "" then delete 'file';*
46 $!
47 $ file = "sys$login:make*."
48 $ if f$search(file) .nes. "" then delete 'file';*
49 $!
50 $ file = "lcl_root:[]confdefs.h"
51 $ if f$search(file) .nes. "" then delete 'file';*
52 $!
53 $ file = "lcl_root:[]conftest.dsf"
54 $ if f$search(file) .nes. "" then delete 'file';*
55 $!
56 $ file = "lcl_root:[]conftest.lis"
57 $ if f$search(file) .nes. "" then delete 'file';*
58 $!
59 $ file = "lcl_root:[]conftest.sym"
60 $ if f$search(file) .nes. "" then delete 'file';*
61 $!
62 $!
63 $ file = "lcl_root:[.conf*...]*.*"
64 $ if f$search(file) .nes. "" then delete 'file';*
65 $ file = "lcl_root:[]conf*.dir
66 $ if f$search(file) .nes. "" then delete 'file';*
67 $!
68 $!
69 $ file = "lcl_root:[.lib]*.out"
70 $ if f$search(file) .nes. "" then delete 'file';*
71 $ file = "lcl_root:[.lib]*.o"
72 $ if f$search(file) .nes. "" then delete 'file';*
73 $!
74 $!
75 $ file = "lcl_root:[.lib]*.lis"
76 $ if f$search(file) .nes. "" then delete 'file';*
77 $!
78 $ file = "lcl_root:[.src]*.lis"
79 $ if f$search(file) .nes. "" then delete 'file';*
80 $!
81 $ file = "lcl_root:[.src]cc_temp*."
82 $ if f$search(file) .nes. "" then delete 'file';*
83 $!
84 $ file = "lcl_root:[.src]*.dsf"
85 $ if f$search(file) .nes. "" then delete 'file';*
86 $!
87 $ file = "lcl_root:[.src]*.o"
88 $ if f$search(file) .nes. "" then delete 'file';*
89 $!
90 $ file = "lcl_root:[.lib]ar*."
91 $ if f$search(file) .nes. "" then delete 'file';*
92 $!
93 $ file = "lcl_root:[.lib]cc_temp*."
94 $ if f$search(file) .nes. "" then delete 'file';*
95 $!
96 $ file = "lcl_root:[...]*.lo"
97 $ if f$search(file) .nes. "" then delete 'file';*
98 $!
99 $ file = "lcl_root:[...]*.a"
100 $ if f$search(file) .nes. "" then delete 'file';*
101 $!
102 $ file = "lcl_root:[...]*.la"
103 $ if f$search(file) .nes. "" then delete 'file';*
104 $!
105 $ file = "lcl_root:[...]*.lai"
106 $ if f$search(file) .nes. "" then delete 'file';*
107 $!
108 $ file = "lcl_root:[.include.curl]curlbuild.h_old"
109 $ if f$search(file) .nes. "" then delete 'file';*
110 $!
111 $ file = "lcl_root:[.packages.vms]curl-*.release_notes"
112 $ if f$search(file) .nes. "" then delete 'file';*
113 $!
114 $ file = "lcl_root:[.packages.vms]*-curl-*.pcsi$desc"
115 $ if f$search(file) .nes. "" then delete 'file';*
116 $!
117 $ file = "lcl_root:[.packages.vms]*-curl-*.pcsi$text"
118 $ if f$search(file) .nes. "" then delete 'file';*
119 $!
120 $!======================================================================
121 $!
122 $ if p1 .nes. "REALCLEAN" then goto all_exit
123 $!
124 $ file = "lcl_root:[...]*.obj"
125 $ if f$search(file) .nes. "" then delete 'file';*
126 $!
127 $ file = "lcl_root:[...]Makefile."
128 $ if f$search(file) .nes. "" then delete 'file';*
129 $!
130 $ file = "lcl_root:[...]libtool."
131 $ if f$search(file) .nes. "" then delete 'file';*
132 $!
133 $ file = "lcl_root:[...]*.lis"
134 $ if f$search(file) .nes. "" then delete 'file';*
135 $!
136 $ file = "lcl_root:[...]POTFILES."
137 $ if f$search(file) .nes. "" then delete 'file';*
138 $!
139 $ file = "lcl_root:[]libcurl.pc"
140 $ if f$search(file) .nes. "" then delete 'file';*
141 $!
142 $ file = "lcl_root:[]curl-config."
143 $ if f$search(file) .nes. "" then delete 'file';*
144 $!
145 $ file = "lcl_root:[]config.h"
146 $ if f$search(file) .nes. "" then delete 'file';*
147 $!
148 $ file = "lcl_root:[.include.curl]curlbuild.h"
149 $ if f$search(file) .nes. "" then delete 'file';*
150 $!
151 $ file = "lcl_root:[.src]config.h"
152 $ if f$search(file) .nes. "" then delete 'file';*
153 $!
154 $ file = "lcl_root:[.src]curl."
155 $ if f$search(file) .nes. "" then delete 'file';*
156 $!
157 $ file = "lcl_root:[.tests]configurehelp.pm"
158 $ if f$search(file) .nes. "" then delete 'file';*
159 $!
160 $ file = "lcl_root:[.lib]config.h"
161 $ if f$search(file) .nes. "" then delete 'file';*
162 $!
163 $ file = "lcl_root:[.lib]curl_config.h"
164 $ if f$search(file) .nes. "" then delete 'file';*
165 $!
166 $ file = "lcl_root:[.lib]libcurl.vers"
167 $ if f$search(file) .nes. "" then delete 'file';*
168 $!
169 $ file = "lcl_root:[]ca-bundle.h"
170 $ if f$search(file) .nes. "" then delete 'file';*
171 $!
172 $ file = "lcl_root:[]config.log"
173 $ if f$search(file) .nes. "" then delete 'file';*
174 $!
175 $ file = "lcl_root:[]config.status"
176 $ if f$search(file) .nes. "" then delete 'file';*
177 $!
178 $ file = "lcl_root:[]conftest.dangle"
179 $ if f$search(file) .nes. "" then delete 'file';*
180 $!
181 $ file = "lcl_root:[]CXX$DEMANGLER_DB."
182 $ if f$search(file) .nes. "" then delete 'file';*
183 $!
184 $ file = "lcl_root:[]stamp-h1."
185 $ if f$search(file) .nes. "" then delete 'file';*
186 $!
187 $ file = "lcl_root:[...]stamp-h1."
188 $ if f$search(file) .nes. "" then delete 'file';*
189 $!
190 $ file = "lcl_root:[...]stamp-h2."
191 $ if f$search(file) .nes. "" then delete 'file';*
192 $!
193 $ file = "lcl_root:[...]stamp-h3."
194 $ if f$search(file) .nes. "" then delete 'file';*
195 $!
196 $ file = "lcl_root:[.lib]*.a"
197 $ if f$search(file) .nes. "" then delete 'file';*
198 $!
199 $ file = "lcl_root:[...]*.spec"
200 $ if f$search(file) .nes. "" then delete 'file';*
201 $!
202 $ file = "lcl_root:[...]gnv$*.*"
203 $ if f$search(file) .nes. "" then delete 'file';*
204 $!
205 $ file = "lcl_root:[...]gnv*.opt"
206 $ if f$search(file) .nes. "" then delete 'file';*
207 $!
208 $ file = "lcl_root:[.packages.EPM]curl.list"
209 $ if f$search(file) .nes. "" then delete 'file';*
210 $!
211 $ file = "lcl_root:[.packages.vms]macro32_exactcase.exe"
212 $ if f$search(file) .nes. "" then delete 'file';*
213 $!
214 $ file = "lcl_root:[.packages.vms]report_openssl_version.exe"
215 $ if f$search(file) .nes. "" then delete 'file';*
216 $!
217 $ file = "lcl_root:[.packages.vms]hp_ssl_release_info.txt"
218 $ if f$search(file) .nes. "" then delete 'file';*
219 $!
220 $ file = "lcl_root:[.src]curl.exe"
221 $ if f$search(file) .nes. "" then delete 'file';*
222 $!
223 $all_exit:
224 $!
225 $! Put the default back.
226 $!-----------------------
227 $ set def 'default_dir'
228 $!
229 $ exit