Changeset 1060
- Timestamp:
- Oct 5, 2019, 8:22:33 PM (6 years ago)
- Location:
- branches/guitools-arcamap-2.5/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-arcamap-2.5/shared/cltinit.vrs
r1023 r1060 1 1 /* Perform basic Samba Client init stuff */ 2 2 3 /* Samba Client Initialization 3 /* Samba Client Initialization 4 4 Copyright (C) 2007-2017 Herwig Bauernfeind for bww bitwise works GmbH. 5 5 … … 118 118 /* net.exe */ 119 119 samba.!netexe = samba.!bin'\net.exe' 120 if \VRFileExists(samba.!netexe) then 121 samba.!netexe = UnixRoot'\usr\libexec\samba\net.exe' 120 122 if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound " could not find net.exe!" 121 123 IF options.!debug == 1 THEN say ' net.exe = "'samba.!netexe'"' -
branches/guitools-arcamap-2.5/shared/nlv.vrs
r990 r1060 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
Note:
See TracChangeset
for help on using the changeset viewer.