Changeset 131 for trunk/lingosource
- Timestamp:
- 02/05/08 15:57:24 (4 years ago)
- Location:
- trunk/lingosource/castlib1
- Files:
-
- 3 edited
-
alexUtilities.ls (modified) (3 diffs)
-
bbedit_Utilities.ls (modified) (3 diffs)
-
svn_Utilities.ls (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/alexUtilities.ls
r123 r131 2315 2315 2316 2316 2317 on mDoShellCmd me, cmd, returnList 2317 on mDoShellCmd me, cmd, ReturnChar, maxTime, returnList, useOpen, stdout_callback, stderr_callback 2318 2319 if voidP(maxTime) then maxTime = 0 2318 2320 2319 2321 if mCheckForXtra(me, "ff_shell") = 0 then … … 2327 2329 return shell_cmd_list(cmd) 2328 2330 else 2329 return shell_cmd(cmd, void, 0, 1, void, void, void)2331 return shell_cmd(cmd, ReturnChar, maxTime, 1, useOpen, stdout_callback, stderr_callback) 2330 2332 end if 2331 2333 … … 2335 2337 return shell_cmd(cmd) 2336 2338 else 2337 return shell_cmd(cmd, void, 0, 0, void, void, void)2339 return shell_cmd(cmd, ReturnChar, maxTime, 0, useOpen, stdout_callback, stderr_callback) 2338 2340 end if 2339 2341 -
trunk/lingosource/castlib1/bbedit_Utilities.ls
r93 r131 234 234 end if 235 235 236 bbdiffpath = mDoShellCmd(me, "which bbdiff", 1)236 bbdiffpath = mDoShellCmd(me, "which bbdiff", RETURN, 0, 1) 237 237 if count(bbdiffpath) > 0 then 238 238 bbdiffpath = bbdiffpath[1] … … 439 439 440 440 441 bbdiffpath = mDoShellCmd(me, "which bbdiff", 1)441 bbdiffpath = mDoShellCmd(me, "which bbdiff", RETURN, 0, 1) 442 442 443 443 if count(bbdiffpath) > 0 then … … 906 906 907 907 if mCheckForXtra(me, "Shell") = 1 or mCheckForXtra(me, "ff_shell") = 1 then 908 bbdiffpath = mDoShellCmd(me, "which bbdiff", 1)908 bbdiffpath = mDoShellCmd(me, "which bbdiff", RETURN, 0, 1) 909 909 if count(bbdiffpath) > 0 then 910 910 bbdiffpath = bbdiffpath[1] -
trunk/lingosource/castlib1/svn_Utilities.ls
r129 r131 152 152 153 153 154 theResult = mDoShellCmd(me, bbdiffpath & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E && "2>&1", 1)154 theResult = mDoShellCmd(me, bbdiffpath & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E && "2>&1", RETURN, 0, 1) 155 155 156 156 -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished … … 304 304 binaryPath = [] 305 305 306 binaryPath = mDoShellCmd(me, "for thisBinPath in /usr/bin /bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /opt/sbin /opt/bin /opt/local/sbin /opt/local/bin /sw/bin /sw/sbin ; do find $thisBinPath -name " & whichBinaryName & " ; done", 1)306 binaryPath = mDoShellCmd(me, "for thisBinPath in /usr/bin /bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /opt/sbin /opt/bin /opt/local/sbin /opt/local/bin /sw/bin /sw/sbin ; do find $thisBinPath -name " & whichBinaryName & " ; done", RETURN, 0, 1) 307 307 308 308 if count(binaryPath) > 0 then return binaryPath[1] … … 1590 1590 mDisplayWaitStatusText me, "Updating folder:" && workingFolder 1591 1591 1592 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolder & QUOTE, 1)1592 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 1593 1593 1594 1594 if statusSwitched = 1 then statusSwitched = mSwitchToStatusMode(me, 0) … … 1754 1754 end if 1755 1755 1756 theresult = mDoShellCmd(me, svnBinary && "delete" && QUOTE & ufpath & QUOTE, 1)1756 theresult = mDoShellCmd(me, svnBinary && "delete" && QUOTE & ufpath & QUOTE, RETURN, 0, 1) 1757 1757 if count(theresult) < 1 then 1758 1758 put "failed to svn delete member " & memref & " no result from svn?!" … … 1814 1814 end if 1815 1815 1816 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, 1)1816 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 1817 1817 1818 1818 if count(theresult) > 0 then … … 2077 2077 mDisplayWaitStatusText me, "SVN update of:" && castlibList[r][3] 2078 2078 2079 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE, 1)2079 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE, RETURN, 0, 1) 2080 2080 2081 2081 if count(theresult) < 1 then 2082 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE && "2>&1", 1)2082 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE && "2>&1", RETURN, 0, 1) 2083 2083 if count(theresult) < 1 then 2084 2084 theError = theresult[1] … … 2094 2094 2095 2095 2096 theresult = mDoShellCmd(me, svnBinary && "status" && QUOTE & castlibList[r][3] & QUOTE, 1)2096 theresult = mDoShellCmd(me, svnBinary && "status" && QUOTE & castlibList[r][3] & QUOTE, RETURN, 0, 1) 2097 2097 2098 2098 cnt = count(theresult) … … 2121 2121 mDisplayWaitStatusText me, "SVN commit for:" && pathStr 2122 2122 2123 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE & pathStr, 1)2123 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE & pathStr, RETURN, 0, 1) 2124 2124 2125 2125 … … 2251 2251 mDisplayWaitStatusText me, "SVN update for:" && workingFolder 2252 2252 2253 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolder & QUOTE, 1)2253 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 2254 2254 2255 2255 if count(theresult) < 1 then 2256 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolder & QUOTE && "2>&1", 1)2256 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolder & QUOTE && "2>&1", RETURN, 0, 1) 2257 2257 if count(theresult) < 1 then 2258 2258 theError = theresult[1] … … 2274 2274 ------- in order to implement #1 you can use a repeat loop just like the above repeat, which goes thorugh each castlib 2275 2275 2276 theresult = mDoShellCmd(me, svnBinary && "status" && QUOTE & workingFolder & QUOTE, 1)2276 theresult = mDoShellCmd(me, svnBinary && "status" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 2277 2277 2278 2278 cnt = count(theresult) … … 2298 2298 2299 2299 "?": -- newly added file 2300 mDoShellCmd(me, svnBinary && "add" && QUOTE & answ & QUOTE, 1)2300 mDoShellCmd(me, svnBinary && "add" && QUOTE & answ & QUOTE, RETURN, 0, 1) 2301 2301 2302 2302 put "Added file" && answ && "to the repository" … … 2314 2314 mDisplayWaitStatusText me, "SVN commit of:" && workingFolder 2315 2315 2316 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, 1)2316 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 2317 2317 2318 2318 … … 2434 2434 mDisplayWaitStatusText me, "SVN update:" && newpathUnix 2435 2435 2436 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & newpathUnix & QUOTE, 1)2436 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & newpathUnix & QUOTE, RETURN, 0, 1) 2437 2437 2438 2438 … … 2536 2536 mDisplayWaitStatusText me, "SVN update:" && workingFolderUnix 2537 2537 2538 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolderUnix & QUOTE, 1)2538 theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolderUnix & QUOTE, RETURN, 0, 1) 2539 2539 2540 2540 if count(theresult) > 0 then … … 2823 2823 2824 2824 2825 theresult = mDoShellCmd(me, svnBinary && "update" & workingFolder, 1)2825 theresult = mDoShellCmd(me, svnBinary && "update" & workingFolder, RETURN, 0, 1) 2826 2826 2827 2827 2828 2828 if count(theresult) < 1 then 2829 theresult = mDoShellCmd(me, svnBinary && "update" & workingFolder && "2>&1", 1)2829 theresult = mDoShellCmd(me, svnBinary && "update" & workingFolder && "2>&1", RETURN, 0, 1) 2830 2830 if count(theresult) < 1 then 2831 2831 theError = theresult[1] … … 2838 2838 end if 2839 2839 2840 theresult = mDoShellCmd(me, svnBinary && "status" & workingFolder, 1)2840 theresult = mDoShellCmd(me, svnBinary && "status" & workingFolder, RETURN, 0, 1) 2841 2841 2842 2842 cnt = count(theresult) … … 2864 2864 2865 2865 "?": -- newly added file 2866 mDoShellCmd(me, svnBinary && "add" && QUOTE & answ & QUOTE, 1)2866 mDoShellCmd(me, svnBinary && "add" && QUOTE & answ & QUOTE, RETURN, 0, 1) 2867 2867 2868 2868 put "Added file" && answ && "to the repository" … … 2882 2882 mDisplayWaitStatusText me, "SVN commit:" && workingFolder 2883 2883 2884 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE & workingFolder, 1)2884 theresult = mDoShellCmd(me, svnBinary && "ci --message" && QUOTE & msg & QUOTE & workingFolder, RETURN, 0, 1) 2885 2885 2886 2886 … … 2944 2944 svnBinary = [] 2945 2945 2946 svnBinary = mDoShellCmd(me, "for thisBinPath in /usr/bin /bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /opt/sbin /opt/bin /opt/local/sbin /opt/local/bin /sw/bin /sw/sbin ; do find $thisBinPath -name svn ; done", 1)2946 svnBinary = mDoShellCmd(me, "for thisBinPath in /usr/bin /bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /opt/sbin /opt/bin /opt/local/sbin /opt/local/bin /sw/bin /sw/sbin ; do find $thisBinPath -name svn ; done", RETURN, 0, 1) 2947 2947 -- end if 2948 2948
Note: See TracChangeset
for help on using the changeset viewer.
