build_gnv_curl_release_notes.com 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. $! File: Build_GNV_curl_release_notes.com
  2. $!
  3. $! $Id$
  4. $!
  5. $! Build the release note file from the four components:
  6. $! 1. The curl_release_note_start.txt
  7. $! 2. The hp_ssl_release_info.txt
  8. $! 3. [--]readme. file from the Curl distribution.
  9. $! 4. The Curl_gnv-build_steps.txt.
  10. $!
  11. $! Set the name of the release notes from the GNV_PCSI_FILENAME_BASE
  12. $! logical name.
  13. $!
  14. $! Copyright 2013 - 2022, John Malmberg
  15. $!
  16. $! Permission to use, copy, modify, and/or distribute this software for any
  17. $! purpose with or without fee is hereby granted, provided that the above
  18. $! copyright notice and this permission notice appear in all copies.
  19. $!
  20. $! THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  21. $! WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  22. $! MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  23. $! ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  24. $! WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  25. $! ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  26. $! OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27. $!
  28. $! SPDX-License-Identifier: ISC
  29. $!
  30. $! 14-Jun-2009 J. Malmberg
  31. $!
  32. $!===========================================================================
  33. $!
  34. $ base_file = f$trnlnm("GNV_PCSI_FILENAME_BASE")
  35. $ if base_file .eqs. ""
  36. $ then
  37. $ write sys$output "@MAKE_PCSI_CURL_KIT_NAME.COM has not been run."
  38. $ goto all_exit
  39. $ endif
  40. $!
  41. $!
  42. $ curl_readme = f$search("sys$disk:[--]readme.")
  43. $ if curl_readme .eqs. ""
  44. $ then
  45. $ curl_readme = f$search("sys$disk:[--]$README.")
  46. $ endif
  47. $ if curl_readme .eqs. ""
  48. $ then
  49. $ write sys$output "Can not find Curl readme file."
  50. $ goto all_exit
  51. $ endif
  52. $!
  53. $ curl_copying = f$search("sys$disk:[--]copying.")
  54. $ if curl_copying .eqs. ""
  55. $ then
  56. $ curl_copying = f$search("sys$disk:[--]$COPYING.")
  57. $ endif
  58. $ if curl_copying .eqs. ""
  59. $ then
  60. $ write sys$output "Can not find Curl copying file."
  61. $ goto all_exit
  62. $ endif
  63. $!
  64. $ vms_readme = f$search("sys$disk:[]readme.")
  65. $ if vms_readme .eqs. ""
  66. $ then
  67. $ vms_readme = f$search("sys$disk:[]$README.")
  68. $ endif
  69. $ if vms_readme .eqs. ""
  70. $ then
  71. $ write sys$output "Can not find VMS specific Curl readme file."
  72. $ goto all_exit
  73. $ endif
  74. $!
  75. $ curl_release_notes = f$search("sys$disk:[--]release-notes.")
  76. $ if curl_release_notes .eqs. ""
  77. $ then
  78. $ curl_release_notes = f$search("sys$disk:[--]$RELEASE-NOTES.")
  79. $ endif
  80. $ if curl_release_notes .eqs. ""
  81. $ then
  82. $ write sys$output "Can not find Curl release-notes file."
  83. $ goto all_exit
  84. $ endif
  85. $!
  86. $ if f$search("sys$disk:[]hp_ssl_release_info.txt") .eqs. ""
  87. $ then
  88. $ write sys$output "GNV_LINK_CURL.COM has not been run!"
  89. $ goto all_exit
  90. $ endif
  91. $!
  92. $ type/noheader 'curl_readme', 'vms_readme', -
  93. 'curl_release_notes', -
  94. sys$disk:[]curl_release_note_start.txt, -
  95. sys$disk:[]hp_ssl_release_info.txt, -
  96. 'curl_copying', -
  97. sys$disk:[]curl_gnv_build_steps.txt -
  98. /out='base_file'.release_notes
  99. $!
  100. $ purge 'base_file'.release_notes
  101. $ rename 'base_file.release_notes ;1
  102. $!
  103. $all_exit:
  104. $ exit