1 $! make libz under VMS written by
4 $! In case of problems with the install you might contact me at
5 $! zinser@zinser.no-ip.info(preferred) or
6 $! zinser@sysdev.deutsche-boerse.com (work)
8 $! Make procedure history for Zlib
10 $!------------------------------------------------------------------------------
12 $! 0.01 20060120 First version to receive a number
13 $! 0.02 20061008 Adapt to new Makefile.in
14 $! 0.03 20091224 Add support for large file check
15 $! 0.04 20100110 Add new gzclose, gzlib, gzread, gzwrite
17 $ on error then goto err_exit
21 $ tmpnam = "temp_" + f$getjpi("","pid")
22 $ tt = tmpnam + ".txt"
25 $ define/nolog tconfig 'th'
31 $! Setup variables holding "config" information
36 $ v_string = "ZLIB_VERSION"
41 $ aconf_in_file = "config.hin"
42 $ conf_check_string = ""
44 $ optfile = name + ".opt"
46 $ axp = f$getsyi("HW_MODEL").ge.1024 .and. f$getsyi("HW_MODEL").lt.4096
48 $ whoami = f$parse(f$enviornment("Procedure"),,,,"NO_CONCEAL")
49 $ mydef = F$parse(whoami,,,"DEVICE")
50 $ mydir = f$parse(whoami,,,"DIRECTORY") - "]["
51 $ myproc = f$parse(whoami,,,"Name") + f$parse(whoami,,,"type")
55 $ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"
56 $ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"
61 $ open/write topt tmp.opt
62 $ open/write optf 'optfile'
66 $! Look for the compiler used
68 $ gosub check_compiler
73 $ ccopt = "/prefix=all" + ccopt
74 $ if f$trnlnm("SYS") .eqs. ""
78 $ define sys sys$library:
80 $ ccopt = "/decc" + ccopt
81 $ define sys decc$library_include:
85 $ if its_vaxc .or. its_gnuc
87 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
90 $! Build a fake configure input header
92 $ open/write conf_hin config.hin
93 $ write conf_hin "#undef _LARGEFILE64_SOURCE"
99 $ fname = f$element(i,"#",aconf_in_file)
100 $ if fname .eqs. "#" then goto AMISS_ERR
101 $ if f$search(fname) .eqs. ""
106 $ open/read/err=aconf_err aconf_in 'fname'
107 $ open/write aconf zlibdefs.h
109 $ read/end_of_file=aconf_exit aconf_in line
110 $ work = f$edit(line, "compress,trim")
111 $ if f$extract(0,6,work) .nes. "#undef"
115 $ cdef = f$element(1," ",work)
120 $ write aconf "#define VMS 1"
121 $ write aconf "#include <unistd.h>"
122 $ write aconf "#include <unixio.h>"
123 $ write aconf "#ifdef _LARGEFILE"
124 $ write aconf "#define off64_t __off64_t"
125 $ write aconf "#define fopen64 fopen"
126 $ write aconf "#define fseeko64 fseeko"
127 $ write aconf "#define lseek64 lseek"
128 $ write aconf "#define ftello64 ftell"
129 $ write aconf "#endif"
133 $! Build the thing plain or with mms
135 $ write sys$output "Compiling Zlib sources ..."
138 $ dele example.obj;*,minigzip.obj;*
139 $ CALL MAKE adler32.OBJ "CC ''CCOPT' adler32" -
140 adler32.c zlib.h zconf.h
141 $ CALL MAKE compress.OBJ "CC ''CCOPT' compress" -
142 compress.c zlib.h zconf.h
143 $ CALL MAKE crc32.OBJ "CC ''CCOPT' crc32" -
144 crc32.c zlib.h zconf.h
145 $ CALL MAKE deflate.OBJ "CC ''CCOPT' deflate" -
146 deflate.c deflate.h zutil.h zlib.h zconf.h
147 $ CALL MAKE gzclose.OBJ "CC ''CCOPT' gzclose" -
148 gzclose.c zutil.h zlib.h zconf.h
149 $ CALL MAKE gzio.OBJ "CC ''CCOPT' gzio" -
150 gzio.c zutil.h zlib.h zconf.h
151 $ CALL MAKE gzlib.OBJ "CC ''CCOPT' gzlib" -
152 gzlib.c zutil.h zlib.h zconf.h
153 $ CALL MAKE gzread.OBJ "CC ''CCOPT' gzread" -
154 gzread.c zutil.h zlib.h zconf.h
155 $ CALL MAKE gzwrite.OBJ "CC ''CCOPT' gzwrite" -
156 gzwrite.c zutil.h zlib.h zconf.h
157 $ CALL MAKE infback.OBJ "CC ''CCOPT' infback" -
158 infback.c zutil.h inftrees.h inflate.h inffast.h inffixed.h
159 $ CALL MAKE inffast.OBJ "CC ''CCOPT' inffast" -
160 inffast.c zutil.h zlib.h zconf.h inffast.h
161 $ CALL MAKE inflate.OBJ "CC ''CCOPT' inflate" -
162 inflate.c zutil.h zlib.h zconf.h infblock.h
163 $ CALL MAKE inftrees.OBJ "CC ''CCOPT' inftrees" -
164 inftrees.c zutil.h zlib.h zconf.h inftrees.h
165 $ CALL MAKE trees.OBJ "CC ''CCOPT' trees" -
166 trees.c deflate.h zutil.h zlib.h zconf.h
167 $ CALL MAKE uncompr.OBJ "CC ''CCOPT' uncompr" -
168 uncompr.c zlib.h zconf.h
169 $ CALL MAKE zutil.OBJ "CC ''CCOPT' zutil" -
170 zutil.c zutil.h zlib.h zconf.h
171 $ write sys$output "Building Zlib ..."
172 $ CALL MAKE libz.OLB "lib/crea libz.olb *.obj" *.OBJ
173 $ write sys$output "Building example..."
174 $ CALL MAKE example.OBJ "CC ''CCOPT' example" -
175 example.c zlib.h zconf.h
176 $ call make example.exe "LINK example,libz.olb/lib" example.obj libz.olb
177 $ if f$search("x11vms:xvmsutils.olb") .nes. ""
179 $ write sys$output "Building minigzip..."
180 $ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" -
181 minigzip.c zlib.h zconf.h
182 $ call make minigzip.exe -
183 "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" -
184 minigzip.obj libz.olb
188 $ write sys$output "Make ''name' ''version' with ''Make' "
192 $! Alpha gets a shareable image
197 $ write sys$output "Creating libzshr.exe"
198 $ call anal_obj_axp modules.opt _link.opt
201 $ open/append optf modules.opt
202 $ write optf "case_sensitive=YES"
205 $ LINK_'lopts'/SHARE=libzshr.exe modules.opt/opt,_link.opt/opt
207 $ write sys$output "Zlib build completed"
210 $ write sys$output "C compiler required to build ''name'"
213 $ set message/facil/ident/sever/text
216 $ close/nolog conf_hin
217 $ close/nolog aconf_in
223 $ write sys$output "Exiting..."
227 $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
229 $! P1 = What we are trying to make
230 $! P2 = Command to make it
231 $! P3 - P8 What it depends on
233 $ If F$Search(P1) .Eqs. "" Then Goto Makeit
234 $ Time = F$CvTime(F$File(P1,"RDT"))
238 $ If Argument .Eqs. "" Then Goto Exit
241 $ File = F$Element(El," ",Argument)
242 $ If File .Eqs. " " Then Goto Endl
246 $ AFile = F$Search(File)
247 $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
248 $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
255 $ If arg .Le. 8 Then Goto Loop
260 $ write sys$output P2
264 $ If V Then Set Verify
266 $!------------------------------------------------------------------------------
268 $! Check command line options and set symbols accordingly
270 $!------------------------------------------------------------------------------
272 $! 0.01 20041206 First version to receive a number
273 $! 0.02 20060126 Add new "HELP" target
279 $ cparm = f$edit(p'i',"upcase")
281 $! Check if parameter actually contains something
283 $ if f$edit(cparm,"trim") .nes. ""
285 $ if cparm .eqs. "DEBUG"
287 $ ccopt = ccopt + "/noopt/deb"
288 $ lopts = lopts + "/deb"
290 $ if f$locate("CCOPT=",cparm) .lt. f$length(cparm)
292 $ start = f$locate("=",cparm) + 1
293 $ len = f$length(cparm) - start
294 $ ccopt = ccopt + f$extract(start,len,cparm)
295 $ if f$locate("AS_IS",f$edit(ccopt,"UPCASE")) .lt. f$length(ccopt) -
298 $ if cparm .eqs. "LINK" then linkonly = true
299 $ if f$locate("LOPTS=",cparm) .lt. f$length(cparm)
301 $ start = f$locate("=",cparm) + 1
302 $ len = f$length(cparm) - start
303 $ lopts = lopts + f$extract(start,len,cparm)
305 $ if f$locate("CC=",cparm) .lt. f$length(cparm)
307 $ start = f$locate("=",cparm) + 1
308 $ len = f$length(cparm) - start
309 $ cc_com = f$extract(start,len,cparm)
310 if (cc_com .nes. "DECC") .and. -
311 (cc_com .nes. "VAXC") .and. -
312 (cc_com .nes. "GNUC")
314 $ write sys$output "Unsupported compiler choice ''cc_com' ignored"
315 $ write sys$output "Use DECC, VAXC, or GNUC instead"
317 $ if cc_com .eqs. "DECC" then its_decc = true
318 $ if cc_com .eqs. "VAXC" then its_vaxc = true
319 $ if cc_com .eqs. "GNUC" then its_gnuc = true
322 $ if f$locate("MAKE=",cparm) .lt. f$length(cparm)
324 $ start = f$locate("=",cparm) + 1
325 $ len = f$length(cparm) - start
326 $ mmks = f$extract(start,len,cparm)
327 $ if (mmks .eqs. "MMK") .or. (mmks .eqs. "MMS")
331 $ write sys$output "Unsupported make choice ''mmks' ignored"
332 $ write sys$output "Use MMK or MMS instead"
335 $ if cparm .eqs. "HELP" then gosub bhelp
341 $!------------------------------------------------------------------------------
343 $! Look for the compiler used
346 $! 0.01 20040223 First version to receive a number
347 $! 0.02 20040229 Save/set value of decc$no_rooted_search_lists
348 $! 0.03 20060202 Extend handling of GNU C
349 $! 0.04 20090402 Compaq -> hp
351 $ if (.not. (its_decc .or. its_vaxc .or. its_gnuc))
353 $ its_decc = (f$search("SYS$SYSTEM:DECC$COMPILER.EXE") .nes. "")
354 $ its_vaxc = .not. its_decc .and. (F$Search("SYS$System:VAXC.Exe") .nes. "")
355 $ its_gnuc = .not. (its_decc .or. its_vaxc) .and. (f$trnlnm("gnu_cc") .nes. "")
358 $! Exit if no compiler available
360 $ if (.not. (its_decc .or. its_vaxc .or. its_gnuc))
365 $ write sys$output "CC compiler check ... hp C"
366 $ if f$trnlnm("decc$no_rooted_search_lists") .nes. ""
368 $ dnrsl = f$trnlnm("decc$no_rooted_search_lists")
370 $ define/nolog decc$no_rooted_search_lists 1
372 $ if its_vaxc then write sys$output "CC compiler check ... VAX C"
375 $ write sys$output "CC compiler check ... GNU C"
376 $ if f$trnlnm(topt) then write topt "gnu_cc:[000000]gcclib.olb/lib"
377 $ if f$trnlnm(optf) then write optf "gnu_cc:[000000]gcclib.olb/lib"
380 $ if f$trnlnm(topt) then write topt "sys$share:vaxcrtl.exe/share"
381 $ if f$trnlnm(optf) then write optf "sys$share:vaxcrtl.exe/share"
385 $!------------------------------------------------------------------------------
387 $! If MMS/MMK are available dump out the descrip.mms if required
390 $ write sys$output "Creating descrip.mms..."
392 $ open/append out descrip.mms
393 $ copy sys$input: out
395 # descrip.mms: MMS description file for building zlib on VMS
396 # written by Martin P.J. Zinser
397 # <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com>
399 OBJS = adler32.obj, compress.obj, crc32.obj, gzclose.obj, gzio.obj, gzlib.obj\
400 gzread.obj, gzwrite.obj, uncompr.obj, infback.obj\
401 deflate.obj, trees.obj, zutil.obj, inflate.obj, \
402 inftrees.obj, inffast.obj
405 $ write out "CFLAGS=", ccopt
406 $ write out "LOPTS=", lopts
407 $ copy sys$input: out
410 all : example.exe minigzip.exe libz.olb
411 @ write sys$output " Example applications available"
413 libz.olb : libz.olb($(OBJS))
414 @ write sys$output " libz available"
416 example.exe : example.obj libz.olb
417 link $(LOPTS) example,libz.olb/lib
419 minigzip.exe : minigzip.obj libz.olb
420 link $(LOPTS) minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib
423 delete *.obj;*,libz.olb;*,*.opt;*,*.exe;*
426 # Other dependencies.
427 adler32.obj : adler32.c zutil.h zlib.h zconf.h
428 compress.obj : compress.c zlib.h zconf.h
429 crc32.obj : crc32.c zutil.h zlib.h zconf.h
430 deflate.obj : deflate.c deflate.h zutil.h zlib.h zconf.h
431 example.obj : example.c zlib.h zconf.h
432 gzclose.obj : gzclose.c zutil.h zlib.h zconf.h
433 gzio.obj : gzio.c zutil.h zlib.h zconf.h
434 gzlib.obj : gzlib.c zutil.h zlib.h zconf.h
435 gzread.obj : gzread.c zutil.h zlib.h zconf.h
436 gzwrite.obj : gzwrite.c zutil.h zlib.h zconf.h
437 inffast.obj : inffast.c zutil.h zlib.h zconf.h inftrees.h inffast.h
438 inflate.obj : inflate.c zutil.h zlib.h zconf.h
439 inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h
440 minigzip.obj : minigzip.c zlib.h zconf.h
441 trees.obj : trees.c deflate.h zutil.h zlib.h zconf.h
442 uncompr.obj : uncompr.c zlib.h zconf.h
443 zutil.obj : zutil.c zutil.h zlib.h zconf.h
444 infback.obj : infback.c zutil.h inftrees.h inflate.h inffast.h inffixed.h
448 $!------------------------------------------------------------------------------
450 $! Read list of core library sources from makefile.in and create options
451 $! needed to build shareable image
454 $ open/read min makefile.in
455 $ open/write mod modules.opt
456 $ src_check = "OBJC ="
458 $ read/end=mrdone min rec
459 $ if (f$extract(0,6,rec) .nes. src_check) then goto mrloop
460 $ rec = rec - src_check
462 $ if (f$element(1,"\",rec) .eqs. "\") then goto mrdone
464 $ read/end=mrdone min rec
466 $ if (f$element(1,"\",rec) .nes. "\") then goto mrsloop
471 $!------------------------------------------------------------------------------
473 $! Take record extracted in crea_olist and split it into single filenames
476 $ myrec = f$edit(rec - "\", "trim,compress")
479 $ srcfil = f$element(i," ", myrec)
480 $ if (srcfil .nes. " ")
482 $ write mod f$parse(srcfil,,,"NAME"), ".obj"
487 $!------------------------------------------------------------------------------
489 $! Find current Zlib version number
492 $ open/read h_in 'v_file'
494 $ read/end=hdone h_in rec
495 $ rec = f$edit(rec,"TRIM")
496 $ if (f$extract(0,1,rec) .nes. "#") then goto hloop
497 $ rec = f$edit(rec - "#", "TRIM")
498 $ if f$element(0," ",rec) .nes. "define" then goto hloop
499 $ if f$element(1," ",rec) .eqs. v_string
501 $ version = 'f$element(2," ",rec)'
508 $!------------------------------------------------------------------------------
512 $ in_ldef = f$locate(cdef,libdefs)
513 $ if (in_ldef .lt. f$length(libdefs))
515 $ write aconf "#define ''cdef' 1"
516 $ libdefs = f$extract(0,in_ldef,libdefs) + -
517 f$extract(in_ldef + f$length(cdef) + 1, -
518 f$length(libdefs) - in_ldef - f$length(cdef) - 1, -
521 $ if (f$type('cdef') .eqs. "INTEGER")
523 $ write aconf "#define ''cdef' ", 'cdef'
525 $ if (f$type('cdef') .eqs. "STRING")
527 $ write aconf "#define ''cdef' ", """", '''cdef'', """"
534 $!------------------------------------------------------------------------------
536 $! Check if this is a define relating to the properties of the C/C++
540 $ if (cdef .eqs. "_LARGEFILE64_SOURCE")
542 $ copy sys$input: 'tc'
550 fp = fopen("temp.txt","r");
551 fseeko(fp,1,SEEK_SET);
558 $ gosub cc_prop_check
561 $ write aconf "/* ", line, " */"
563 $!------------------------------------------------------------------------------
565 $! Check for properties of C/C++ compiler
568 $! 0.01 20031020 First version to receive a number
569 $! 0.02 20031022 Added logic for defines with value
570 $! 0.03 20040309 Make sure local config file gets not deleted
571 $! 0.04 20041230 Also write include for configure run
572 $! 0.05 20050103 Add processing of "comment defines"
576 $ is_need = (f$extract(0,4,cdef) .eqs. "NEED") .or. (test_inv .eq. true)
577 $ if f$search(th) .eqs. "" then create 'th'
578 $ set message/nofac/noident/nosever/notext
579 $ on error then continue
581 $ if .not. ($status) then cc_prop = false
582 $ on error then continue
583 $! The headers might lie about the capabilities of the RTL
584 $ link 'tmpnam',tmp.opt/opt
585 $ if .not. ($status) then cc_prop = false
586 $ set message/fac/ident/sever/text
587 $ on error then goto err_exit
588 $ delete/nolog 'tmpnam'.*;*/exclude='th'
589 $ if (cc_prop .and. .not. is_need) .or. -
590 (.not. cc_prop .and. is_need)
592 $ write sys$output "Checking for ''cdef'... yes"
593 $ if f$type('cdef_val'_yes) .nes. ""
595 $ if f$type('cdef_val'_yes) .eqs. "INTEGER" -
596 then call write_config f$fao("#define !AS !UL",cdef,'cdef_val'_yes)
597 $ if f$type('cdef_val'_yes) .eqs. "STRING" -
598 then call write_config f$fao("#define !AS !AS",cdef,'cdef_val'_yes)
600 $ call write_config f$fao("#define !AS 1",cdef)
602 $ if (cdef .eqs. "HAVE_FSEEKO") .or. (cdef .eqs. "_LARGE_FILES") .or. -
603 (cdef .eqs. "_LARGEFILE64_SOURCE") then -
604 call write_config f$string("#define _LARGEFILE 1")
606 $ write sys$output "Checking for ''cdef'... no"
609 call write_config f$fao("/* !AS */",line)
611 $ if f$type('cdef_val'_no) .nes. ""
613 $ if f$type('cdef_val'_no) .eqs. "INTEGER" -
614 then call write_config f$fao("#define !AS !UL",cdef,'cdef_val'_no)
615 $ if f$type('cdef_val'_no) .eqs. "STRING" -
616 then call write_config f$fao("#define !AS !AS",cdef,'cdef_val'_no)
618 $ call write_config f$fao("#undef !AS",cdef)
623 $!------------------------------------------------------------------------------
625 $! Check for properties of C/C++ compiler with multiple result values
628 $! 0.01 20040127 First version
629 $! 0.02 20050103 Reconcile changes from cc_prop up to version 0.05
635 $ if f$type(result_'i') .eqs. "STRING"
637 $ set message/nofac/noident/nosever/notext
638 $ on error then continue
640 $ if .not. ($status) then cc_prop = false
641 $ on error then continue
642 $! The headers might lie about the capabilities of the RTL
643 $ link 'tmpnam'_'i',tmp.opt/opt
644 $ if .not. ($status) then cc_prop = false
645 $ set message/fac/ident/sever/text
646 $ on error then goto err_exit
647 $ delete/nolog 'tmpnam'_'i'.*;*
650 $ write sys$output "Checking for ''cdef'... ", mdef_'i'
651 $ if f$type(mdef_'i') .eqs. "INTEGER" -
652 then call write_config f$fao("#define !AS !UL",cdef,mdef_'i')
653 $ if f$type('cdef_val'_yes) .eqs. "STRING" -
654 then call write_config f$fao("#define !AS !AS",cdef,mdef_'i')
661 $ write sys$output "Checking for ''cdef'... no"
662 $ call write_config f$fao("#undef !AS",cdef)
664 $ if (idel .le. msym_max)
666 $ delete/sym mdef_'idel'
671 $!------------------------------------------------------------------------------
673 $! Analyze Object files for OpenVMS AXP to extract Procedure and Data
674 $! information to build a symbol vector for a shareable image
675 $! All the "brains" of this logic was suggested by Hartmut Becker
676 $! (Hartmut.Becker@compaq.com). All the bugs were introduced by me
677 $! (zinser@zinser.no-ip.info), so if you do have problem reports please do not
678 $! bother Hartmut/HP, but get in touch with me
681 $! 0.01 20040406 Skip over shareable images in option file
682 $! 0.02 20041109 Fix option file for shareable images with case_sensitive=YES
683 $! 0.03 20050107 Skip over Identification labels in option file
684 $! 0.04 20060117 Add uppercase alias to code compiled with /name=as_is
686 $ ANAL_OBJ_AXP: Subroutine
688 $ SAY := "WRITE_ SYS$OUTPUT"
690 $ IF F$SEARCH("''P1'") .EQS. ""
692 $ SAY "ANAL_OBJ_AXP-E-NOSUCHFILE: Error, inputfile ''p1' not available"
695 $ IF "''P2'" .EQS. ""
697 $ SAY "ANAL_OBJ_AXP: Error, no output file provided"
703 $ open/append atmp a.tmp
705 $ read/end=end_loop in line
706 $ if f$locate("/SHARE",f$edit(line,"upcase")) .lt. f$length(line)
708 $ write sys$output "ANAL_SKP_SHR-i-skipshare, ''line'"
711 $ if f$locate("IDENTIFICATION=",f$edit(line,"upcase")) .lt. f$length(line)
713 $ write sys$output "ANAL_OBJ_AXP-i-ident: Identification ", -
714 f$element(1,"=",line)
720 $ write sys$output "ANAL_OBJ_AXP-w-nosuchfile, ''line'"
723 $ define/user sys$output nl:
724 $ define/user sys$error nl:
725 $ anal/obj/gsd 'f /out=x.tmp
726 $ open/read xtmp x.tmp
728 $ read/end=end_xloop xtmp xline
729 $ xline = f$edit(xline,"compress")
738 $ if f$search("a.tmp") .eqs. "" -
740 $ ! all global definitions
741 $ search a.tmp "symbol:","EGSY$V_DEF 1","EGSY$V_NORM 1"/out=b.tmp
743 $ search b.tmp "EGSY$V_NORM 1"/wind=(0,1) /out=c.tmp
744 $ search c.tmp "symbol:"/out=d.tmp
745 $ define/user sys$output nl:
746 $ edito/edt/command=sys$input d.tmp
747 sub/symbol: "/symbol_vector=(/whole
748 sub/"/=PROCEDURE)/whole
751 $ search b.tmp "EGSY$V_DEF 1"/wind=(0,1) /out=e.tmp
752 $ search e.tmp "symbol:"/out=f.tmp
753 $ define/user sys$output nl:
754 $ edito/edt/command=sys$input f.tmp
755 sub/symbol: "/symbol_vector=(/whole
758 $ sort/nodupl d.tmp,f.tmp g.tmp
759 $ open/read raw_vector g.tmp
760 $ open/write case_vector 'p2'
762 $ read/end=end_rawloop raw_vector raw_element
763 $ write case_vector raw_element
764 $ if f$locate("=PROCEDURE)",raw_element) .lt. f$length(raw_element)
766 $ name = f$element(1,"=",raw_element) - "("
767 $ if f$edit(name,"UPCASE") .nes. name then -
768 write case_vector f$fao(" symbol_vector=(!AS/!AS=PROCEDURE)", -
769 f$edit(name,"UPCASE"), name)
771 $ if f$locate("=DATA)",raw_element) .lt. f$length(raw_element)
773 $ name = f$element(1,"=",raw_element) - "("
774 $ if f$edit(name,"UPCASE") .nes. name then -
775 write case_vector f$fao(" symbol_vector=(!AS/!AS=DATA)", -
776 f$edit(name,"UPCASE"), name)
782 $ delete a.tmp;*,b.tmp;*,c.tmp;*,d.tmp;*,e.tmp;*,f.tmp;*,g.tmp;*
783 $ if f$search("x.tmp") .nes. "" -
784 then $ delete x.tmp;*
787 $ if V then set verify
789 $!------------------------------------------------------------------------------
791 $! Write configuration to both permanent and temporary config file
794 $! 0.01 20031029 First version to receive a number
796 $WRITE_CONFIG: SUBROUTINE
798 $ open/append confh 'th'
802 $!------------------------------------------------------------------------------