• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-*_original_src.bck"
112$ if f$search(file) .nes. "" then delete 'file';*
113$!
114$ file = "lcl_root:[.packages.vms]curl_d-*_original_src.bck"
115$ if f$search(file) .nes. "" then delete 'file';*
116$!
117$ file = "lcl_root:[.packages.vms]curl-*_vms_src.bck"
118$ if f$search(file) .nes. "" then delete 'file';*
119$!
120$ file = "lcl_root:[.packages.vms]curl_d-*_vms_src.bck"
121$ if f$search(file) .nes. "" then delete 'file';*
122$!
123$ file = "lcl_root:[.packages.vms]curl-*.release_notes"
124$ if f$search(file) .nes. "" then delete 'file';*
125$!
126$ file = "lcl_root:[.packages.vms]curl_d-*.release_notes"
127$ if f$search(file) .nes. "" then delete 'file';*
128$!
129$ file = "lcl_root:[.packages.vms]*-curl-*.pcsi$desc"
130$ if f$search(file) .nes. "" then delete 'file';*
131$!
132$ file = "lcl_root:[.packages.vms]*-curl_d-*.pcsi$desc"
133$ if f$search(file) .nes. "" then delete 'file';*
134$!
135$ file = "lcl_root:[.packages.vms]*-curl-*.pcsi$text"
136$ if f$search(file) .nes. "" then delete 'file';*
137$!
138$ file = "lcl_root:[.packages.vms]*-curl_d-*.pcsi$text"
139$ if f$search(file) .nes. "" then delete 'file';*
140$!
141$!======================================================================
142$!
143$ if p1 .nes. "REALCLEAN" then goto all_exit
144$!
145$ file = "lcl_root:[...]*.obj"
146$ if f$search(file) .nes. "" then delete 'file';*
147$!
148$ file = "lcl_root:[...]Makefile."
149$ if f$search(file) .nes. "" then delete 'file';*
150$!
151$ file = "lcl_root:[...]libtool."
152$ if f$search(file) .nes. "" then delete 'file';*
153$!
154$ file = "lcl_root:[...]*.lis"
155$ if f$search(file) .nes. "" then delete 'file';*
156$!
157$ file = "lcl_root:[...]POTFILES."
158$ if f$search(file) .nes. "" then delete 'file';*
159$!
160$ file = "lcl_root:[]libcurl.pc"
161$ if f$search(file) .nes. "" then delete 'file';*
162$!
163$ file = "lcl_root:[]curl-config."
164$ if f$search(file) .nes. "" then delete 'file';*
165$!
166$ file = "lcl_root:[]config.h"
167$ if f$search(file) .nes. "" then delete 'file';*
168$!
169$ file = "lcl_root:[.include.curl]curlbuild.h"
170$ if f$search(file) .nes. "" then delete 'file';*
171$!
172$ file = "lcl_root:[.src]config.h"
173$ if f$search(file) .nes. "" then delete 'file';*
174$!
175$ file = "lcl_root:[.src]curl."
176$ if f$search(file) .nes. "" then delete 'file';*
177$!
178$ file = "lcl_root:[.tests]configurehelp.pm"
179$ if f$search(file) .nes. "" then delete 'file';*
180$!
181$ file = "lcl_root:[.lib]config.h"
182$ if f$search(file) .nes. "" then delete 'file';*
183$!
184$ file = "lcl_root:[.lib]curl_config.h"
185$ if f$search(file) .nes. "" then delete 'file';*
186$!
187$ file = "lcl_root:[.lib]libcurl.vers"
188$ if f$search(file) .nes. "" then delete 'file';*
189$!
190$ file = "lcl_root:[]ca-bundle.h"
191$ if f$search(file) .nes. "" then delete 'file';*
192$!
193$ file = "lcl_root:[]config.log"
194$ if f$search(file) .nes. "" then delete 'file';*
195$!
196$ file = "lcl_root:[]config.status"
197$ if f$search(file) .nes. "" then delete 'file';*
198$!
199$ file = "lcl_root:[]conftest.dangle"
200$ if f$search(file) .nes. "" then delete 'file';*
201$!
202$ file = "lcl_root:[]CXX$DEMANGLER_DB."
203$ if f$search(file) .nes. "" then delete 'file';*
204$!
205$ file = "lcl_root:[]stamp-h1."
206$ if f$search(file) .nes. "" then delete 'file';*
207$!
208$ file = "lcl_root:[...]stamp-h1."
209$ if f$search(file) .nes. "" then delete 'file';*
210$!
211$ file = "lcl_root:[...]stamp-h2."
212$ if f$search(file) .nes. "" then delete 'file';*
213$!
214$ file = "lcl_root:[...]stamp-h3."
215$ if f$search(file) .nes. "" then delete 'file';*
216$!
217$ file = "lcl_root:[.lib]*.a"
218$ if f$search(file) .nes. "" then delete 'file';*
219$!
220$ file = "lcl_root:[...]*.spec"
221$ if f$search(file) .nes. "" then delete 'file';*
222$!
223$ file = "lcl_root:[...]gnv$*.*"
224$ if f$search(file) .nes. "" then delete 'file';*
225$!
226$ file = "lcl_root:[...]gnv*.opt"
227$ if f$search(file) .nes. "" then delete 'file';*
228$!
229$ file = "lcl_root:[.packages.EPM]curl.list"
230$ if f$search(file) .nes. "" then delete 'file';*
231$!
232$ file = "lcl_root:[.packages.vms]macro32_exactcase.exe"
233$ if f$search(file) .nes. "" then delete 'file';*
234$!
235$ file = "lcl_root:[.packages.vms]report_openssl_version.exe"
236$ if f$search(file) .nes. "" then delete 'file';*
237$!
238$ file = "lcl_root:[.packages.vms]hp_ssl_release_info.txt"
239$ if f$search(file) .nes. "" then delete 'file';*
240$!
241$ file = "lcl_root:[.src]curl.exe"
242$ if f$search(file) .nes. "" then delete 'file';*
243$!
244$all_exit:
245$!
246$! Put the default back.
247$!-----------------------
248$ set def 'default_dir'
249$!
250$ exit
251