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