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