2
0

clean_gnv_curl.com 7.3 KB

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