Changeset 242
- Timestamp:
- 12/18/09 15:29:03 (2 years ago)
- Location:
- trunk/lingosource/castlib1
- Files:
-
- 4 edited
-
alexUtilities.ls (modified) (2 diffs)
-
bbedit_Utilities.ls (modified) (5 diffs)
-
subversion_version_field.txt (modified) (1 diff)
-
svn_Utilities.ls (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/alexUtilities.ls
r232 r242 2940 2940 RETURN & " -- INPUT: -"&\ 2941 2941 RETURN & " -- RETURNS: -"&\ 2942 RETURN & " -- CALLER: -"&\ 2943 RETURN & " -- DEBUG: -"&\ 2944 RETURN & " -- TODO: -"&\ 2942 RETURN & " -- EXAMPLE: -"&\ 2945 2943 RETURN & "-----------------------------------" 2946 2944 … … 2969 2967 RETURN & " -- -"&\ 2970 2968 RETURN & " --"&\ 2971 RETURN & " -- PARAMS:"&\ 2972 RETURN & " -- -"&\ 2973 RETURN & " --"&\ 2974 RETURN & " -- RETURNS:"&\ 2975 RETURN & " -- -"&\ 2976 RETURN & " --"&\ 2977 RETURN & " -- WARNINGS:"&\ 2978 RETURN & " -- -"&\ 2979 RETURN & " --"&\ 2980 RETURN & " -- TODO:"&\ 2969 RETURN & " -- EXAMPLE:"&\ 2981 2970 RETURN & " -- -"&\ 2982 2971 RETURN & " -----------------------------------" -
trunk/lingosource/castlib1/bbedit_Utilities.ls
r215 r242 56 56 clistr = "bbedit" 57 57 else 58 clistr = editor58 clistr = QUOTE & editor & QUOTE 59 59 end if 60 60 … … 580 580 if doit = 1 then 581 581 -- put bbdiffpath && QUOTE & tempSrcPath & QUOTE && QUOTE & tempTgtPath & QUOTE 582 mDoShellCmd(me, bbdiffpath && QUOTE & tempSrcPath & QUOTE && QUOTE & tempTgtPath & QUOTE) 582 583 mDoShellCmd(me, QUOTE & bbdiffpath & QUOTE && QUOTE & tempSrcPath & QUOTE && QUOTE & tempTgtPath & QUOTE) 583 584 584 585 else … … 689 690 end if 690 691 691 mDoShellCmd(me, bbdiffpath& " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E)692 mDoShellCmd(me, QUOTE & bbdiffpath & QUOTE & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E) 692 693 693 694 -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished … … 856 857 857 858 858 theResult = mDoShellCmd(me, bbdiffpath& " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& mConvertHFS2Unix(me, fname1) "E&"E& mConvertHFS2Unix(me, fname2) "E && "2>&1", RETURN, 0, 1)859 theResult = mDoShellCmd(me, QUOTE & bbdiffpath & QUOTE & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& mConvertHFS2Unix(me, fname1) "E&"E& mConvertHFS2Unix(me, fname2) "E && "2>&1", RETURN, 0, 1) 859 860 860 861 -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished … … 1412 1413 if char 1 of comm = "~" then put "$HOME" into char 1 of comm 1413 1414 1414 mDoShellCmd(me, bbdiffpath& " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E)1415 mDoShellCmd(me, QUOTE & bbdiffpath & QUOTE & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E) 1415 1416 1416 1417 newscripttext = mGetTextFromFile(me, tempSrcHFSPath) -
trunk/lingosource/castlib1/subversion_version_field.txt
r236 r242 1 r2 381 r244 -
trunk/lingosource/castlib1/svn_Utilities.ls
r236 r242 171 171 comm = mConvertHFS2Unix(me, thePath) 172 172 173 theResult = mDoShellCmd(me, bbdiffpath& " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E && "2>&1", RETURN, 0, 1)173 theResult = mDoShellCmd(me, QUOTE & bbdiffpath & QUOTE & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E && "2>&1", RETURN, 0, 1) 174 174 175 175 -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished … … 341 341 bbeditBinary = mFindUnixAppInPath(me, "bbedit") 342 342 if length(bbeditBinary) > 0 then 343 mDoShellCmd(me, bbeditBinary&& QUOTE & mConvertHFS2Unix(me, thePath) & QUOTE)343 mDoShellCmd(me, QUOTE & bbeditBinary & QUOTE && QUOTE & mConvertHFS2Unix(me, thePath) & QUOTE) 344 344 exit 345 345 end if … … 1534 1534 1535 1535 if count(castlibList) < 1 then 1536 theresult = mDoShellCmd(me, svnBinary&& "update" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1)1536 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 1537 1537 1538 1538 else … … 1545 1545 thePath = workingFolder & pdelim & "castlib" & num & pdelim 1546 1546 1547 ret = mDoShellCmd(me, svnBinary&& "update" && "-r" && revisionNumber && QUOTE & thePath & QUOTE, RETURN, 0, 1)1547 ret = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && "-r" && revisionNumber && QUOTE & thePath & QUOTE, RETURN, 0, 1) 1548 1548 if count(ret) > 0 then theresult.add(ret[1]) 1549 1549 … … 1735 1735 end if 1736 1736 1737 theresult = mDoShellCmd(me, svnBinary&& "delete" && QUOTE & ufpath & QUOTE, RETURN, 0, 1)1737 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "delete" && QUOTE & ufpath & QUOTE, RETURN, 0, 1) 1738 1738 if count(theresult) < 1 then 1739 1739 put "failed to svn delete member " & memref & " no result from svn?!" … … 1795 1795 end if 1796 1796 1797 theresult = mDoShellCmd(me, svnBinary&& "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, RETURN, 0, 1)1797 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 1798 1798 1799 1799 if count(theresult) > 0 then … … 1842 1842 on mGetCurrentRevision me, svnBinary, WorkingFolder 1843 1843 1844 versionNumber = mDoShellCmd(me, svnBinary&& QUOTE & WorkingFolder & QUOTE, RETURN, 0, 1)1844 versionNumber = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && QUOTE & WorkingFolder & QUOTE, RETURN, 0, 1) 1845 1845 if count(versionNumber) < 1 then return void 1846 1846 versionNumber = versionNumber[1] … … 2127 2127 mDisplayWaitStatusText me, "SVN update of:" && castlibList[r][3] 2128 2128 2129 theresult = mDoShellCmd(me, svnBinary&& "update" && QUOTE & castlibList[r][3] & QUOTE, RETURN, 0, 1)2129 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && QUOTE & castlibList[r][3] & QUOTE, RETURN, 0, 1) 2130 2130 2131 2131 if count(theresult) < 1 then 2132 theresult = mDoShellCmd(me, svnBinary&& "update" && QUOTE & castlibList[r][3] & QUOTE && "2>&1", RETURN, 0, 1)2132 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && QUOTE & castlibList[r][3] & QUOTE && "2>&1", RETURN, 0, 1) 2133 2133 if count(theresult) < 1 then 2134 2134 theError = theresult[1] … … 2144 2144 2145 2145 2146 theresult = mDoShellCmd(me, svnBinary&& "status" && QUOTE & castlibList[r][3] & QUOTE, RETURN, 0, 1)2146 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "status" && QUOTE & castlibList[r][3] & QUOTE, RETURN, 0, 1) 2147 2147 2148 2148 cnt = count(theresult) … … 2171 2171 mDisplayWaitStatusText me, "SVN commit for:" && pathStr 2172 2172 2173 theresult = mDoShellCmd(me, svnBinary&& "ci --message" && QUOTE & msg & QUOTE & pathStr, RETURN, 0, 1)2173 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "ci --message" && QUOTE & msg & QUOTE & pathStr, RETURN, 0, 1) 2174 2174 2175 2175 … … 2366 2366 mDisplayWaitStatusText me, "SVN update for:" && workingFolder 2367 2367 2368 theresult = mDoShellCmd(me, svnBinary&& "update" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1)2368 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 2369 2369 2370 2370 if count(theresult) < 1 then 2371 theresult = mDoShellCmd(me, svnBinary&& "update" && QUOTE & workingFolder & QUOTE && "2>&1", RETURN, 0, 1)2371 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && QUOTE & workingFolder & QUOTE && "2>&1", RETURN, 0, 1) 2372 2372 if count(theresult) < 1 then 2373 2373 theError = theresult[1] … … 2389 2389 ------- in order to implement #1 you can use a repeat loop just like the above repeat, which goes thorugh each castlib 2390 2390 2391 theresult = mDoShellCmd(me, svnBinary&& "status" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1)2391 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "status" && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 2392 2392 2393 2393 cnt = count(theresult) … … 2413 2413 2414 2414 "?": -- newly added file 2415 mDoShellCmd(me, svnBinary&& "add" && QUOTE & answ & QUOTE, RETURN, 0, 1)2415 mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "add" && QUOTE & answ & QUOTE, RETURN, 0, 1) 2416 2416 2417 2417 put "Added file" && answ && "to the repository" … … 2429 2429 mDisplayWaitStatusText me, "SVN commit of:" && workingFolder 2430 2430 2431 theresult = mDoShellCmd(me, svnBinary&& "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, RETURN, 0, 1)2431 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE, RETURN, 0, 1) 2432 2432 2433 2433 … … 2598 2598 repeat with castlibPaths in castlibPathList 2599 2599 2600 theresult = mDoShellCmd(me, svnBinary&& "update" && "-r" && revisionNumber && QUOTE & castlibPaths[#newpathUnix] & QUOTE, RETURN, 0, 1)2600 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && "-r" && revisionNumber && QUOTE & castlibPaths[#newpathUnix] & QUOTE, RETURN, 0, 1) 2601 2601 2602 2602 if count(theresult) < 1 then … … 2728 2728 revisionNumber = getValidRevNumber(me, revisionNumber) 2729 2729 2730 theresult = mDoShellCmd(me, svnBinary&& "update" && "-r" && revisionNumber && QUOTE & workingFolderUnix & QUOTE, RETURN, 0, 1)2730 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" && "-r" && revisionNumber && QUOTE & workingFolderUnix & QUOTE, RETURN, 0, 1) 2731 2731 2732 2732 if count(theresult) > 0 then … … 3159 3159 3160 3160 3161 theresult = mDoShellCmd(me, svnBinary&& "update" & workingFolder, RETURN, 0, 1)3161 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" & workingFolder, RETURN, 0, 1) 3162 3162 3163 3163 3164 3164 if count(theresult) < 1 then 3165 theresult = mDoShellCmd(me, svnBinary&& "update" & workingFolder && "2>&1", RETURN, 0, 1)3165 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "update" & workingFolder && "2>&1", RETURN, 0, 1) 3166 3166 if count(theresult) < 1 then 3167 3167 theError = theresult[1] … … 3202 3202 3203 3203 3204 theresult = mDoShellCmd(me, svnBinary&& "status" & workingFolder, RETURN, 0, 1)3204 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "status" & workingFolder, RETURN, 0, 1) 3205 3205 3206 3206 cnt = count(theresult) … … 3230 3230 else 3231 3231 3232 mDoShellCmd(me, svnBinary&& "rm" && QUOTE & answ & QUOTE, RETURN, 0, 1)3232 mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "rm" && QUOTE & answ & QUOTE, RETURN, 0, 1) 3233 3233 3234 3234 put "Deleted file" && answ && "in the repository" … … 3240 3240 3241 3241 "?": -- newly added file 3242 mDoShellCmd(me, svnBinary&& "add" && QUOTE & answ & QUOTE, RETURN, 0, 1)3242 mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "add" && QUOTE & answ & QUOTE, RETURN, 0, 1) 3243 3243 3244 3244 put "Added file" && answ && "to the repository" … … 3258 3258 mDisplayWaitStatusText me, "SVN commit:" && workingFolder 3259 3259 3260 theresult = mDoShellCmd(me, svnBinary&& "ci --message" && QUOTE & msg & QUOTE & workingFolder, RETURN, 0, 1)3260 theresult = mDoShellCmd(me, QUOTE & svnBinary & QUOTE && "ci --message" && QUOTE & msg & QUOTE & workingFolder, RETURN, 0, 1) 3261 3261 3262 3262
Note: See TracChangeset
for help on using the changeset viewer.
