| 1 |
$! File: Build_gawk_release_notes.com |
| 2 |
$! |
| 3 |
$! Build the release note file from the three components: |
| 4 |
$! 1. The gawk_release_note_start.txt |
| 5 |
$! 2. readme. file from the Gawk distribution. |
| 6 |
$! 3. The gawk_build_steps.txt. |
| 7 |
$! |
| 8 |
$! Set the name of the release notes from the GNV_PCSI_FILENAME_BASE |
| 9 |
$! logical name. |
| 10 |
$! |
| 11 |
$! |
| 12 |
$! 31-Dec-2013 J. Malmberg |
| 13 |
$! |
| 14 |
$!=========================================================================== |
| 15 |
$! |
| 16 |
$ base_file = f$trnlnm("GNV_PCSI_FILENAME_BASE") |
| 17 |
$ if base_file .eqs. "" |
| 18 |
$ then |
| 19 |
$ write sys$output "@MAKE_PCSI_GAWK_KIT_NAME.COM has not been run." |
| 20 |
$ goto all_exit |
| 21 |
$ endif |
| 22 |
$! |
| 23 |
$ gawk_vms_readme = f$search("sys$disk:[.readme_d]readme.vms") |
| 24 |
$ if gawk_vms_readme .eqs. "" |
| 25 |
$ then |
| 26 |
$ gawk_vms_readme = f$search("sys$disk:[.$README_$D]$README.VMS") |
| 27 |
$ endif |
| 28 |
$ if gawk_vms_readme .eqs. "" |
| 29 |
$ then |
| 30 |
$ write sys$output "Can not find gawk README.VMS file." |
| 31 |
$ goto all_exit |
| 32 |
$ endif |
| 33 |
$! |
| 34 |
$ gawk_readme = f$search("sys$disk:[]readme.") |
| 35 |
$ if gawk_readme .eqs. "" |
| 36 |
$ then |
| 37 |
$ gawk_readme = f$search("sys$disk:[]$README.") |
| 38 |
$ endif |
| 39 |
$ if gawk_readme .eqs. "" |
| 40 |
$ then |
| 41 |
$ write sys$output "Can not find gawk readme file." |
| 42 |
$ goto all_exit |
| 43 |
$ endif |
| 44 |
$! |
| 45 |
$ gawk_copying = f$search("sys$disk:[]copying.") |
| 46 |
$ if gawk_copying .eqs. "" |
| 47 |
$ then |
| 48 |
$ gawk_copying = f$search("sys$disk:[]$COPYING.") |
| 49 |
$ endif |
| 50 |
$ if gawk_copying .eqs. "" |
| 51 |
$ then |
| 52 |
$ write sys$output "Can not find gawk copying file." |
| 53 |
$ goto all_exit |
| 54 |
$ endif |
| 55 |
$! |
| 56 |
$ type/noheader sys$disk:[.vms]gawk_release_note_start.txt,- |
| 57 |
'gawk_readme',- |
| 58 |
'gawk_vms_readme',- |
| 59 |
'gawk_copying', - |
| 60 |
sys$disk:[.vms]gawk_build_steps.txt - |
| 61 |
/out='base_file'.release_notes |
| 62 |
$! |
| 63 |
$ purge 'base_file'.release_notes |
| 64 |
$ rename 'base_file.release_notes ;1 |
| 65 |
$! |
| 66 |
$all_exit: |
| 67 |
$ exit |