Debian Codegraph @

vms/gnv_gawk_startup.com

raw
1 $! File: gnv$gawk_Startup.com / gnv_gawk_startup.com
2 $!
3 $! Procedure to setup the GAWK images for use by programs from the
4 $! VMS SYSTARTUP*.COM procedure.
5 $!
6 $! 14-Mar-2011 J. Malmberg
7 $! 04-May-2011 J. Malmberg Use GNV_PCSI_DESTINATION to find the
8 $! value to assing GNV$GNU per suggestion
9 $! by Martin Vorlander.
10 $! 02-Jan-2014 J. Malmberg Gawk Version
11 $!========================================================================
12 $!
13 $!
14 $! GNV$GNU if needed.
15 $ if f$trnlnm("GNV$GNU") .eqs. ""
16 $ then
17 $ x = f$trnlnm("GNU","LNM$SYSTEM_TABLE")
18 $ if x .nes. ""
19 $ then
20 $ write sys$output -
21 "Notice: logical name GNU: was found in the system table instead of GNV$GNU:"
22 $ write sys$output -
23 "This is a known bug in the GNV 2.1.3 and earlier kits."
24 $ define/system/exec/trans=conc GNV$GNU 'x'
25 $ else
26 $!
27 $! File name per VMS standards
28 $! ---------------------------
29 $ file1 = "sys$startup:gnv$destination_''f$getsyi("ARCH_NAME")'.com"
30 $!
31 $! File name in GNV 2.1.3
32 $! ----------------------
33 $ file2 = "sys$startup:gnv_destination_''f$getsyi("ARCH_NAME")'.com"
34 $!
35 $! File name before GNV 2.1.3
36 $! ---------------------------
37 $ file3 = "sys$startup:gnv_destination''f$getsyi("ARCH_NAME")'.com"
38 $ arch_file = ""
39 $ if f$search(file1) .nes. ""
40 $ then
41 $ arch_file = file1
42 $ else
43 $ if f$search(file2) .nes. ""
44 $ then
45 $ arch_file = file2
46 $ else
47 $ if f$search("file3") .nes. "" then arch_file = file3
48 $ endif
49 $ endif
50 $ if (arch_file) .nes. "" then @'arch_file'
51 $!
52 $! Logical name per VMS standards
53 $! -------------------------------
54 $ destination = f$trnlnm("GNV$PCSI_DESTINATION")
55 $!
56 $! Logical name in GNV 2.1.3
57 $! --------------------------
58 $ if destination .eqs. ""
59 $ then
60 $ destination = f$trnlnm("GNV_PCSI_DESTINATION")
61 $ endif
62 $ if destination .eqs. ""
63 $ then
64 $ !Assume this procedure is on the same volume as the GNV install.
65 $ my_proc = f$environment("PROCEDURE")
66 $ my_dev = f$parse(my_proc,,,"DEVICE","NO_CONCEAL")
67 $ destination = "''my_dev'[vms$common.gnv.]"
68 $ endif
69 $ define/system/exec/trans=conc gnv$gnu 'destination'
70 $ endif
71 $ endif
72 $!
73 $!
74 $all_exit:
75 $ exit