- Timestamp:
- Jun 12, 2018, 5:01:06 PM (7 years ago)
- Location:
- trunk/guitools/shared
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/browse.vrs
r1053 r1055 320 320 321 321 if browsepath = '' then browsepath = '\' 322 if pos(" ",browsepath)> 0 then browsepath = '"'browsepath'"' 322 323 if UserCred = "" then UserCred = "-N" 323 324 -
trunk/guitools/shared/cltinit.vrs
r1027 r1055 111 111 end 112 112 113 if samba.!smbclientexe = "" then call _ErrorBinaryNotFound " could not findsmbclient.exe!"113 if samba.!smbclientexe = "" then call _ErrorBinaryNotFound "Could not find \smbclient.exe!" 114 114 115 115 samba.!bin = VRParseFileName(samba.!smbclientexe,'DP') … … 118 118 /* net.exe */ 119 119 samba.!netexe = samba.!bin'\net.exe' 120 if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound " could not findnet.exe!"120 if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound "Could not find \net.exe!" 121 121 IF options.!debug == 1 THEN say ' net.exe = "'samba.!netexe'"' 122 122 123 123 /* testparm.exe */ 124 124 samba.!testparmexe = samba.!bin'\testparm.exe' 125 if \VRFileExists(samba.!testparmexe) then call _ErrorBinaryNotFound " could not findtestparm.exe!"125 if \VRFileExists(samba.!testparmexe) then call _ErrorBinaryNotFound "Could not find \testparm.exe!" 126 126 IF options.!debug == 1 THEN say ' testparm.exe = "'samba.!testparmexe'"' 127 127 128 128 /* smbtree.exe */ 129 129 samba.!smbtreeexe = samba.!bin'\smbtree.exe' 130 if \VRFileExists(samba.!smbtreeexe) then call _ErrorBinaryNotFound " could not findsmbtree.exe!"130 if \VRFileExists(samba.!smbtreeexe) then call _ErrorBinaryNotFound "Could not find \smbtree.exe!" 131 131 IF options.!debug == 1 THEN say ' smbtree.exe = "'samba.!smbtreeexe'"' 132 132 133 133 /* nmblookup.exe */ 134 134 samba.!nmblookupexe = samba.!bin'\nmblookup.exe' 135 if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound " could not findnmblookup.exe!"135 if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound "Could not find \nmblookup.exe!" 136 136 IF options.!debug == 1 THEN say ' nmblookup.exe = "'samba.!nmblookupexe'"' 137 137 138 138 /* smbspool.exe */ 139 139 samba.!smbspoolexe = samba.!bin'\smbspool.exe' 140 if \VRFileExists(samba.!smbspoolexe) then call _ErrorBinaryNotFound " could not findsmbspool.exe!"140 if \VRFileExists(samba.!smbspoolexe) then call _ErrorBinaryNotFound "Could not find \smbspool.exe!" 141 141 IF options.!debug == 1 THEN say ' smbspool.exe = "'samba.!smbspoolexe'"' 142 142 143 143 /* rpcclient.exe */ 144 144 samba.!rpcclientexe = samba.!bin'\rpcclient.exe' 145 if \VRFileExists(samba.!rpcclientexe) then call _ErrorBinaryNotFound " could not findrpcclient.exe!"145 if \VRFileExists(samba.!rpcclientexe) then call _ErrorBinaryNotFound "Could not find \rpcclient.exe!" 146 146 IF options.!debug == 1 THEN say ' rpcclient.exe = "'samba.!rpcclientexe'"' 147 147 148 148 /* smbcacls.exe */ 149 149 samba.!smbcaclsexe = samba.!bin'\smbcacls.exe' 150 if \VRFileExists(samba.!smbcaclsexe) then call _ErrorBinaryNotFound " could not findsmbcacls.exe!"150 if \VRFileExists(samba.!smbcaclsexe) then call _ErrorBinaryNotFound "Could not find \smbcacls.exe!" 151 151 IF options.!debug == 1 THEN say ' smbcacls.exe = "'samba.!smbcaclsexe'"' 152 152 -
trunk/guitools/shared/nlv.vrs
r990 r1055 24 24 parse var execDir srchroot '\BIN' 25 25 26 say ' NLV execDir = "'execDir'"'27 say ' NLV srchroot = "'srchRoot'"'26 if options.!debug = 1 then say ' NLV execDir = "'execDir'"' 27 if options.!debug = 1 then say ' NLV srchroot = "'srchRoot'"' 28 28 29 29 filestem = VRParseFileName( execPath, "N") … … 33 33 otherwise filestem = strip(SUBSTR( filestem, 1, 5 ))||'_' 34 34 end 35 say ' NLV filestem = "'filestem'"'35 if options.!debug = 1 then say ' NLV filestem = "'filestem'"' 36 36 37 37 /* First, figure out what language/message file to use */ … … 55 55 /*:VRX NLVSearch 56 56 */ 57 NLVSearch: procedure expose filestem execdir srchroot 57 NLVSearch: procedure expose filestem execdir srchroot options. 58 58 nlv = arg(1) 59 59 SubDir = arg(2) … … 64 64 UnixRoot = value("UNIXROOT",,"OS2ENVIRONMENT") 65 65 do until NLVSrchDone = 1 66 say ' NLV 'Suffix' file = "'filestem||nlv'.'Suffix'"'66 IF options.!debug == 1 then say ' NLV 'Suffix' file = "'filestem||nlv'.'Suffix'"' 67 67 select 68 68 when VRFileExists(execdir'\'filestem||nlv'.'Suffix) then do 69 say " Attempt1: NLV "Suffix" file found directly!"69 IF options.!debug == 1 then say " Attempt1: NLV "Suffix" file found directly!" 70 70 NLVFile = strip(execdir'\'filestem||nlv'.'Suffix,'L','\') 71 71 NLVSrchDone = 1 72 72 end 73 73 when VRFileExists(srchRoot'\'SubDir'\'filestem||nlv'.'Suffix) then do 74 say " Attempt2: NLV "Suffix" file found directly!"74 IF options.!debug == 1 then say " Attempt2: NLV "Suffix" file found directly!" 75 75 NLVFile = strip(srchRoot'\'SubDir'\'filestem||nlv'.'Suffix,'L','\') 76 76 NLVSrchDone = 1 … … 78 78 when SysSearchPath(PathVar, filestem||nlv'.'Suffix) \= '' then do 79 79 execDir = VRParseFileName(SysSearchPath(PathVar, filestem||nlv'.'Suffix),"DP") 80 say " Attempt3: NLV "Suffix" file found via "PathVar80 IF options.!debug == 1 then say " Attempt3: NLV "Suffix" file found via "PathVar 81 81 NLVFile = strip(execdir'\'filestem||nlv'.'Suffix,'L','\') 82 82 NLVSrchDone = 1 … … 85 85 ok = SysFileTree(UnixRoot||'\usr\share\os2\'filestem||nlv'.'Suffix,nlvmsg.,'FOS') 86 86 if nlvmsg.0 = 1 then do 87 say " Attempt4: Found NLV "Suffix" file in rpm/yum subdirectory" 87 IF options.!debug == 1 then say " Attempt4: Found NLV "Suffix" file in rpm/yum subdirectory" 88 NLVFile = VRParseFilename(nlvmsg.1,"DPN")'.'Suffix 89 IF options.!debug == 1 then say " Adding NLV "Suffix" path to "PathVar 90 OldPathVar = value(PathVar,,"OS2ENVIRONMENT") 91 ok = value(PathVar,VRParseFilename(nlvmsg.1,"DP")';'OldPathVar,"OS2ENVIRONMENT") 92 NLVSrchDone = 1 93 end 94 else IF options.!debug == 1 then say " NLV "Suffix" file NOT in rpm/yum "UnixRoot||'\usr\share\os2\'filestem||nlv'.'Suffix"subdirectory." 95 end 96 97 otherwise do 98 IF options.!debug == 1 then say " Searching subdirectories" 99 ok = SysFileTree(srchRoot'\'filestem||nlv'.'Suffix,nlvmsg.,'FOS') 100 if nlvmsg.0 = 1 then do 101 IF options.!debug == 1 then say " Found NLV "Suffix" file in subdirectory" 88 102 NLVFile = VRParseFilename(nlvmsg.1,"DPN")'.'Suffix 89 103 say " Adding NLV "Suffix" path to "PathVar … … 92 106 NLVSrchDone = 1 93 107 end 94 else say " NLV "Suffix" file NOT in rpm/yum "UnixRoot||'\usr\share\os2\'filestem||nlv'.'Suffix"subdirectory." 95 end 96 97 otherwise do 98 say " Searching subdirectories" 99 ok = SysFileTree(srchRoot'\'filestem||nlv'.'Suffix,nlvmsg.,'FOS') 100 if nlvmsg.0 = 1 then do 101 say " Found NLV "Suffix" file in subdirectory" 102 NLVFile = VRParseFilename(nlvmsg.1,"DPN")'.'Suffix 103 say " Adding NLV "Suffix" path to "PathVar 104 OldPathVar = value(PathVar,,"OS2ENVIRONMENT") 105 ok = value(PathVar,VRParseFilename(nlvmsg.1,"DP")';'OldPathVar,"OS2ENVIRONMENT") 106 NLVSrchDone = 1 107 end 108 else say " NLV "Suffix" file not found in subdirectories!" 108 else IF options.!debug == 1 then say " NLV "Suffix" file not found in subdirectories!" 109 109 end 110 110 end … … 116 116 end 117 117 else do 118 say " NLV "Suffix" File not found, falling back to EN."118 IF options.!debug == 1 then say " NLV "Suffix" File not found, falling back to EN." 119 119 nlv = "EN" 120 120 /* Now we repeat the whole procedure to find the EN file */ … … 122 122 end 123 123 end 124 say time()' NLVSearch() done, returning "'NLVFile'"'124 IF options.!debug == 1 then say time()' NLVSearch() done, returning "'NLVFile'"' 125 125 return NLVFile 126 126 -
trunk/guitools/shared/sambainit.vrs
r1027 r1055 119 119 end 120 120 121 if samba.!smbd = "" then call _ErrorBinaryNotFound 'Could not find smbd.exe!' 122 121 if samba.!smbd = "" then call _ErrorBinaryNotFound 'Could not find "\smbd.exe"!' 123 122 124 123 samba.!bin = VRParseFileName(samba.!smbd,'DP') … … 130 129 if \VRFileExists(samba.!smbcmd) then do 131 130 samba.!smbcmd = samba.!bin'\smb.cmd' 132 if \VRFileExists(samba.!smbcmd) then call _ErrorBinaryNotFound 'Could not find smb.cmd!'131 if \VRFileExists(samba.!smbcmd) then call _ErrorBinaryNotFound 'Could not find "\smb.cmd"!' 133 132 end 134 133 IF options.!debug == 1 then say ' smb.cmd = "'samba.!smbcmd'"' … … 181 180 /* smbspool.exe */ 182 181 samba.!smbspoolexe = samba.!bin'\smbspool.exe' 183 if \VRFileExists(samba.!smbspoolexe) then call _ErrorBinaryNotFound " could not find smbspool.exe!"182 if \VRFileExists(samba.!smbspoolexe) then call _ErrorBinaryNotFound 'Could not find "\smbspool.exe"!' 184 183 IF options.!debug == 1 THEN say ' smbspool.exe = "'samba.!smbspoolexe'"' 185 184 186 185 /* rpcclient.exe */ 187 186 samba.!rpcclientexe = samba.!bin'\rpcclient.exe' 188 if \VRFileExists(samba.!rpcclientexe) then call _ErrorBinaryNotFound " could not find rpcclient.exe!"187 if \VRFileExists(samba.!rpcclientexe) then call _ErrorBinaryNotFound 'Could not find "\rpcclient.exe"!' 189 188 IF options.!debug == 1 THEN say ' rpcclient.exe = "'samba.!rpcclientexe'"' 190 189 191 190 /* smbcacls.exe */ 192 191 samba.!smbcaclsexe = samba.!bin'\smbcacls.exe' 193 if \VRFileExists(samba.!smbcaclsexe) then call _ErrorBinaryNotFound " could not find smbcacls.exe!"192 if \VRFileExists(samba.!smbcaclsexe) then call _ErrorBinaryNotFound 'Could not find "\smbcacls.exe"!' 194 193 IF options.!debug == 1 THEN say ' smbcacls.exe = "'samba.!smbcaclsexe'"' 195 194 -
trunk/guitools/shared/smbtree.vrs
r1053 r1055 727 727 StatusWText = arg(1) 728 728 if VRIsValidObject("DT_STATUSBAR") then do 729 if VRGet("DT_STATUSBAR","BACKCOLOR") <> "<defaul>" then ok = VRSet("DT_STATUSBAR","BACKCOLOR","<default>") 729 730 if left(StatusWText,1) = "+" then do 730 731 ok = VRSet("DT_STATUSBAR","Caption", VRGet("DT_STATUSBAR","Caption")||substr(StatusWText,2))
Note:
See TracChangeset
for help on using the changeset viewer.