Changeset 21 for trunk/lingosource
- Timestamp:
- 09/13/07 17:54:24 (5 years ago)
- Location:
- trunk/lingosource
- Files:
-
- 4 edited
-
castlib1/OSCmenu_Utilities.ls (modified) (2 diffs)
-
castlib1/alexUtilities.ls (modified) (25 diffs)
-
castlib1/memberInfo.xml (modified) (11 diffs)
-
castlib2/memberInfo.xml (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/OSCmenu_Utilities.ls
r20 r21 162 162 subli.add("mExportListOfUsedLinkedScripts me") 163 163 164 165 166 li.add("") 167 li.add("Compare to SVN") 168 subli = [] 169 li.add(subli) 170 subli.add("mCompareCurrentScriptToWorkingCopy me, convertLineBreaksToUnix") 171 subli.add("mExportCurrentScriptToWorkingCopyAndOpen me, convertLineBreaksToUnix") 172 164 173 end if 165 174 … … 198 207 li.add(subli) 199 208 200 subli.add("mSVN_Commit_SelectedCastlib_AND_Scripttext me, chooseNewPath, commitMsg, selectionList Member")209 subli.add("mSVN_Commit_SelectedCastlib_AND_Scripttext me, chooseNewPath, commitMsg, selectionList") 201 210 subli.add("mSVN_Commit_CurrentMovie_Binaries_AND_Scripttext me, chooseNewPath, commitMsg") 202 211 ---------------------------------------------------- -
trunk/lingosource/castlib1/alexUtilities.ls
r20 r21 2338 2338 end if 2339 2339 2340 bbdiffpath = shell_cmd_list("which bbdiff")2341 if count(bbdiffpath) > 0 then2342 bbdiffpath = bbdiffpath[1]2343 else2344 bbdiffpath = ""2345 alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer."2346 end if2340 -- bbdiffpath = shell_cmd_list("which bbdiff") 2341 -- if count(bbdiffpath) > 0 then 2342 -- bbdiffpath = bbdiffpath[1] 2343 -- else 2344 -- bbdiffpath = "" 2345 -- alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer." 2346 -- end if 2347 2347 2348 2348 … … 3085 3085 3086 3086 3087 3087 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3088 3089 on mCompareCurrentScriptToWorkingCopy me, convertLineBreaksToUnix 3090 3091 3092 if not(the platform contains "mac") then 3093 alert "This function only works with BBDiff, a command line tool provided by the OSX app BBEdit. I am sure, something similar exists for windows too, but you'll need to change this script yourself for windows" 3094 exit 3095 end if 3096 3097 if mCheckForXtra(me, "Shell") = 0 then 3098 mShellXtraMissing me 3099 exit 3100 end if 3101 3102 3103 bbdiffpath = mFindUnixAppInPath(me, "bbdiff") 3104 if length(bbdiffpath) < 1 then 3105 alert "This function only works with BBDiff, a command line tool provided by BBEdit. Consider installing BBEdits command line tools, it is really helpful." 3106 exit 3107 end if 3108 3109 3110 3111 cl = the activecastlib 3112 sel = the selection of castlib cl 3113 3114 repeat with sub in sel 3115 repeat with mem = sub[1] to sub[2] 3116 memref = member(mem,cl) 3117 if memref.type = #script then 3118 3119 thePath = mFindWorkingCopyCounterpart(me, memref) 3120 3121 if length(thePath) < 1 then 3122 alert "Corresponding member was not found" 3123 exit 3124 end if 3125 3126 st = memref.scripttext 3127 3128 3129 --------------------- 3130 -- create a temporary file from scripttext: 3131 tempSrcPath = shell_cmd_list("mktemp -t temp_BBDiff_file1") 3132 tempSrcPath = tempSrcPath[1] 3133 3134 if mCheckForXtra(me, "budapi") = 0 then 3135 tempSrcHFSPath = shell_cmd_list("osascript -e" && QUOTE & "return POSIX file \" & QUOTE & tempSrcPath & "\" & QUOTE & " as string" & QUOTE) 3136 tempSrcHFSPath = tempSrcHFSPath[1] 3137 else 3138 tempSrcHFSPath = baHFSName(tempSrcPath) 3139 end if 3140 3141 3142 3143 ------------------------------------------ trac subversion support works better with unix linebreaks... 3144 if voidP(convertLineBreaksToUnix) then convertLineBreaksToUnix = 1 3145 if convertLineBreaksToUnix = "" then convertLineBreaksToUnix = 1 3146 3147 if convertLineBreaksToUnix = 1 then 3148 3149 if mCheckForXtra(me, "Pregex") = 1 then 3150 3151 scrTextLi = [st] 3152 pregex_replace(scrTextLi, "\x0D\x0A?", "g", "\x0A") 3153 st = scrTextLi[1] 3154 3155 else 3156 3157 fndStr = numToChar(13) & numToChar(10) 3158 offs = offset(fndStr, st) 3159 repeat while offs > 0 3160 delete char offs of st 3161 offs = offset(fndStr, st) 3162 end repeat 3163 3164 fndStr = numToChar(13) 3165 offs = offset(fndStr, st) 3166 repeat while offs > 0 3167 put numToChar(10) into char offs of st 3168 offs = offset(fndStr, st) 3169 end repeat 3170 3171 end if 3172 end if 3173 ----------------------------------------- 3174 3175 3176 3177 theResult = mSaveTextToTempFile(me, st, tempSrcHFSPath) 3178 --------------------- 3179 3180 3181 3182 if mCheckForXtra(me, "budapi") = 0 then 3183 comm = thePath 3184 offs = offset(":", comm) 3185 repeat while offs 3186 put "/" into char offs of comm 3187 offs = offset(":", comm) 3188 end repeat 3189 put "/Volumes/" before comm 3190 else 3191 comm = baUnixName(thePath) 3192 end if 3193 3194 shell_cmd(bbdiffpath & " --ignore-curly-quotes --ignore-spaces --wait --resume " "E& tempSrcPath "E&"E& comm "E) 3195 3196 -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished 3197 3198 3199 -------- now write the results of the BBEdit diff back into the script members 3200 scrText = mGetTextFromTempFile(me, tempSrcHFSPath) 3201 3202 3203 if convertLineBreaksToUnix = 1 then 3204 ------------------------------------------ trac subversion support works better with unix linebreaks... 3205 if mCheckForXtra(me, "Pregex") = 1 then 3206 3207 scrTextLi = [scrText] 3208 if the platform contains "mac" then 3209 pregex_replace(scrTextLi, "\x0D?\x0A", "g", "\x0D") 3210 else 3211 pregex_replace(scrTextLi, "\x0D([^\x0A])", "g", "\x0D\x0A\1") 3212 pregex_replace(scrTextLi, "([^\x0D])\x0A", "g", "\1\x0D\x0A") 3213 end if 3214 scrText = scrTextLi[1] 3215 3216 else 3217 3218 if the platform contains "mac" then 3219 3220 -- first convert windows to mac 3221 fndStr = numToChar(13) & numToChar(10) 3222 offs = offset(fndStr, scrText) 3223 repeat while offs > 0 3224 put numToChar(13) into char offs to offs+1 of scrText 3225 offs = offset(fndStr, scrText) 3226 end repeat 3227 3228 -- now convert unix to mac 3229 fndStr = numToChar(10) 3230 offs = offset(fndStr, scrText) 3231 repeat while offs > 0 3232 put numToChar(13) into char offs of scrText 3233 offs = offset(fndStr, scrText) 3234 end repeat 3235 3236 else 3237 3238 fndStr = numToChar(13) & numToChar(10) 3239 offs = offset(fndStr, scrText) 3240 repeat while offs > 0 3241 put "ÀÀÀ" into char offs+1 of scrText 3242 offs = offset(fndStr, scrText) 3243 end repeat 3244 3245 3246 fndStr = numToChar(10) 3247 offs = offset(fndStr, scrText) 3248 repeat while offs > 0 3249 put numToChar(13) & numToChar(10) into char offs of scrText 3250 offs = offset(fndStr, scrText) 3251 end repeat 3252 3253 3254 3255 fndStr = numToChar(13) & "ÀÀÀ" 3256 offs = offset(fndStr, scrText) 3257 repeat while offs > 0 3258 put numToChar(13) & numToChar(10) into char offs to offs+3 of scrText 3259 offs = offset(fndStr, scrText) 3260 end repeat 3261 3262 3263 3264 fndStr = "ÀÀÀ" 3265 offs = offset(fndStr, scrText) 3266 repeat while offs > 0 3267 put numToChar(13) & numToChar(10) into char offs to offs+2 of scrText 3268 offs = offset(fndStr, scrText) 3269 end repeat 3270 3271 end if 3272 3273 end if 3274 ----------------------------------------- 3275 end if 3276 3277 3278 memref.scripttext = scrText 3279 3280 end if 3281 3282 end repeat 3283 end repeat 3284 3285 3286 3287 3288 3289 3290 3291 end 3292 3293 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3294 3295 on mFindUnixAppInPath me, whichBinaryName 3296 3297 binaryPath = [] 3298 3299 binaryPath = shell_cmd_list("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") 3300 3301 if count(binaryPath) > 0 then return binaryPath[1] 3302 3303 return "" 3304 3305 end 3306 3307 3308 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3309 -- this can be used to open the corresponding script in bbedit and svn compare it to head 3310 3311 on mExportCurrentScriptToWorkingCopyAndOpen me, convertLineBreaksToUnix 3312 3313 mExportScriptsToFolder me, 1, 1, convertLineBreaksToUnix 3314 3315 cl = the activecastlib 3316 sel = the selection of castlib cl 3317 3318 repeat with sub in sel 3319 repeat with mem = sub[1] to sub[2] 3320 memref = member(mem,cl) 3321 if memref.type = #script then 3322 3323 thePath = mFindWorkingCopyCounterpart(me, memref) 3324 3325 if length(thePath) < 1 then 3326 alert "Corresponding member was not found" 3327 exit 3328 end if 3329 3330 st = memref.scripttext 3331 3332 mSaveToTextFile me, st, thePath 3333 3334 if the platform contains "mac" then 3335 if (mCheckForXtra(me, "budapi") + mCheckForXtra(me, "shell")) = 2 then 3336 3337 bbeditBinary = mFindUnixAppInPath(me, "bbedit") 3338 if length(bbeditBinary) > 0 then 3339 shell_cmd(bbeditBinary && QUOTE & baUnixName(thePath) & QUOTE) 3340 exit 3341 end if 3342 3343 end if 3344 end if 3345 3346 open thePath 3347 exit 3348 3349 end if 3350 3351 end repeat 3352 end repeat 3353 3354 end 3355 3356 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3357 3358 on mFindWorkingCopyCounterpart me, memref 3359 3360 workingCopies = value(getPref("svn_workingCopies_paths.txt")) 3361 if ilk(workingCopies) <> #proplist then workingCopies = [:] 3362 3363 theFolder = mGetWorkingCopyPath(me, the moviepath & the moviename, 0, workingCopies, "No working copy is specified for this movies scripttext. Please select a working copy for the scripttext now.") 3364 3365 if length(theFolder) < 1 then return "" 3366 3367 3368 m = memref.castlibnum 3369 3370 delim = the last char of the applicationpath 3371 olddelim = the itemdelimiter 3372 the itemdelimiter = delim 3373 theFoldername = theFolder 3374 if the last char of theFoldername = delim then delete the last char of theFoldername 3375 else put delim after theFolder 3376 theFoldername = the last item of theFoldername 3377 the itemdelimiter = olddelim 3378 3379 infolist = 0 3380 3381 if theFoldername <> "castlib" & m then 3382 3383 newPath = theFolder & "castlib" & m 3384 3385 if baFolderExists(newPath) = 0 then 3386 3387 infolistPath = theFolder & "memberInfo.xml" 3388 3389 infolist = mReadXML_2_List(me, infolistPath) 3390 3391 if ilk(infolist) <> #proplist then 3392 3393 alert "The specified folder doesn't seem to contain info for this castlib: file memberInfo.xml missing." 3394 return "" 3395 3396 else 3397 3398 theFolder = newPath 3399 3400 end if 3401 3402 else 3403 3404 theFolder = newPath 3405 3406 end if 3407 3408 end if 3409 3410 3411 if infolist = 0 then 3412 3413 infolistPath = theFolder & "memberInfo.xml" 3414 infolist = mReadXML_2_List(me, infolistPath) 3415 3416 if ilk(infolist) <> #proplist then 3417 3418 alert "The specified folder doesn't seem to contain info for this castlib: file memberInfo.xml missing." 3419 return "" 3420 3421 end if 3422 3423 end if 3424 3425 3426 3427 3428 cnt = count(infolist) 3429 3430 repeat with l = 1 to cnt 3431 li = infolist[l] 3432 if li.getaprop(#memberName) = memref.name then 3433 3434 fname = string(infolist[l].getaprop(#fname)) 3435 if length(fname) < 1 then fname = string(infolist.getpropat(l)) 3436 fpath = theFolder & fname & ".ls" 3437 3438 if baFileExists(fpath) then return fpath 3439 3440 end if 3441 end repeat 3442 3443 3444 return "" 3445 3446 end 3088 3447 3089 3448 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx … … 3268 3627 3269 3628 ------------------------------------------ trac subversion support works better with unix linebreaks... 3629 if voidP(convertLineBreaksToUnix) then convertLineBreaksToUnix = 1 3630 if convertLineBreaksToUnix = "" then convertLineBreaksToUnix = 1 3631 3270 3632 if convertLineBreaksToUnix = 1 then 3271 3633 … … 3357 3719 3358 3720 3359 infolist.setaprop(origname, [#scripttype: memref.scripttype, #comments: memref.comments, #membername: memname]) 3721 infolist.setaprop(symbol(origname), [#scripttype: memref.scripttype, #comments: memref.comments, #membername: memname, #fname: origname]) 3722 -- we need to store origname as string additionally to symbol, as the symbol may change the case (although only ufs is case sensitive 3723 -- I am more comfortable with not relying on case insensitivity of filesystems) 3360 3724 3361 3725 end if … … 3507 3871 repeat with n = 1 to cnt 3508 3872 thisMemberInfo = infoList[n] 3509 fpath = thePath & infoList.getPropAt(n) 3873 fname = string(thisMemberInfo.getaprop(#fname)) 3874 if length(fname) < 1 then fname = string(infoList.getPropAt(n)) 3875 fpath = thePath & fname 3510 3876 mImportScriptWithThumbnail me, fpath & ".ls", fd, 1, thisMemberInfo 3511 3877 end repeat … … 3583 3949 sel = the selection of castlib cl 3584 3950 anz = sel.count 3585 cnt = 13951 cnt = count(infolist) 3586 3952 repeat with n = 1 to anz 3587 3953 repeat with m = sel[n][1] to sel[n][2] … … 3593 3959 li = infolist[l] 3594 3960 if li.getaprop(#memberName) = memref.name then 3595 fpath = thePath & infolist.getpropat(l) & ".ls" 3961 3962 fname = string(infolist[l].getaprop(#fname)) 3963 if length(fname) < 1 then fname = string(infolist.getpropat(l)) 3964 fpath = thePath & fname & ".ls" 3596 3965 3597 3966 if baFileExists(fpath) then … … 3672 4041 if ilk(infolist) <> #proplist then infolist = [:] 3673 4042 3674 infolist = infolist.getaprop( fname)4043 infolist = infolist.getaprop(symbol(fname)) 3675 4044 if ilk(infolist) <> #proplist then infolist = [:] 3676 4045 end if … … 3772 4141 pregex_replace(scrTextLi, "\x0D?\x0A", "g", "\x0D") 3773 4142 else 3774 pregex_replace(scrTextLi, "\x0D?\x0A", "g", "\x0D\x0A") 4143 pregex_replace(scrTextLi, "\x0D([^\x0A])", "g", "\x0D\x0A\1") 4144 pregex_replace(scrTextLi, "([^\x0D])\x0A", "g", "\1\x0D\x0A") 3775 4145 end if 3776 4146 scrText = scrTextLi[1] … … 3780 4150 if the platform contains "mac" then 3781 4151 4152 -- first convert windows to mac 3782 4153 fndStr = numToChar(13) & numToChar(10) 3783 4154 offs = offset(fndStr, scrText) … … 3787 4158 end repeat 3788 4159 4160 -- now convert unix to mac 4161 fndStr = numToChar(10) 4162 offs = offset(fndStr, scrText) 4163 repeat while offs > 0 4164 put numToChar(13) into char offs of scrText 4165 offs = offset(fndStr, scrText) 4166 end repeat 4167 3789 4168 else 4169 4170 4171 -- fndStr = numToChar(13) & numToChar(10) 4172 -- offs = offset(fndStr, scrText) 4173 -- repeat while offs > 0 4174 -- delete char offs of scrText 4175 -- offs = offset(fndStr, scrText) 4176 -- end repeat 3790 4177 3791 4178 fndStr = numToChar(13) & numToChar(10) 3792 4179 offs = offset(fndStr, scrText) 3793 4180 repeat while offs > 0 3794 delete char offsof scrText4181 put "ÀÀÀ" into char offs+1 of scrText 3795 4182 offs = offset(fndStr, scrText) 3796 4183 end repeat 4184 4185 4186 fndStr = numToChar(10) 4187 offs = offset(fndStr, scrText) 4188 repeat while offs > 0 4189 put numToChar(13) & numToChar(10) into char offs of scrText 4190 offs = offset(fndStr, scrText) 4191 end repeat 4192 3797 4193 3798 4194 … … 3803 4199 offs = offset(fndStr, scrText) 3804 4200 end repeat 4201 3805 4202 3806 4203 … … 3969 4366 3970 4367 if li.getaprop(#memberName) = memref.name then 3971 fpath = thePath & infolist.getpropat(l) & ".ls" 4368 4369 theFilename = string(li.getaprop(#fname)) 4370 if length(theFilename) < 1 then theFilename = string(infolist.getpropat(l)) 4371 4372 fpath = thePath & theFilename & ".ls" 3972 4373 3973 4374 if baFileExists(fpath) then … … 4069 4470 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 4070 4471 4071 on mSVN_Commit_SelectedCastlib_AND_Scripttext me, chooseNewPath, commitMsg, selectionList Member4472 on mSVN_Commit_SelectedCastlib_AND_Scripttext me, chooseNewPath, commitMsg, selectionList 4072 4473 4073 4474 commitMsg = string(commitMsg) … … 4081 4482 end if 4082 4483 4083 theResult = mSVN_Commit_CurrentScripts_ScriptText(me, castlib(the activecastlib), chooseNewPath, commitMsg, 1, selectionList Member)4084 4085 theResult = mSVN_Commit_SelectedCastlib(me, chooseNewPath, commitMsg, 1, 0, selectionList Member)4086 4087 end 4088 4089 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 4090 4091 on mSVN_Commit_SelectedCastlib me, chooseNewPath, commitMsg, dontSave, dontShowAlert, selectionList Member4484 theResult = mSVN_Commit_CurrentScripts_ScriptText(me, castlib(the activecastlib), chooseNewPath, commitMsg, 1, selectionList) 4485 4486 theResult = mSVN_Commit_SelectedCastlib(me, chooseNewPath, commitMsg, 1, 0, selectionList) 4487 4488 end 4489 4490 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 4491 4492 on mSVN_Commit_SelectedCastlib me, chooseNewPath, commitMsg, dontSave, dontShowAlert, selectionList 4092 4493 4093 4494 4094 4495 castlibList = 0 4095 selectionListMember = member(selectionListMember) 4096 if length(selectionListMember) > 0 then 4097 mem = member(selectionListMember) 4098 if not(voidP(mem)) then 4099 dertext = mem.text 4100 dertext = value(dertext.line[1]) 4101 if listP(dertext) then 4102 castlibList = [] 4103 dertextCnt = count(dertext) 4104 repeat with n = 1 to dertextCnt 4105 if listP(dertext[n]) then 4106 castlibList.add(n) 4496 selectionList = string(selectionList) 4497 if length(selectionList) > 0 then 4498 if char 1 of selectionList <> "[" then put "[" before selectionList 4499 if the last char of selectionList <> "]" then put "]" after selectionList 4500 selectionList = value(selectionList) 4501 if listP(selectionList) then 4502 clnum = the number of castlibs + 1 4503 castlibList = [] 4504 selectionListCnt = count(selectionList) 4505 repeat with n = 1 to selectionListCnt 4506 int = integer(selectionList[n]) 4507 if integerP(int) then 4508 if clnum > int then 4509 if castlibList.getPos(int) < 1 then castlibList.add(int) 4107 4510 end if 4108 end repeat4109 end if4511 end if 4512 end repeat 4110 4513 end if 4111 4514 end if … … 4127 4530 end repeat 4128 4531 4129 if count(castlibList) < 1 then return 0 4532 4533 if count(castlibList) < 1 then 4534 alert "No castlib selected. The parameter didn't yiled a valid list. Make sure, that you provide a linear list with integers, specifying a number of a castlib each." 4535 return 0 4536 end if 4537 4538 put "Committing castlibs:" && castlibList 4130 4539 4131 4540 … … 4196 4605 4197 4606 4198 repeat with cl in castlibList 4607 castlibListCnt = count(castlibList) 4608 repeat with r = 1 to castlibListCnt 4609 cl = castlibList[r] 4199 4610 4200 4611 fname = castlib(cl).filename … … 4217 4628 baCopyFileProgress(fname, newpath, "Always", "Copying castlib " & actCL & " to working folder", "", 33) 4218 4629 4219 castlibList[ cl] = [cl, fname, newpath, newpathDir]4630 castlibList[r] = [cl, fname, newpath, newpathDir] 4220 4631 4221 4632 else … … 4233 4644 else 4234 4645 4235 repeat with cl in castlibList 4646 castlibListCnt = count(castlibList) 4647 repeat with r = 1 to castlibListCnt 4648 cl = castlibList[r] 4236 4649 newpath = fname 4237 4650 castlibList[cl] = [cl, fname, fname] … … 4247 4660 workingFolder = baUnixName(workingFolder) 4248 4661 4249 repeat with cl in castlibList 4250 castlibList[cl][3] = baUnixName(castlibList[cl][3]) 4662 castlibListCnt = count(castlibList) 4663 repeat with r = 1 to castlibListCnt 4664 castlibList[r][3] = baUnixName(castlibList[r][3]) 4251 4665 end repeat 4252 4666 … … 4257 4671 4258 4672 4259 4260 repeat with cl in castlibList 4673 isChanged = 0 4674 castlibListCnt = count(castlibList) 4675 repeat with r = 1 to castlibListCnt 4676 -- cl = castlibList[r] 4677 -- repeat with cl in castlibList 4261 4678 --------------------------------------- 4262 theresult = shell_cmd_list(svnBinary && "update" && QUOTE & castlibList[ cl][3] & QUOTE)4679 theresult = shell_cmd_list(svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE) 4263 4680 4264 4681 if count(theresult) < 1 then 4265 theresult = shell_cmd_list(svnBinary && "update" && QUOTE & castlibList[ cl][3] & QUOTE && "2>&1")4682 theresult = shell_cmd_list(svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE && "2>&1") 4266 4683 if count(theresult) < 1 then 4267 4684 theError = theresult[1] … … 4276 4693 4277 4694 4278 theresult = shell_cmd_list(svnBinary && "status" && QUOTE & castlibList[ cl][3] & QUOTE)4695 theresult = shell_cmd_list(svnBinary && "status" && QUOTE & castlibList[r][3] & QUOTE) 4279 4696 4280 4697 cnt = count(theresult) 4281 if cnt < 1 then 4282 alert "Apparently there are no changes to the most recent version in the svn repository: svn status is empty" 4283 return 0 4698 if cnt > 0 then 4699 isChanged = 1 4700 -- alert "Apparently there are no changes to the most recent version in the svn repository: svn status is empty" 4701 -- return 0 4284 4702 end if 4285 4703 4286 4704 end repeat 4287 4705 4706 if isChanged = 0 then 4707 alert "Apparently there are no changes to the most recent version in the svn repository: svn status is empty" 4708 return 0 4709 end if 4710 4711 4288 4712 pathStr = "" 4289 repeat with cl in castlibList 4290 put " " & QUOTE & castlibList[cl][3] & QUOTE after pathStr 4713 castlibListCnt = count(castlibList) 4714 repeat with r = 1 to castlibListCnt 4715 put " " & QUOTE & castlibList[r][3] & QUOTE after pathStr 4291 4716 end repeat 4292 4717 … … 4757 5182 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 4758 5183 4759 on mSVN_Commit_CurrentScripts_ScriptText me, selected_Members_Only, chooseNewPath, commitMsg, dontShowAlert, selectionList Member5184 on mSVN_Commit_CurrentScripts_ScriptText me, selected_Members_Only, chooseNewPath, commitMsg, dontShowAlert, selectionList 4760 5185 4761 5186 workingCopies = value(getPref("svn_workingCopies_paths.txt")) … … 4805 5230 ----------------------------------------------------- 4806 5231 4807 selectionListMember = member(selectionListMember) 4808 if length(selectionListMember) > 0 then 4809 mem = member(selectionListMember) 4810 if not(voidP(mem)) then 4811 dertext = mem.text 4812 dertext = value(dertext.line[1]) 4813 if listP(dertext) then 4814 castlibList = [] 4815 dertextCnt = count(dertext) 4816 repeat with n = 1 to dertextCnt 4817 if listP(dertext[n]) then 4818 castlibList.add(n) 5232 selectionList = string(selectionList) 5233 if length(selectionList) > 0 then 5234 5235 if char 1 of selectionList <> "[" then put "[" before selectionList 5236 if the last char of selectionList <> "]" then put "]" after selectionList 5237 5238 selectionList = value(selectionList) 5239 if listP(selectionList) then 5240 clnum = the number of castlibs + 1 5241 castlibList = [] 5242 selectionListCnt = count(selectionList) 5243 repeat with n = 1 to selectionListCnt 5244 int = integer(selectionList[n]) 5245 if integerP(int) then 5246 if clnum > int then 5247 if castlibList.getPos(int) < 1 then castlibList.add(int) 4819 5248 end if 4820 end repeat4821 end if5249 end if 5250 end repeat 4822 5251 end if 4823 5252 end if … … 4838 5267 end repeat 4839 5268 4840 if count(castlibList) < 1 then return 0 5269 5270 if count(castlibList) < 1 then 5271 alert "No castlib selected. The parameter didn't yiled a valid list. Make sure, that you provide a linear list with integers, specifying a number of a castlib each." 5272 return 0 5273 end if 5274 5275 5276 put "Commiting scripttext for castlibs:" && castlibList 4841 5277 ----------------------------------------------------- 4842 5278 -
trunk/lingosource/castlib1/memberInfo.xml
r1 r21 5 5 <comments></comments> 6 6 <memberName>thisMoviesScript</memberName> 7 <fname>thisMoviesScript</fname> 7 8 </thisMoviesScript> 8 9 <keyboardNavigation_FrameLoop> … … 10 11 <comments></comments> 11 12 <memberName>keyboardNavigation_FrameLoop</memberName> 13 <fname>keyboardNavigation_FrameLoop</fname> 12 14 </keyboardNavigation_FrameLoop> 13 15 <simpleBMMenu> … … 15 17 <comments></comments> 16 18 <memberName>simpleBMMenu</memberName> 19 <fname>simpleBMMenu</fname> 17 20 </simpleBMMenu> 18 21 <OSCmenu_Utilities> … … 20 23 <comments></comments> 21 24 <memberName>OSCmenu_Utilities</memberName> 25 <fname>OSCmenu_Utilities</fname> 22 26 </OSCmenu_Utilities> 23 27 <alexUtilities> … … 25 29 <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 26 30 <memberName>alexUtilities</memberName> 31 <fname>alexUtilities</fname> 27 32 </alexUtilities> 28 33 <convert_Lingo_2_CSS_Html> … … 30 35 <comments>~/Documents/Scripts/lingo/convert_Lingo_2_CSS_Html.ls</comments> 31 36 <memberName>convert_Lingo_2_CSS_Html</memberName> 37 <fname>convert_Lingo_2_CSS_Html</fname> 32 38 </convert_Lingo_2_CSS_Html> 33 39 <OSCmenu_Handlers> … … 35 41 <comments></comments> 36 42 <memberName>OSCmenu_Handlers</memberName> 43 <fname>OSCmenu_Handlers</fname> 37 44 </OSCmenu_Handlers> 38 45 <resizewindowfs> … … 40 47 <comments></comments> 41 48 <memberName>resizewindowfs</memberName> 49 <fname>resizewindowfs</fname> 42 50 </resizewindowfs> 43 51 <showHideHelp> … … 45 53 <comments></comments> 46 54 <memberName>showHideHelp</memberName> 55 <fname>showHideHelp</fname> 47 56 </showHideHelp> 48 57 <texthyperlinkBehavior> … … 50 59 <comments>/Users/alex/Documents/ALIEN/myLinkedScripts/texthyperlinkBehavior.ls</comments> 51 60 <memberName>texthyperlinkBehavior</memberName> 61 <fname>texthyperlinkBehavior</fname> 52 62 </texthyperlinkBehavior> 53 63 <bbdiff> … … 55 65 <comments></comments> 56 66 <memberName>bbdiff</memberName> 67 <fname>bbdiff</fname> 57 68 </bbdiff> 58 69 </Untitled> -
trunk/lingosource/castlib2/memberInfo.xml
r20 r21 5 5 <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 6 6 <memberName>commonMovieScript</memberName> 7 <fname>commonMovieScript</fname> 7 8 </commonmoviescript> 8 9 <FileIOFunktionen> … … 10 11 <comments>~/Documents/Scripts/lingo/FileIOFunktionen.ls</comments> 11 12 <memberName>FileIOFunktionen</memberName> 13 <fname>FileIOFunktionen</fname> 12 14 </FileIOFunktionen> 13 15 <GetSetPrefs> … … 15 17 <comments>~/Documents/Scripts/lingo/GetSetPrefs.ls</comments> 16 18 <memberName>GetSetPrefs</memberName> 19 <fname>GetSetPrefs</fname> 17 20 </GetSetPrefs> 18 21 <aleXtrasMovieScript> … … 20 23 <comments>~/Documents/Scripts/lingo/aleXtrasMovieScript.ls</comments> 21 24 <memberName>aleXtrasMovieScript</memberName> 25 <fname>aleXtrasMovieScript</fname> 22 26 </aleXtrasMovieScript> 23 27 <PseudoXMLPS> … … 25 29 <comments>~/Documents/Scripts/lingo/PseudoXMLPS.ls</comments> 26 30 <memberName>PseudoXMLPS</memberName> 31 <fname>PseudoXMLPS</fname> 27 32 </PseudoXMLPS> 28 33 <simpleGoToAction> … … 30 35 <comments>/Users/alex/Documents/ALIEN/myLinkedScripts/simpleGoToAction.ls</comments> 31 36 <memberName>simpleGoToAction</memberName> 37 <fname>simpleGoToAction</fname> 32 38 </simpleGoToAction> 33 39 <SpriteNameBeaver> … … 35 41 <comments>~/Documents/Scripts/lingo/SpriteNameBeaver.ls</comments> 36 42 <memberName>SpriteNameBeaver</memberName> 43 <fname>SpriteNameBeaver</fname> 37 44 </SpriteNameBeaver> 38 <commonmoviescript>39 <scriptType>#parent</scriptType>40 <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments>41 <memberName>commonMovieScript</memberName>42 </commonmoviescript>43 <commonmoviescript>44 <scriptType>#parent</scriptType>45 <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments>46 <memberName>commonMovieScript</memberName>47 </commonmoviescript>48 <commonmoviescript>49 <scriptType>#parent</scriptType>50 <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments>51 <memberName>commonMovieScript</memberName>52 </commonmoviescript>53 <commonMovieScript>54 <scriptType>#parent</scriptType>55 <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments>56 <memberName>commonMovieScript</memberName>57 </commonMovieScript>58 45 </Untitled>
Note: See TracChangeset
for help on using the changeset viewer.
