1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
|
$!
$! CKVKER.COM - C-Kermit 6.0 Construction for (Open)VMS
$!
$! Version 1.17, 3 Dec 1997
$!
$! DCL usage requires VMS 5.0 or higher - use CKVOLD.COM for VMS 4.x.
$!
$ if p1 .eqs. "" then goto Skip_Help
$ if (f$locate(",",p1).ne.f$length(p1)) then goto Bad_param
$ if p1.nes."" then p1 = f$edit(p1,"UPCASE")
$ if f$locate("H",p1).eq.f$length(p1) .and. -
f$locate("?",p1).eq.f$length(p1) then goto Skip_Help
$Help:
$type sys$input
Usage:
$ @[directory]ckvker [ p1 [ p2 [ p3 [ p4 [ p5 ] ] ] ] ]
P1 = Build options
P2 = Compiler selection
P3 = C-Kermit DEFINES
P4 = Additional compiler qualifiers
P5 = Link Qualifiers
P1 Build options (no white space, or enclose in quotes):
S = share (VAX C default is noshare, i.e. no shared VAXCRTL)
L = RTL version level -- link with latest math RTL
D = compile&link /DEBUG (create map files, etc)
C = clean (remove object files, etc.)
M = don't use MMS or MMK; use the DCL MAKE subroutine herein
N = build with no network support
O = override the limit on MMS/MMK command line length
V = turn on verify
W = exit on warnings
H = display help message
"" = Null place holder; use the defaults
P2 compiler_selection
D = DEC C
V = VAX C
G = GNU C
"" = Use the first compiler found, searching in the above order
P3 C-Kermit options (enclosed in quotes if more than one) including
NOPUSH for security
NODEBUG to reduce size of executable
"" Empty string; only needed as a spaceholder
when other parameters follow.
Note: Default C-Kermit options that can be negated, NO.....,
(see CKCCFG.DOC), as well as options that are not previously
defined, should be affected by specifying the flag here.
However, CKCDEB.H must be edited to "undefine" other defaults,
e.g. CK_CURSES.
P4 Compiler qualifiers (enclosed in quotes)if desired; provides
additional flexibility, e.g., to change the compiler optimization,
"/OPT=LEV=2"
P5 Link qualifiers, e.g., the linker default is to search the
system shareable image library, IMAGELIB.OLB, before the
object module STARLET.OLB. To build an image that may run on
older system you might want to try linking /NOSYSSHR
Example:
$ @ckvker snmd "" "NOPUSH, NODEBUG" "/NOOPT"
NOPUSH - Disallow access to DCL from within Kermit.
NODEBUG - Remove debugging code to make C-Kermit smaller and faster.
This procedure should be stored in the same directory as the source
files. You can SET DEFAULT to that directory and execute the procedure
as shown above, or you can SET DEFAULT to a separate directory and run
run the procedure out of the source directory, e.g.:
SET DEFAULT DKA300:[KERMIT.ALPHA]
@DKA300:[KERMIT.SOURCE]CKVKER
This puts the object and executable files into your current directory.
Thus you can have (e.g.) and Alpha and an VAX build running at the
same time from the same source. Similarly, you can define a logical
name for the source directory:
DEFINE CK_SOURCE DKA300:[KERMIT.SOURCE]
and then no matter which directory you run this procedure from, it
will look in the CK_SOURCE logical for the source files.
NOTES:
If adding flags here makes ccopt too long for Multinet/Wollongong
you will have to do it in CKCDEB.H.
The empty string, "", is needed only as a space holder if additional
strings follow.
Works like MAKE in that only those source modules that are newer than the
corresponding object modules are recompiled. Changing the C-Kermit command
line DEFINES or compiler options does not affect previously compiled
modules. To force a particular module to be recompiled, delete the object
file first. To force a full rebuild:
$ @ckvker c
$ @ckvker <desired-options>
To use in batch, set up the appropriate directories and submit
(/NOLIST and /NOMAP are not needed unless P1 includes "D")
e.g., submit CKVKER /parameters=(SL,"","NODEBUG")
See the CKVINS.DOC and CKVKER.BWR files for further information.
$Exit
$!
$!
$! Uses MMS if it is installed, unless the M option is included. If CKVKER.MMS
$! is missing, you'll get an error; if MMS is not runnable for some reason
$! (privilege, image mismatch, etc), you'll also get an error. In either case,
$! simply bypass MMS by including the M option.
$!
$! For network-type selection, you may also type (at the DCL prompt, prior
$! to running this procedure):
$!
$! net_option = "BLAH"
$!
$! where BLAH (uppercase, in quotes) is NONET, MULTINET, TCPWARE, WINTCP,
$! DEC_TCPIP, or CMU_TCPIP, to force selection of a particular TCP/IP
$! product, but only if the product's header files and libraries are installed
$! on the system where this procedure is running.
$!
$! By default, this procedure builds C-Kermit with support for the TCP/IP
$! network type that is installed on the system where this procedure is run,
$! and tries to link statically with old libraries. If the system is a VAX, a
$! VAX binary is created; if it is an Alpha, an Alpha binary is created. If
$! more than one TCP/IP product is installed, the search proceeds in this
$! order: MULTINET, TCPWARE, WINTCP, DEC_TCPIP, CMU_TCPIP.
$!
$! Should work for all combinations of VAXC/DECC/GCC, VAX/Alpha, and any of
$! the following TCP/IP products: DEC TCP/IP (UCX), Cisco (TGV) MultiNet,
$! Attachmate (Wollongong) WINTCP (Pathway), Process Software TCPware,
$! or CMU/Tektronix TCP/IP (except CMU/Tek is not available for the Alpha).
$! VAX C is supported back to version 3.1, and DEC C back to 1.3.
$! Tested on VMS versions back to 5.4, but should work back to VAX/VMS 5.0,
$! and hopefully even into the 4.x's.
$!
$! ERRORS:
$! 1. At link time, you might see messages like:
$! %LINK-I-OPENIN, Error opening SYS$COMMON:[SYSLIB]VAXCRTLG.OLB; as input,
$! %RMS-E-FNF, file not found
$! %LINK-I-OPENIN, Error opening SYS$COMMON:[SYSLIB]VAXCRTL.OLB; as input,
$! %RMS-E-FNF, file not found
$! This generally indicates that the logical name(s) LNK$LIBRARY* is
$! defined and the runtime libraries are in SYS$SHARE but are not in
$! SYS$COMMON:[SYSLIB]. In the one case where this was observed, the
$! messages turned out to be harmless, since the runtime library is being
$! properly located in the .OPT file generated by this procedure.
$! 2. In newer configurations, you might get a link-time message to the effect
$! that DECC$IOCTL is multiply defined (e.g. VMS 7.0 / DECC 5.3 / UCX or
$! TCPware of recent vintage), since the ioctl() function is now supplied
$! as of VMS 7.0. This message should be harmless.
$! 3. The compiler might warn that routines like bzero and bcopy are not
$! declared, or that they have been declared twice. If the affected module
$! (usually ckcnet.c) builds anyway, and runs correctly, ignore the
$! warnings. If it crashes at runtime, some (more) adjustments will be
$! needed at the source-code level.
$!
$! This procedure is intended to replace the many and varied Makefiles, MMS
$! and MMK files, and so on, and to combine all of their features into one.
$! It was written by Martin Zinser, Gesellschaft fuer Schwerionenforschung
$! GSI, Darmstadt, Germany, m.zinser@gsi.de (preferred) or eurmpz@eur.sas.com,
$! in September 1996, based on all of the older versions developed by:
$!
$! Mark Berryman, Science Applications Int'l. Corp., San Diego, CA
$! Frank da Cruz, Columbia University, New York City <fdc@columbia.edu>
$! Mike Freeman, Bonneville Power Administration
$! Tarjei T. Jensen, Norwegian Hydrographic Service
$! Terry Kennedy, Saint Peters College, Jersey City NJ <terry@spcvxa.spc.edu>
$! Mike O'Malley, Digital Equipment Corporation
$! Piet W. Plomp, ICCE, Groningen University, The Netherlands
$! (piet@icce.rug.nl, piet@asterix.icce.rug.nl)
$! James Sturdevant, CAP GEMINI AMERICA, Minneapolis, MN
$! Lee Tibbert, DEC <tibbert@cosby.enet.dec.com>
$! Bernie Volz, Process Software <volz@process.com>
$!
$! Modification history:
$! fdc = Frank da Cruz, Columbia U, fdc@columbia.edu
$! mf = Mike Freeman, Bonneville Power Authority, freeman@columbia.edu
$! cf = Carl Friedberg, Comet & Company, carl@comets.com
$! hg = Hunter Goatley, Process Software, goathunter@goat.process.com
$! lh = Lucas Hart, Oregon State U, hartl@ucs.orst.edu
$! js = John Santos, Evans Griffiths & Hart, john@egh.com
$! jw = Joellen Windsor, U of Arizona, windsor@ccit.arizona.edu
$!
$! 23-Sep-96 1.01 fdc Shorten and fix syntax of MultiNet
$! /PREFIX_LIBRARIES_ENTRIES clause, remove ccopt items to
$! make string short enough.
$! 26-Sep-96 1.02 jw o Create a temporary file for the CCFLAGS=ccopt macro and
$! "prepend" it to ckvker.mms to reduce the MMS command
$! line length
$! o Optionally, use the current level of the Fortran
$! runtime library and not the "lowest common denominator".
$! When using the "lowest common denominator," be sure to
$! DEASSIGN the logicals before exit.
$! o Continue to operate on WARNING messages.
$! o Implement some .COM file debugging qualifiers:
$! o Modify .h file dependencies
$! 06-Oct-96 1.03 fdc Add 'N' command-line switch for no nets, make 'C' list
$! the files it deletes, clean up comments & messages, etc.
$! 09-Oct-96 1.04 cf Change error handling to use ON WARNING only; add "V"
$! option to enable verify; fix CKWART so it doesn't come
$! up in /debug; remove /DECC from alphas as this is the
$! case anyway add /LOG to MMS to get more info
$! 20-Oct-96 1.05 fdc Numerous changes suggested by lots of people to make it
$! work in more settings.
$! 21-Oct-96 1.06 jw o Put the /vaxc qualifier in ccopt when both DECC and
$! VAXC are present and user forces use of VAXC.
$! o When forcing VAXC and building NOSHARE, add
$! sys$share:vaxcrtl.olb/lib to kermit.opt
$! o Purge rather than delete kermit.opt, aux.opt, and
$! ccflags.mms so we will have them for reference.
$! 21-Oct-96 1.07 hg Adapt for TCPware and for MMK.
$! 21-Oct-96 1.08 mf Smooth out a couple differences between MMS and MMK.
$! 21-Oct-96 1.09 hg Fixes to fdc's interpretation of 1.08.
$! 25-Oct-96 1.10 jw o Allow compilation source in a centrally-located path
$! o Pretty up write of ccopt to sys$output
$! o Deassign logicals on warning exit
$! 04-Nov-96 1.11 lh A. Allow CFLAG options as command-line parameter p3
$! (may require adding "ifndef NOopt" to "#define opt"
$! construction wherever the VMS default is set, e.g.,
$! in CKCDEB.H).
$! B. Spiff up:
$! (a) Line length limit for Multinet - arbitrary
$! (b) Ioctl of VMS v7, DEC_TCPIP, DECC
$! (c) Add a P4 option
$! (d) Check for command-line length
$! (e) Try to set up W for user selection of termination on
$! warning, per Joellen's comments.
$! C. Some cosmetic changes:
$! Change (b) from net_option {.eqs.} "DEC_TCPIP" to
$! {includes string} per jas; move help text to start;
$! add VAXC N vaxcrtl link.
$! {what about missing net_option share/noshare options?}
$! Test for CK_SOURCE to define a source directory different
$! from the CKVKER.COM directory
$! 05-Nov-96 1.12 fdc Clean up and amplify help text and add VMS >= 7.0 test.
$! 06-Nov-96 1.12 hg Remove extraneous comma in VMS >= 7.0 test.
$! 08-Nov-96 1.13 js Fixes to CMU/Tek build.
$! 23-Nov-96 1.14 lh Fixes for VMS V7, VAXCRTL links for all TCP/IP packages,
$! improved batch operation, add P5 for link options,
$! catch commas in P1.
$! 05-Dec-96 1.15 lh Fixes to work with GCC.
$! 20-Aug-97 1.16 fdc Change version number to 6.0.193.
$! 20-Sep-97 1.16 js More fixes to CMU/Tek build.
$! 3-Dec-97 1.17 lh VAX build default, link /NOSYSSHARE; Alpha /SYSSHARE
$!
$Skip_Help:
$!
$ On Control_Y then $ goto CY_Exit
$! On ERROR then $ goto The_exit
$ On SEVERE_ERROR then $ goto The_exit
$! On Warning then goto warning_exit
$ save_verify_image = f$environment("VERIFY_IMAGE")
$ save_verify_procedure = f$verify(0)
$!
$ say == "Write sys$output"
$ procedure = f$environment("PROCEDURE")
$ procname = f$element(0,";",procedure)
$ node = f$getsyi("NODENAME")
$ say "Starting ''procedure' on ''node' at ''f$time()'"
$ ccopt = ""
$ lopt = ""
$ make = ""
$ CC = "CC"
$ alpha=0
$ debug=0
$ noshare=1
$ decc=0
$ vaxc=0
$ verify=0
$ gnuc=0
$ oldmath=0
$ mathlevel=0
$ vmsv7=0
$ nomms=0
$ mmsclm=255 ! maximum command length limit for MMS/MMK (estimate)
$!
$! Find out which OpenVMS version we are running
$! (do not use IF ... ENDIF for the VMS 4 test and exit)
$!
$ sys_ver = f$edit(f$getsyi("version"),"compress")
$ if f$extract(0,1,sys_ver) .eqs. "V" then goto Production_version
$ type sys$input
WARNING: You appear to be running a Field Test version of VMS.
Please exercise caution until you have verified proper operation.
$Production_version:
$!
$ dot = f$locate(".",sys_ver)
$ sys_maj = 0+f$extract(dot-1,1,sys_ver)
$ sys_min = 0+f$extract(dot+1,1,sys_ver)
$!
$ if sys_maj .eq. 4 then if (sys_min/2)*2 .ne. sys_min then -
sys_min = sys_min - 1
$ if sys_maj .ne. 4 then goto Supported_version
$ say ""
$ say " You are running VMS ''sys_ver'"
$ type sys$input
WARNING: CKVKER.COM will not build VMS C-Kermit using that version of VMS.
Prebuilt images should run properly, or try CKVOLD.COM.
Please exercise caution until you have verified proper operation.
$!
$goto The_exit
$!
$Supported_version:
$!
$ vms_ver = "VMS_V''sys_maj'''sys_min'"
$
$! VMSV70 must be defined if the VMS version is 7.0 OR GREATER, so we know
$! we can include <strings.h>.
$
$ if vms_ver .ges."VMS_V70" then vmsv7 = 1
$!
$!
$! Set the Kermit Source Path KSP: to be the same path as this procedure
$! if the user has not specified another source with a CK_SOURCE logical
$!
$ if f$trnlnm("CK_SOURCE") .eqs. ""
$ then
$ source_device = f$parse(f$environment("procedure"),,,"device")
$ source_directory = f$parse(f$environment("procedure"),,,"directory")
$ define KSP 'source_device''source_directory
$ else
$ user_source = f$trnlnm("CK_SOURCE")
$ define KSP 'user_source'
$ endif
$!
$ if p1.nes.""
$ then
$ p1 = f$edit(p1,"UPCASE")
$ if f$locate("V",p1).ne.f$length(p1) then verify=1
$ if f$locate("D",p1).ne.f$length(p1) then debug=1
$ if f$locate("S",p1).ne.f$length(p1) then noshare=0
$ if f$locate("L",p1).ne.f$length(p1) then mathlevel=1
$ if f$locate("M",p1).ne.f$length(p1) then nomms=1
$ if f$locate("N",p1).ne.f$length(p1) then net_option="NONET"
$ if f$locate("C",p1).ne.f$length(p1) then goto clean
$!
$ if f$locate("O",p1).ne.f$length(p1) then mmsclm = 1024
$ if f$locate("W",p1).ne.f$length(p1) then On Warning then goto warning_exit
$ endif
$!
$ cln_def = ""
$ if p3 .nes. "" then cln_def = ","+p3 ! comma delimited string
$ cln_qua = ""
$ if p4 .nes. "" then cln_qua = p4
$!
$!
$ if debug.eq.1
$ then
$ ccopt = "/noopt/deb"
$ lopt = "/deb/map/full/sym"
$ endif
$!
$ if p5 .nes. ""
$ then
$ p5 = f$edit(p5,"UPCASE")
$ lopt = lopt + p5
$ endif
$!
$! Check for MMK/MMS
$!
$ if nomms .eq. 0
$ then
$ if f$search("sys$system:mms.exe") .nes. ""
$ then
$ make = "MMS"
$ if (verify) then make = "MMS/LOG/VERIFY"
$ endif
$ if f$type(MMK) .eqs. "STRING" then make = "MMK"
$ if make .nes. "" then say "Using ''make' utility"
$ endif
$!
$! Build the option-file
$!
$ open/write optf kermit.opt
$ open/write aoptf aux.opt
$ write optf "ckcmai.obj"
$ write optf "ckcfn2.obj"
$ write optf "ckcfn3.obj"
$ write optf "ckcfns.obj"
$ write optf "ckcpro.obj"
$ write optf "ckucmd.obj"
$ write optf "ckudia.obj"
$ write optf "ckuscr.obj"
$ write optf "ckuus2.obj"
$ write optf "ckuus3.obj"
$ write optf "ckuus4.obj"
$ write optf "ckuus5.obj"
$ write optf "ckuus6.obj"
$ write optf "ckuus7.obj"
$ write optf "ckuusr.obj"
$ write optf "ckuusx.obj"
$ write optf "ckuusy.obj"
$ write optf "ckuxla.obj"
$ write optf "ckvcon.obj"
$ write optf "ckcnet.obj"
$ write optf "ckvfio.obj"
$ write optf "ckvtio.obj"
$ write optf "ckvioc.obj"
$ write optf "ckusig.obj"
$ write optf "Identification=""Kermit 6.1.193"""
$!
$! Look for old math-library to allow transfer of the production Kermit
$! to old-fashiond VMS systems
$!
$ if (mathlevel .eq. 0) .and. -
(f$search("SYS$SHARE:FORTRAN$MTHRTL-VMS.EXE") .nes. "")
$ then
$ oldmath = 1
$ define/nolog mthrtl fortran$mthrtl-vms
$ define/nolog vmthrtl fortran$vmthrtl-vms
$ type sys$input
NOTE: You have currently DEC Fortran V6.0 or later installed, but the
old versions of the Math libraries are still available on your
system. We will link C-Kermit with these older, pre-Fortan V6
libraries so that it will run on systems which don't have Fortran
V6 installed. C-Kermit does not use any features of the new
libraries.
You will receive %LINK-I-IDMISMCH informational messages during
linking, but these can be safely ignored.
$ endif
$!
$! Look for the compiler used
$!
$ if p2.nes.""
$ then
$ p2 = f$edit(p2,"UPCASE")
$ if f$locate("G",p2).ne.f$length(p2) then goto gnuc
$ if f$locate("V",p2).ne.f$length(p2) then goto vaxc
$ if f$locate("D",p2).ne.f$length(p2) then goto decc
$ endif
$!
$DECC:
$ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").nes.""
$ then
$ say "DECC compiler found"
$ cc_ver = "DECC"
$ ccopt = "/decc"+ccopt
$ goto compile
$ endif
$!
$VAXC:
$ if f$search("SYS$SYSTEM:VAXC.EXE").nes.""
$ then
$ say "VAXC compiler found, checking version..."
$ cc_ver = "VAXC023"
$ if f$search("sys$library:fscndef.h") .nes. "" then cc_ver = "VAXC024"
$ if f$search("sys$library:ppl$routines.h") .nes. "" then cc_ver = "VAXC030"
$ if f$search("sys$library:xabrudef.h") .nes. "" then cc_ver = "VAXC031"
$ if (cc_ver .nes. "VAXC031")
$ then
$ type sys$input
WARNING: Your system has an older version of the C compiler.
VMS C-Kermit was designed to be compiled under VAX C V3.1 or
newer or DEC C V1.3 or newer. It has not been verified to
build properly under older compilers, athough pre-built C-Kermit
versions should run properly. Please exercise caution until you
have verified proper operation.
$ endif
$! If both DECC and VAXC are in this system, then use the /vaxc qualifier
$ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").nes."" then -
ccopt = "/vaxc" + ccopt
$ goto compile
$ endif
$!
$GNUC:
$ if f$trnlnm("GNU_CC").nes.""
$ then
$ say "GNUC compiler found"
$ CC="GCC"
$ cc_ver="GNUC"+f$trnlnm("GNU_CC_VERSION")
$!
$Version_Loop: ! convert period separator to underscore
$ dot = f$locate(".",cc_ver)
$ if dot .eq. f$length(cc_ver) then goto End_Version_Loop
$ cc_ver[dot,1] := "_"
$ goto Version_Loop
$End_Version_Loop:
$!
$ if debug.eq.0 then ccopt = "/nolist/optimize=4"
$ write optf "gnu_cc:[000000]gcclib.olb/lib"
$ write aoptf "gnu_cc:[000000]gcclib.olb/lib"
$ noshare=1
$ goto compile
$ endif
$!
$! No compiler found - Warning and Exit
$!
$ close optf
$ close aoptf
$ type sys$input
FATAL: No C-compiler found - Can't build Kermit on this system.
$ goto The_exit
$!
$COMPILE:
$!
$! say "C compiler: ''cc_ver', options: ''ccopt', command: ''CC'"
$ if f$getsyi("HW_MODEL").ge.1024
$ then
$ say f$fao("!/Operating System: OpenVMS(tm) Alpha!/")
$ alpha=1
$! alpha this is only option...recover a bit of DCL real estate
$ ccopt = ccopt-"/decc"
$! say ccopt
$ else
$ say f$fao("!/Operating System: OpenVMS(tm) VAX(tm)!/")
$ endif
$!
$! cc_ver could start with VAXC; DECC; or GNUC
$!
$! The VMS linker default is to link /SYSSHR
$!
$! C-Kermit default is to link w/ shareable libraries on Alpha
$! and w/ object libraries on VAX. For backwards compatibility, use
$! p1 "S", to use shareable libraries on VAX, and p5 "/NOSYSSHARE" to
$! use object libraries on Alpha.
$!
$ if (cc_ver.gts."DECC" .and. f$search("sys$share:vaxcrtl.exe").eqs."") .or. -
(alpha.eq.0 .and. vms_ver .lts. "VMS_V52") .or. -
(alpha.eq.0 .and. noshare.eq.1) .or. -
(alpha.eq.1 .and. (f$locate("/NOSYSS",p5).ne.f$length(p5)) )
$ then
$ noshare = 1
$ share_opt = "NOVMSSHARE"
$ share_text = "system OLBs and"
$ else
$ noshare = 0
$ share_opt = "VMSSHARE"
$ share_text = "shareable libs and"
$ endif
$!
$! Find out which network to use
$!
$! Type:
$! net_option = "NONET"
$! before running this procedure to build C-Kermit without TCP/IP network
$! support on a system that has a TCP/IP package installed, or use the
$! N command-line option to force NONET.
$!
$ if f$type(net_option) .eqs. "STRING"
$ then
$ say "Network option override = ''net_option'"
$ net_option = f$edit(net_option,"UPCASE")
$ goto Net_Done
$ endif
$!
$ net_option = "NONET"
$ if f$search("MULTINET:MULTINET_SOCKET_LIBRARY.EXE") .nes. ""
$ then
$ net_option = "MULTINET"
$ else
$ if f$search("TCPWARE:UCX$IPC.OLB") .nes. ""
$ then
$ net_option = "TCPWARE"
$ else
$ if f$search("TWG$TCP:[NETDIST.LIB]TWGLIB.OLB") .nes. ""
$ then
$ net_option = "WINTCP"
$ else
$ if f$search("SYS$LIBRARY:UCX$ACCESS_SHR.EXE") .nes. ""
$ then
$ net_option = "DEC_TCPIP"
$ else
$ if f$search(f$parse(f$trnlnm("LIBCMU"),-
"cmuip_root:[syslib]libcmu.olb")) .nes. ""
$ then
$ net_option = "CMU_TCPIP"
$ endif ! CMU TCP/IP
$ endif ! DEC TCP/IP
$ endif ! Wollongong
$ endif ! Process
$ endif ! MultiNet
$!
$!
$ Net_Done:
$!
$ if f$type(net_option) .eqs. ""
$ then
$ net_option = "NONET"
$ endif
$!
$ if net_option .eqs. "NONET"
$ then
$ net_name = "no"
$ else
$ if net_option .eqs. "MULTINET"
$ then
$ net_name = "MultiNet"
$ write optf "multinet:multinet_socket_library.exe/share"
$ else
$ if net_option .eqs. "TCPWARE"
$ then
$ net_name = "Process Software TCPware"
$ write optf "tcpware:ucx$ipc.olb/library"
$ net_option = "TCPWARE,DEC_TCPIP"
$ else
$ if net_option .eqs. "WINTCP"
$ then
$ net_name = "WIN/TCP"
$ define/nolog vaxc$include twg$tcp:[netdist.include],sys$library
$ define/nolog sys twg$tcp:[netdist.include.sys]
$ write optf "twg$common:[netdist.lib]twglib.olb/library"
$ else
$ if net_option .eqs. "DEC_TCPIP"
$ then
$ net_name = "DEC TCP/IP Services for OpenVMS(tm)"
$ if alpha.eq.0 then write optf "sys$library:ucx$ipc.olb/library"
$ else
$ if net_option .eqs. "CMU_TCPIP"
$ then
$ net_name = "CMU-OpenVMS/IP"
$ libcmu = f$search(f$parse(f$trnlnm("LIBCMU"), -
"cmuip_root:[syslib]libcmu.olb"))
$ write optf "''libcmu'/library"
$ else
$ say "Unknown net_option: ''net_option'"
$ net_option = "NONET"
$ net_name = "no"
$ endif ! None
$ endif ! CMU TCP/IP
$ endif ! DEC TCP/IP
$ endif ! Wollongong
$ endif ! Process
$ endif ! MultiNet
$!
$!
$! Now specify the appropriate VAXCRTL
$! then close the option-files
$!
$ if (noshare.eq.1) .and. -
((cc_ver.gts."DECC") .or. (net_option .eqs. "CMU_TCPIP"))
$ then
$ write optf "sys$share:vaxcrtl.olb/lib"
$ write aoptf "sys$share:vaxcrtl.olb/lib"
$ endif
$!
$ if (noshare.eq.0) .and. -
((cc_ver.gts."DECC") .or. (net_option .eqs. "CMU_TCPIP"))
$ then
$ write optf "sys$share:vaxcrtl.exe/share"
$ write aoptf "sys$share:vaxcrtl.exe/share"
$ endif
$!
$! Close the option-files
$!
$ close optf
$ close aoptf
$!
$! Set compile prefix as a function of the TCP/IP stack for DEC C. The
$! /PREFIX_LIBRARY_ENTRIES business is needed for MultiNet 3.2 and earlier,
$! but is not needed for 4.0. Not sure about WINTCP. Not sure where the
$! cutoff is. CAUTION: There are limits on how long statements can be, and
$! how long string constants can be, and how long strings can be, even when
$! formed as below, by repeated concatenation. These limits start out at
$! 254 or so, and go up to maybe 1023. Don't add anything to these
$! strings (spaces, etc) that doesn't need to be there.
$!
$! also, DEC C and VMS >= 7.0 has its own ioctl
$!
$ if cc_ver.eqs."DECC"
$ then
$ if (net_option .eqs. "MULTINET") .or. (net_option .eqs. "WINTCP")
$ then
$ say "Adding /PREFIX for DECC and Multinet.."
$ ccopt = ccopt + "/PREF=(AL,EX=("
$ ccopt = ccopt + "accept,bind,connect,listen,select,"
$ ccopt = ccopt + "socket,recv,send,sendmsg,getservbyname,"
$ ccopt = ccopt + "getpeername,getsockname,getsockopt,setsockopt,"
$ ccopt = ccopt + "gethostbyname,gethostbyaddr,inet_addr,"
$ ccopt = ccopt + "inet_ntoa,htons,ntohs))"
$ else
$ if vms_ver .ges."VMS_V70" .and. -
f$locate("DEC_TCPIP",net_option) .ne. f$length(net_option)
$ then
$ ccopt = ccopt + "/PREFIX_LIBRARY_ENTRIES=(AL,EX=ioctl)"
$ else
$ ccopt = ccopt + "/PREFIX_LIBRARY_ENTRIES=(ALL_ENTRIES)"
$ endif
$ endif
$ endif
$!
$! CFLAGS equivalent - local site options are added here
$!
$ if vmsv7 then cln_def = cln_def+",VMSV70"
$!
$ ccdef="/def=(''net_option',''cc_ver',''vms_ver',''share_opt'"+-
"''cln_def')''cln_qua'"
$! say "length of ccopt is ''f$length(ccopt)'"
$! say "length of ccdef is ''f$length(ccdef)'"
$ ccopt = ccopt + ccdef
$ mmscln = f$length(ccopt)
$ if make .nes "" .and. mmscln .ge. mmsclm
$ then
$say "Warning: The 'ccopt' command is ''mmscln' characters which could cause the"
$say " ''make' procedure to fail. You may continue on by restarting"
$say " with the either O (over-ride) flag or M (no MM_) flag set."
$ goto The_exit
$ endif
$!
$! To facilitate batch mode compilation, append /NOLIST and /NOMAP to
$! the compiler and linker options (not needed for INTERACTIVE or MMx)
$!
$ if (f$mode() .eqs. "BATCH") .and. (make .eqs. "")
$ then
$ ccopt = ccopt + "/NOLIST"
$ if debug .eq. 0 then lopt = lopt + "/NOMAP"
$ endif
$!
$ say "Compiling Kermit sources ..."
$ set noon
$ tempsymb = "CCOPT = ""''ccopt'"""
$ write/symbol sys$output tempsymb
$ say "Kermit Source Path = ''f$trnlnm(""KSP"")'"
$ set on
$ say -
"Building WERMIT with ''share_text' ''net_name' network support at ''f$time()"
$ if Make.eqs.""
$ then
$!
$! Build the thing plain
$!
$ say ""
$ show symb ccopt
$ show symb lopt
$ say ""
$ say " Compiling CKWART at ''f$time()"
$!
$! Note the use of single quotes (') apostrophe than double ('') in quoting
$! CCOPT, to prevent CCOPT from being expanded prior to the MAKE call, which
$! could result in the string being too long. Using ' rather than '' forces
$! evaluation of CCOPT to occure in the MAKE routine itself.
$!
$ CALL MAKE ckwart.OBJ "'CC' 'CCOPT' KSP:ckwart" -
KSP:ckwart.c
$ say " Linking CKWART at ''f$time()"
$!
$ call make ckwart.exe "LINK ckwart,aux.opt/opt/NOMAP" ckwart.obj
$ say " Running CKWART at ''f$time()"
$ ckwart = "$" +f$parse("CKWART.EXE",,,"DEVICE") +-
f$parse("CKWART.EXE",,,"DIRECTORY") + "CKWART"
$ CALL MAKE ckcpro.c "ckwart KSP:ckcpro.w ckcpro.c" -
" KSP:ckcpro.w "
$ say f$fao("!/ Compiling WERMIT files at ''f$time()")
$!
$! Note how MAKE args are combined in quotes to get around the limitation
$! on the number of arguments to a DCL procedure.
$!
$ CALL MAKE ckcmai.OBJ "'CC' 'CCOPT' KSP:ckcmai" -
KSP:ckcmai.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckcsym.h" -
"KSP:ckcasc.h KSP:ckcnet.h KSP:ckcsig.h" -
"KSP:ckuusr.h KSP:ckvioc.h KSP:ckucmd.h"
$ CALL MAKE ckcfn2.OBJ "'CC' 'CCOPT' KSP:ckcfn2" -
KSP:ckcfn2.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckcsym.h" -
"KSP:ckcasc.h KSP:ckcxla.h KSP:ckuxla.h"
$ CALL MAKE ckcfn3.OBJ "'CC' 'CCOPT' KSP:ckcfn3" -
KSP:ckcfn3.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckcsym.h" -
"KSP:ckcasc.h KSP:ckcxla.h KSP:ckuxla.h"
$ CALL MAKE ckcfns.OBJ "'CC' 'CCOPT' KSP:ckcfns" -
KSP:ckcfns.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckcsym.h" -
"KSP:ckcasc.h KSP:ckcxla.h KSP:ckuxla.h"
$ CALL MAKE ckcpro.OBJ "'CC' 'CCOPT'/INCL=KSP: ckcpro" -
ckcpro.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckcasc.h" -
"KSP:ckcsym.h KSP:ckcnet.h KSP:ckvioc.h"
$ CALL MAKE ckucmd.OBJ "'CC' 'CCOPT' KSP:ckucmd" -
KSP:ckucmd.c -
"KSP:ckcasc.h KSP:ckucmd.h KSP:ckcdeb.h" -
"KSP:ckcsym.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckucmd.h"
$ CALL MAKE ckudia.OBJ "'CC' 'CCOPT' KSP:ckudia" -
KSP:ckudia.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckucmd.h" -
"KSP:ckcasc.h KSP:ckcsig.h KSP:ckcnet.h" -
"KSP:ckcsym.h KSP:ckuusr.h KSP:ckvioc.h"
$ CALL MAKE ckuscr.OBJ "'CC' 'CCOPT' KSP:ckuscr" -
KSP:ckuscr.c -
"KSP:ckcker.h KSP:ckcdeb.h KSP:ckcasc.h" -
"KSP:ckcsig.h KSP:ckcsym.h KSP:ckuusr.h" -
"KSP:ckcnet.h KSP:ckvioc.h KSP:ckucmd.h"
$ CALL MAKE ckuus2.OBJ "'CC' 'CCOPT' KSP:ckuus2" -
KSP:ckuus2.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckuxla.h" -
"KSP:ckcasc.h KSP:ckcsym.h KSP:ckcnet.h" -
"KSP:ckvioc.h"
$ CALL MAKE ckuus3.OBJ "'CC' 'CCOPT' KSP:ckuus3" -
KSP:ckuus3.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckuxla.h" -
"KSP:ckcasc.h KSP:ckcnet.h KSP:ckcsym.h" -
"KSP:ckvioc.h"
$ CALL MAKE ckuus4.OBJ "'CC' 'CCOPT' KSP:ckuus4" -
KSP:ckuus4.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckuxla.h" -
"KSP:ckcasc.h KSP:ckcnet.h KSP:ckcsym.h" -
"KSP:ckuver.h KSP:ckvioc.h"
$ CALL MAKE ckuus5.OBJ "'CC' 'CCOPT' KSP:ckuus5" -
KSP:ckuus5.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckcsym.h" -
"KSP:ckcasc.h KSP:ckcnet.h KSP:ckvioc.h" -
"KSP:ckuxla.h"
$ CALL MAKE ckuus6.OBJ "'CC' 'CCOPT' KSP:ckuus6" -
KSP:ckuus6.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcasc.h KSP:ckcsym.h" -
"KSP:ckcxla.h KSP:ckcnet.h KSP:ckvioc.h" -
"KSP:ckuxla.h"
$ CALL MAKE ckuus7.OBJ "'CC' 'CCOPT' KSP:ckuus7" -
KSP:ckuus7.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckuxla.h" -
"KSP:ckcasc.h KSP:ckcnet.h KSP:ckcsym.h" -
"KSP:ckvioc.h"
$ CALL MAKE ckuusr.OBJ "'CC' 'CCOPT' KSP:ckuusr" -
KSP:ckuusr.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckuxla.h" -
"KSP:ckcasc.h KSP:ckcnet.h KSP:ckcsym.h" -
"KSP:ckvioc.h"
$ CALL MAKE ckuusx.OBJ "'CC' 'CCOPT' KSP:ckuusx" -
KSP:ckuusx.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcxla.h KSP:ckcsym.h" -
"KSP:ckcasc.h KSP:ckvvms.h KSP:ckuxla.h"
$ CALL MAKE ckuusy.OBJ "'CC' 'CCOPT' KSP:ckuusy" -
KSP:ckuusy.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckuusr.h" -
"KSP:ckcdeb.h KSP:ckcasc.h KSP:ckcsym.h" -
"KSP:ckcnet.h KSP:ckvioc.h"
$ CALL MAKE ckuxla.OBJ "'CC' 'CCOPT' KSP:ckuxla" -
KSP:ckuxla.c -
"KSP:ckucmd.h KSP:ckcker.h KSP:ckcdeb.h" -
"KSP:ckcxla.h KSP:ckuxla.h KSP:ckcsym.h"
$ CALL MAKE ckvcon.OBJ "'CC' 'CCOPT' KSP:ckvcon" -
KSP:ckvcon.c -
"KSP:ckcdeb.h KSP:ckcasc.h KSP:ckcker.h" -
"KSP:ckcnet.h KSP:ckvvms.h KSP:ckcxla.h" -
"KSP:ckucmd.h KSP:ckvioc.h KSP:ckuxla.h"
$ CALL MAKE ckcnet.OBJ "'CC' 'CCOPT' KSP:ckcnet" -
KSP:ckcnet.c -
"KSP:ckcdeb.h KSP:ckcker.h KSP:ckcnet.h" -
"KSP:ckcsym.h KSP:ckuusr.h KSP:ckcsig.h" -
"KSP:ckvioc.h KSP:ckucmd.h"
$ CALL MAKE ckvfio.OBJ "'CC' 'CCOPT' KSP:ckvfio" -
KSP:ckvfio.c -
"KSP:ckcdeb.h KSP:ckuver.h KSP:ckcasc.h" -
"KSP:ckcker.h KSP:ckvvms.h"
$ CALL MAKE ckvtio.OBJ "'CC' 'CCOPT' KSP:ckvtio" -
KSP:ckvtio.c -
"KSP:ckcdeb.h KSP:ckcnet.h KSP:ckuver.h" -
"KSP:ckcasc.h KSP:ckcker.h KSP:ckvvms.h" -
"KSP:ckvioc.h"
$ CALL MAKE ckvioc.OBJ "'CC' 'CCOPT' KSP:ckvioc" -
KSP:ckvioc.c -
"KSP:ckvioc.h KSP:ckcdeb.h"
$ CALL MAKE ckusig.OBJ "'CC' 'CCOPT' KSP:ckusig" -
KSP:ckusig.c -
"KSP:ckcdeb.h KSP:ckcasc.h KSP:ckcker.h" -
"KSP:ckcnet.h KSP:ckuusr.h KSP:ckcsig.h" -
"KSP:ckcsym.h KSP:ckvioc.h KSP:ckucmd.h"
$ say " Linking WERMIT at ''f$time()"
$ CALL MAKE wermit.exe "LINK/exe=wermit.exe 'lopt' kermit.opt/opt" *.obj
$ say "Done building WERMIT at ''f$time()"
$ say f$fao("!/Building CKVCVT at ''f$time()")
$ say " Compiling CKVCVT at ''f$time()"
$ CALL MAKE ckvcvt.OBJ "'CC' 'CCOPT' KSP:ckvcvt" -
KSP:ckvcvt.c
$ say " Linking CKVCVT at ''f$time()"
$ CALL MAKE ckvcvt.exe "LINK 'lopt' ckvcvt.obj,aux.opt/opt" ckvcvt.obj
$ write sys$output "Done building CKVCVT at ''f$time()"
$ else
$! ccopt gets _very_ loooong. Shorten the MMS command line by prepending the
$! CCFLAGS macro to the mms file. Note that the CC command line may now be
$! "at risk." The OpenVMS User's Manual states:
$!
$! Include no more than 127 elements (parameters, qualifiers, and
$! qualifier values) in each command line.
$!
$! Each element in a command must not exceed 255 characters.
$! The entire command must not exceed 1024 characters after all symbols
$! and lexical functions are converted to their values.
$!
$ open/write mmstemp ccflags.mms
$ ccopt = "CCFLAGS="+ccopt
$ write/symbol mmstemp ccopt
$ close mmstemp
$ 'Make'/des=KSP:ckvker.mms/ignore=warn -
/macro=(cc="''CC'", linkflags="''lopt'")
$ endif
$ if (noshare .eq. 1)
$ then
$ type sys$input
A link warning about an undefined symbol LIB$FIND_IMAGE_SYMBOL means
you should link with the shareable library; add S to first parameter
of CKVKER (and, if P5 is /NOSYSSHARE, omit that) and relink.
$ endif
$ if f$search("kermit.opt") .nes. "" then purge kermit.opt
$ if f$search("aux.opt") .nes. "" then purge aux.opt
$ if f$search("ccflags.mms") .nes. "" then purge ccflags.mms
$ if f$search("wermit.exe") .nes. "" then -
set file/protection=(g:re,w:re) wermit.exe
$ if f$search("ckvcvt.exe") .nes. "" then -
set file/protection=(g:re,w:re) ckvcvt.exe
$ say "Kermit build completed"
$ goto The_exit
$!
$CLEAN:
$ if f$search("ckwart.exe") .nes. "" then delete/noconf/log ckwart.exe;*
$ if f$search("*.obj") .nes. "" then delete/noconf/log *.obj;*
$ if f$search("ckcpro.c") .nes. "" then delete/noconf/log ckcpro.c;*
$ say "Cleanup done"
$ say ""
$ goto The_exit
$!
$CY_exit:
$ $status = %x10000004
$!
$The_exit:
$ if f$trnlnm("KSP") .nes. "" then deassign KSP
$ if oldmath.eq.1 then deass mthrtl
$ if oldmath.eq.1 then deass vmthrtl
$!
$ x = f$verify(save_verify_procedure,save_verify_image)
$ exit $status
$!
$Bad_param:
$ write sys$output "ERROR: The first parameter should not include commas"
$ write sys$output " P1 = "+ P1
$ write sys$output " you may have used commas instead of spaces to
$ write sys$output " seperate parameters"
$Exit
$!
$MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
$! P1 = What we are trying to make
$! P2 = Command to make it
$! P3 - P8 What it depends on
$
$ If F$Search(P1) .Eqs. "" Then Goto Makeit
$ Time = F$CvTime(F$File(P1,"RDT"))
$arg=3
$Make_Loop:
$ Argument = P'arg
$ If Argument .Eqs. "" Then Goto Make_exit
$ El=0
$Loop2:
$ File = F$Element(El," ",Argument)
$ If File .Eqs. " " Then Goto Endl
$ AFile = ""
$Loop3:
$ OFile = AFile
$ AFile = F$Search(File)
$ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
$ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
$ Goto Loop3
$NextEL:
$ El = El + 1
$ Goto Loop2
$EndL:
$ arg=arg+1
$ If arg .Le. 8 Then Goto Make_Loop
$ Goto Make_Exit
$
$Makeit:
$ say P2
$ 'P2'
$Make_Exit:
$ exit
$ENDSUBROUTINE
$!
$warning_exit:
$ status = $status
$ sev = $severity
$ set noon
$ xtext = f$message(status)
$ say "Warning:"
$ say "''xtext'"
$ goto the_exit
$!
|