Changeset 990 for trunk/guitools/shared
- Timestamp:
- Dec 9, 2016, 11:06:20 AM (9 years ago)
- Location:
- trunk/guitools/shared
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/inittempdir.vrs
r638 r990 7 7 HaveNoTMPDIR = 0 8 8 TempDir = translate(value('TMPDIR',,'OS2ENVIRONMENT'),'\','/') 9 IF options.!debug == 1 THEN say ' TMPDIR ="'TempDir'"'9 IF options.!debug == 1 THEN say ' TMPDIR = "'TempDir'"' 10 10 if TempDir = '' then do 11 11 HaveNoTMPDIR = 1 12 12 TempDir = translate(value('TEMP',,'OS2ENVIRONMENT'),'\','/') 13 IF options.!debug == 1 THEN say ' TEMP ="'TempDir'"'13 IF options.!debug == 1 THEN say ' TEMP = "'TempDir'"' 14 14 end 15 15 if TempDir = '' then do 16 16 TempDir = translate(value('TMP',,'OS2ENVIRONMENT'),'\','/') 17 IF options.!debug == 1 THEN say ' TMP ="'TempDir'"'17 IF options.!debug == 1 THEN say ' TMP = "'TempDir'"' 18 18 end 19 19 if TempDir = '' then do -
trunk/guitools/shared/nlv.vrs
r924 r990 31 31 when settings.!nlv8dot3 = 0 then filestem = filestem||'_' 32 32 when translate(filestem) = "EVFSGUI" then filestem = "evfsi_" 33 otherwise filestem = SUBSTR( filestem, 1, 5)||'_'33 otherwise filestem = strip(SUBSTR( filestem, 1, 5 ))||'_' 34 34 end 35 35 say ' NLV filestem = "'filestem'"' … … 60 60 Suffix = arg(3) 61 61 PathVar = arg(4) 62 say time()" NLVSearch() started"63 62 NLVSrchDone = 0 64 63 NLVFile = "" … … 67 66 say ' NLV 'Suffix' file = "'filestem||nlv'.'Suffix'"' 68 67 select 68 when VRFileExists(execdir'\'filestem||nlv'.'Suffix) then do 69 say " Attempt1: NLV "Suffix" file found directly!" 70 NLVFile = strip(execdir'\'filestem||nlv'.'Suffix,'L','\') 71 NLVSrchDone = 1 72 end 69 73 when VRFileExists(srchRoot'\'SubDir'\'filestem||nlv'.'Suffix) then do 70 say " NLV "Suffix" file found directly!"74 say " Attempt2: NLV "Suffix" file found directly!" 71 75 NLVFile = strip(srchRoot'\'SubDir'\'filestem||nlv'.'Suffix,'L','\') 76 NLVSrchDone = 1 77 end 78 when SysSearchPath(PathVar, filestem||nlv'.'Suffix) \= '' then do 79 execDir = VRParseFileName(SysSearchPath(PathVar, filestem||nlv'.'Suffix),"DP") 80 say " Attempt3: NLV "Suffix" file found via "PathVar 81 NLVFile = strip(execdir'\'filestem||nlv'.'Suffix,'L','\') 72 82 NLVSrchDone = 1 73 83 end … … 75 85 ok = SysFileTree(UnixRoot||'\usr\share\os2\'filestem||nlv'.'Suffix,nlvmsg.,'FOS') 76 86 if nlvmsg.0 = 1 then do 77 say " Found NLV "Suffix" file in rpm/yum subdirectory"87 say " Attempt4: Found NLV "Suffix" file in rpm/yum subdirectory" 78 88 NLVFile = VRParseFilename(nlvmsg.1,"DPN")'.'Suffix 79 89 say " Adding NLV "Suffix" path to "PathVar … … 82 92 NLVSrchDone = 1 83 93 end 84 else say " NLV "Suffix" file NOT in rpm/yum subdirectory."94 else say " NLV "Suffix" file NOT in rpm/yum "UnixRoot||'\usr\share\os2\'filestem||nlv'.'Suffix"subdirectory." 85 95 end 86 when SysSearchPath(PathVar, filestem||nlv'.'Suffix) \= '' then do 87 execDir = VRParseFileName(SysSearchPath(PathVar, filestem||nlv'.'Suffix),"DP") 88 say " NLV "Suffix" file found via "PathVar 89 NLVFile = strip(execdir'\'filestem||nlv'.'Suffix,'L','\') 90 NLVSrchDone = 1 91 end 96 92 97 otherwise do 93 98 say " Searching subdirectories" -
trunk/guitools/shared/sambainit.vrs
r908 r990 207 207 if \VRFileExists(samba.!smbconf) then call _ErrorDataFileNotFound samba.!smbconf' is not present.' 208 208 IF options.!debug == 1 then say ' Samba smb.conf = "'samba.!smbconf'"' 209 210 /* complete shadow copy of smb.conf in temporary directory - should always be created on the fly */ 211 /* before reading from it */ 212 samba.!shadowsmbconf = TempDir||'smb.conf' 209 213 210 214 /* find all datafiles - their locations are fixed */ -
trunk/guitools/shared/smbtree.vrs
r925 r990 5 5 say time()' _RefreshTree() started' 6 6 FirstRun = 0 7 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", " Refreshing network")7 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", " Refreshing network") 8 8 ok = SysFileDelete(samba.!msg) 9 9 parse var debuglevel .'='level … … 54 54 if errstat = "READY:" then do 55 55 if file2stem(samba.!error,"treeError.") > 1 then do 56 ok = VRSet("DT_STATUSBAR","Caption", treeError.2)56 ok = VRSet("DT_STATUSBAR","Caption", " "||treeError.2) 57 57 end 58 58 end … … 458 458 if UserCred = '-N' then UserCred = '' 459 459 460 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", " Ready.")460 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", " Ready.") 461 461 say time()' _AddSharesDisplay() loop end' 462 462 return … … 501 501 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -D 'UserCred' 'debuglevel' >'samba.!msg 502 502 503 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Enumerating workgroups")503 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Enumerating workgroups") 504 504 do while stream(samba.!msg,'c','open read') <> "READY:" 505 505 ok = SysSleep(1) … … 563 563 address cmd 'detach 'samba.!nmblookupexe' 'machine' 'debuglevel' >'samba.!msg 564 564 565 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Obtaining IP from "machine)565 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Obtaining IP from "machine) 566 566 do while stream(samba.!msg,'c','open read') <> "READY:" 567 567 ok = SysSleep(0.33) … … 590 590 address cmd 'detach 'samba.!nmblookupexe' -A 'machine' 'debuglevel' >'samba.!msg 591 591 592 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Obtaining capabilities from "machine)592 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Obtaining capabilities from "machine) 593 593 do while stream(samba.!msg,'c','open read') <> "READY:" 594 594 ok = SysSleep(0.33) … … 625 625 address cmd 'detach 'samba.!nmblookupexe' -S 'machine' 'debuglevel' >'samba.!msg 626 626 627 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Querying "machine" for roles")627 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption"," Querying "machine" for roles") 628 628 do while stream(samba.!msg,'c','open read') <> "READY:" 629 629 ok = SysSleep(0.33) … … 665 665 file2stem: 666 666 say time()' file2stem() started' 667 msgfile = arg(1) 668 msgstem = arg(2) 669 delmsgfile = translate(arg(3)) 667 msgfile = arg(1) /* file to create stem of */ 668 msgstem = arg(2) /* name of the stem */ 670 669 if right(msgstem,1) <> '.' then msgstem = msgstem'.' 670 delmsgfile = translate(arg(3)) /* erase file after transfer */ 671 skipwords = strip(arg(4)||' creating lame tdb( ***') /* skip lines with these words */ 672 do J = 1 to words(skipwords) 673 skip.J = translate(word(skipWords,J)) 674 end 675 skip.0 = J 676 671 677 say ' file2stem("'msgfile'","'msgstem'")' 672 678 dyn = 'drop 'msgstem 673 679 interpret dyn 674 680 stemcount = 0 681 skipped = 0 675 682 do while lines(msgfile) > 0 676 683 stemcount = stemcount + 1 677 684 inline = linein(msgfile) 678 if pos('creating lame',inline) > 0 | pos('tdb(',inline) > 0 then do 679 stemcount = stemcount - 1 680 iterate 681 end 682 dyn = msgstem||stemcount' = inline' 683 interpret dyn 685 SkipIt = 0 686 do J = 1 to skip.0 687 if pos(skip.J,translate(inline)) > 0 then do 688 skipit = 1 689 stemcount = stemcount - 1 690 skipped = skipped + 1 691 leave 692 end 693 end 694 if \SkipIt then do 695 dyn = msgstem||stemcount' = inline' 696 interpret dyn 697 end 684 698 end 685 699 dyn = msgstem||"0 = "stemcount … … 689 703 690 704 drop msgfile msgstem 691 say time()' file2stem() ['stemcount' ] done'705 say time()' file2stem() ['stemcount' added, 'skipped' skipped] done' 692 706 return stemcount
Note:
See TracChangeset
for help on using the changeset viewer.