clean_gnv_curl.com 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 - 2022, 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. $! SPDX-License-Identifier: ISC
  33. $!
  34. $! 07-Jul-2009 J. Malmberg
  35. $!============================================================================
  36. $!
  37. $! Save this so we can get back.
  38. $ default_dir = f$environment("default")
  39. $!
  40. $!
  41. $! Move to where the base directory is.
  42. $ set def [--]
  43. $!
  44. $!
  45. $ file = "sys$login:sh*."
  46. $ if f$search(file) .nes. "" then delete 'file';*
  47. $!
  48. $ file = "sys$login:make*."
  49. $ if f$search(file) .nes. "" then delete 'file';*
  50. $!
  51. $ file = "lcl_root:[]confdefs.h"
  52. $ if f$search(file) .nes. "" then delete 'file';*
  53. $!
  54. $ file = "lcl_root:[]conftest.dsf"
  55. $ if f$search(file) .nes. "" then delete 'file';*
  56. $!
  57. $ file = "lcl_root:[]conftest.lis"
  58. $ if f$search(file) .nes. "" then delete 'file';*
  59. $!
  60. $ file = "lcl_root:[]conftest.sym"
  61. $ if f$search(file) .nes. "" then delete 'file';*
  62. $!
  63. $!
  64. $ file = "lcl_root:[.conf*...]*.*"
  65. $ if f$search(file) .nes. "" then delete 'file';*
  66. $ file = "lcl_root:[]conf*.dir
  67. $ if f$search(file) .nes. "" then delete 'file';*
  68. $!
  69. $!
  70. $ file = "lcl_root:[.lib]*.out"
  71. $ if f$search(file) .nes. "" then delete 'file';*
  72. $ file = "lcl_root:[.lib]*.o"
  73. $ if f$search(file) .nes. "" then delete 'file';*
  74. $!
  75. $!
  76. $ file = "lcl_root:[.lib]*.lis"
  77. $ if f$search(file) .nes. "" then delete 'file';*
  78. $!
  79. $ file = "lcl_root:[.src]*.lis"
  80. $ if f$search(file) .nes. "" then delete 'file';*
  81. $!
  82. $ file = "lcl_root:[.src]cc_temp*."
  83. $ if f$search(file) .nes. "" then delete 'file';*
  84. $!
  85. $ file = "lcl_root:[.src]*.dsf"
  86. $ if f$search(file) .nes. "" then delete 'file';*
  87. $!
  88. $ file = "lcl_root:[.src]*.o"
  89. $ if f$search(file) .nes. "" then delete 'file';*
  90. $!
  91. $ file = "lcl_root:[.lib]ar*."
  92. $ if f$search(file) .nes. "" then delete 'file';*
  93. $!
  94. $ file = "lcl_root:[.lib]cc_temp*."
  95. $ if f$search(file) .nes. "" then delete 'file';*
  96. $!
  97. $ file = "lcl_root:[...]*.lo"
  98. $ if f$search(file) .nes. "" then delete 'file';*
  99. $!
  100. $ file = "lcl_root:[...]*.a"
  101. $ if f$search(file) .nes. "" then delete 'file';*
  102. $!
  103. $ file = "lcl_root:[...]*.la"
  104. $ if f$search(file) .nes. "" then delete 'file';*
  105. $!
  106. $ file = "lcl_root:[...]*.lai"
  107. $ if f$search(file) .nes. "" then delete 'file';*
  108. $!
  109. $ file = "lcl_root:[.packages.vms]curl-*_original_src.bck"
  110. $ if f$search(file) .nes. "" then delete 'file';*
  111. $!
  112. $ file = "lcl_root:[.packages.vms]curl_d-*_original_src.bck"
  113. $ if f$search(file) .nes. "" then delete 'file';*
  114. $!
  115. $ file = "lcl_root:[.packages.vms]curl-*_vms_src.bck"
  116. $ if f$search(file) .nes. "" then delete 'file';*
  117. $!
  118. $ file = "lcl_root:[.packages.vms]curl_d-*_vms_src.bck"
  119. $ if f$search(file) .nes. "" then delete 'file';*
  120. $!
  121. $ file = "lcl_root:[.packages.vms]curl-*.release_notes"
  122. $ if f$search(file) .nes. "" then delete 'file';*
  123. $!
  124. $ file = "lcl_root:[.packages.vms]curl_d-*.release_notes"
  125. $ if f$search(file) .nes. "" then delete 'file';*
  126. $!
  127. $ file = "lcl_root:[.packages.vms]*-curl-*.pcsi$desc"
  128. $ if f$search(file) .nes. "" then delete 'file';*
  129. $!
  130. $ file = "lcl_root:[.packages.vms]*-curl_d-*.pcsi$desc"
  131. $ if f$search(file) .nes. "" then delete 'file';*
  132. $!
  133. $ file = "lcl_root:[.packages.vms]*-curl-*.pcsi$text"
  134. $ if f$search(file) .nes. "" then delete 'file';*
  135. $!
  136. $ file = "lcl_root:[.packages.vms]*-curl_d-*.pcsi$text"
  137. $ if f$search(file) .nes. "" then delete 'file';*
  138. $!
  139. $!======================================================================
  140. $!
  141. $ if p1 .nes. "REALCLEAN" then goto all_exit
  142. $!
  143. $ file = "lcl_root:[...]*.obj"
  144. $ if f$search(file) .nes. "" then delete 'file';*
  145. $!
  146. $ file = "lcl_root:[...]Makefile."
  147. $ if f$search(file) .nes. "" then delete 'file';*
  148. $!
  149. $ file = "lcl_root:[...]libtool."
  150. $ if f$search(file) .nes. "" then delete 'file';*
  151. $!
  152. $ file = "lcl_root:[...]*.lis"
  153. $ if f$search(file) .nes. "" then delete 'file';*
  154. $!
  155. $ file = "lcl_root:[...]POTFILES."
  156. $ if f$search(file) .nes. "" then delete 'file';*
  157. $!
  158. $ file = "lcl_root:[]libcurl.pc"
  159. $ if f$search(file) .nes. "" then delete 'file';*
  160. $!
  161. $ file = "lcl_root:[]curl-config."
  162. $ if f$search(file) .nes. "" then delete 'file';*
  163. $!
  164. $ file = "lcl_root:[]config.h"
  165. $ if f$search(file) .nes. "" then delete 'file';*
  166. $!
  167. $ file = "lcl_root:[.src]config.h"
  168. $ if f$search(file) .nes. "" then delete 'file';*
  169. $!
  170. $ file = "lcl_root:[.src]curl."
  171. $ if f$search(file) .nes. "" then delete 'file';*
  172. $!
  173. $ file = "lcl_root:[.tests]configurehelp.pm"
  174. $ if f$search(file) .nes. "" then delete 'file';*
  175. $!
  176. $ file = "lcl_root:[.lib]config.h"
  177. $ if f$search(file) .nes. "" then delete 'file';*
  178. $!
  179. $ file = "lcl_root:[.lib]curl_config.h"
  180. $ if f$search(file) .nes. "" then delete 'file';*
  181. $!
  182. $ file = "lcl_root:[.lib]libcurl.vers"
  183. $ if f$search(file) .nes. "" then delete 'file';*
  184. $!
  185. $ file = "lcl_root:[.lib]libcurl.plist"
  186. $ if f$search(file) .nes. "" then delete 'file';*
  187. $!
  188. $ file = "lcl_root:[]ca-bundle.h"
  189. $ if f$search(file) .nes. "" then delete 'file';*
  190. $!
  191. $ file = "lcl_root:[]config.log"
  192. $ if f$search(file) .nes. "" then delete 'file';*
  193. $!
  194. $ file = "lcl_root:[]config.status"
  195. $ if f$search(file) .nes. "" then delete 'file';*
  196. $!
  197. $ file = "lcl_root:[]conftest.dangle"
  198. $ if f$search(file) .nes. "" then delete 'file';*
  199. $!
  200. $ file = "lcl_root:[]CXX$DEMANGLER_DB."
  201. $ if f$search(file) .nes. "" then delete 'file';*
  202. $!
  203. $ file = "lcl_root:[]stamp-h1."
  204. $ if f$search(file) .nes. "" then delete 'file';*
  205. $!
  206. $ file = "lcl_root:[...]stamp-h1."
  207. $ if f$search(file) .nes. "" then delete 'file';*
  208. $!
  209. $ file = "lcl_root:[...]stamp-h2."
  210. $ if f$search(file) .nes. "" then delete 'file';*
  211. $!
  212. $ file = "lcl_root:[...]stamp-h3."
  213. $ if f$search(file) .nes. "" then delete 'file';*
  214. $!
  215. $ file = "lcl_root:[.lib]*.a"
  216. $ if f$search(file) .nes. "" then delete 'file';*
  217. $!
  218. $ file = "lcl_root:[...]*.spec"
  219. $ if f$search(file) .nes. "" then delete 'file';*
  220. $!
  221. $ file = "lcl_root:[...]gnv$*.*"
  222. $ if f$search(file) .nes. "" then delete 'file';*
  223. $!
  224. $ file = "lcl_root:[...]gnv*.opt"
  225. $ if f$search(file) .nes. "" then delete 'file';*
  226. $!
  227. $ file = "lcl_root:[.packages.vms]macro32_exactcase.exe"
  228. $ if f$search(file) .nes. "" then delete 'file';*
  229. $!
  230. $ file = "lcl_root:[.packages.vms]report_openssl_version.exe"
  231. $ if f$search(file) .nes. "" then delete 'file';*
  232. $!
  233. $ file = "lcl_root:[.packages.vms]hp_ssl_release_info.txt"
  234. $ if f$search(file) .nes. "" then delete 'file';*
  235. $!
  236. $ file = "lcl_root:[.src]curl.exe"
  237. $ if f$search(file) .nes. "" then delete 'file';*
  238. $!
  239. $all_exit:
  240. $!
  241. $! Put the default back.
  242. $!-----------------------
  243. $ set def 'default_dir'
  244. $!
  245. $ exit