X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=vms%2Fgenopt.com;h=3d3e5fe5df66cbd19efd7383112be355679e9861;hb=c93fa8177be816b728baa070d16f5574403845f6;hp=70013aec4254d5b653878950d2fa8342efbd921b;hpb=a0d0e21ea6ea90a22318550944fe6cb09ae10cda;p=p5sagit%2Fp5-mst-13.2.git diff --git a/vms/genopt.com b/vms/genopt.com index 70013ae..3d3e5fe 100644 --- a/vms/genopt.com +++ b/vms/genopt.com @@ -9,6 +9,24 @@ $loop: $ x=f$element(element,p2,p3) $ if x .eqs. p2 then goto out $ y=f$edit(x,"COLLAPSE") ! lose spaces +$! Expand potential name-only args so we find shareable images +$! either via a logical name or in the default location +$ if y .nes. "" .and. - + f$locate("/SHARE",f$edit(y,"UPCASE")) .ne. f$length(y) +$ then +$ name = f$element(0,"/",y) +$ tail = f$extract(f$length(name),1024,y) +$ if f$trnlnm(name) .eqs. "" ! If it's a logical name, assume it's OK as is +$ then +$ name = f$parse(name,"sys$share:.exe;") ! Look where image activator will +$ name = f$search(name) ! Does it really exist? +$ if name .nes. "" +$ then +$ name = name - f$parse(name,,,"version") ! Insist on current version +$ y = name + tail +$ endif +$ endif +$ endif $ if y .nes. "" then write file y $ element=element+1 $ goto loop