From e3fa8747faa707604e78e010fcb42aacfab8add0 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 8 Aug 1997 14:51:54 +0000 Subject: Modified for CW Pro 1 projects. Convention used: .mu files are old project files, which have to be cleaned up before checking in, .prj files are CW Pro 1 projects (which are always clean). Prj files are still binhexed, even though they only have a data fork (and, hence, could be checked in in binary mode). --- Mac/scripts/EditPythonPrefs.rsrc.hqx | 16 +++++----- Mac/scripts/MkDistr.rsrc.hqx | 53 ++++++++++++++++----------------- Mac/scripts/binhextree.py | 57 +++++++++++++++++++++++------------- 3 files changed, 70 insertions(+), 56 deletions(-) diff --git a/Mac/scripts/EditPythonPrefs.rsrc.hqx b/Mac/scripts/EditPythonPrefs.rsrc.hqx index 66262c0..6332252 100644 --- a/Mac/scripts/EditPythonPrefs.rsrc.hqx +++ b/Mac/scripts/EditPythonPrefs.rsrc.hqx @@ -2,7 +2,7 @@ :&%9NDA43HA4SEfj3FQ9QFbjbFh*M!(*cFQ058d9%!3#3"`m+@DJ!N!3"!!!!$FN !!!c*!!!"36B8)&3JD!!8)&"p%E"S%3!k!@FQ%Lm-6VS#$!`k!&Tj&%9NDA43HA4 -SEfj3FQ9QFbjbFh*MF`)!!!!rN!B!!$q3#!#3'+l'Bf!!N!B2#[m4`+KT!4e!%Ir +SEfj3FQ9QFbjbFh*MF`)!!!!rN!B!!$q3#!#3',!'2ed!N!B2#[m4`+KT!4e!%Ir c%h!!%#lrmlh5%@B386Dq9@X"!8*%[D'q9@X"!6"4-J&R(N39$!!!('85F!!3,N- 9$!!!(f)'F!&J!!%"!LaD9#dZ4,d"!"Xm!@B`*e8q'NU!)&-#+!#r!#iL!1d*!J% !3)-Sfc36UGF[$%kk!3P+CfX"!+CA3cS!!!%!!!%!!!!#J!!!"%!!!!JJ!!!3%!! @@ -48,17 +48,17 @@ jG'K[EL"SEfeP)'C[E'4PFLNk!*!&!4-!&!%P!5X%'N4PCQ&eE(3JFh4KFR4eF#" 1"4G8FQ&MC5"T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NC5"hD@jNEhGTaJ: diff --git a/Mac/scripts/binhextree.py b/Mac/scripts/binhextree.py index b354e4a..f5ebc8e 100644 --- a/Mac/scripts/binhextree.py +++ b/Mac/scripts/binhextree.py @@ -24,7 +24,7 @@ TOP='' # Where to put CW projects, relative to TOP CWDIR=':Mac:mwerks:projects' # From which folders to put projects there -CWDIRDIRS=['build.macppc.stand', 'build.macppc.shared', 'build.mac68k.stand', 'build.mac68k.shared', 'PlugIns'] +CWDIRDIRS=['build.mac', 'build.macstand', 'PlugIns'] # Helper routines def binhexit(path, name): @@ -72,16 +72,14 @@ project_files = {} def hexbincwprojects(creator): """Compact and hexbin all files remembered with a given creator""" - try: - mgr = MwShell(creator, start=1) - except 'foo': - print 'Not handled:', creator - return + cw_running = 0 for fss in project_files[creator]: srcfile = fss.as_pathname() + old_style = 0 if srcfile[-1] == 'µ': dstfile = srcfile[:-1]+'mu.hqx' + old_style = 1 elif srcfile[-3] == '.mu': dstfile = srcfile + '.hqx' elif ord(srcfile[-1]) >= 128: @@ -94,14 +92,23 @@ def hexbincwprojects(creator): print 'Skip', dstfile,'- Up-to-date' continue print 'Compacting', dstfile - mgr.open(fss) - mgr.Reset_File_Paths() - mgr.Remove_Binaries() - mgr.Close_Project() + if old_style: + if not cw_running: + try: + mgr = MwShell(creator, start=1) + except 'foo': + print 'Not handled:', creator + return + cw_running = 1 + mgr.open(fss) + mgr.Reset_File_Paths() + mgr.Remove_Binaries() + mgr.Close_Project() print 'Binhexing', dstfile binhex.binhex(srcfile, dstfile) - mgr.quit() + if cw_running: + mgr.quit() def copycwproject(path, name): """Copy CW project (if needed) and remember for hexbinning""" @@ -119,19 +126,25 @@ def copycwproject(path, name): return dstfile = os.path.join(dstdir, os.path.join(srcdir, name)) else: - if path[-2:] != '.µ': + if path[-2:] == '.µ': + dstfile = path[:-2]+ '.mu' + elif path[-4:] == '.prj': + dstfile = None + else: return - dstfile = path[:-2]+ '.mu' - # If the destination doesn't exists or is older that the source - # we copy and remember it - - if os.path.exists(dstfile) and \ - os.stat(dstfile)[8] >= os.stat(path)[8]: - print 'Not copying', path,'- Up-to-date' + if dstfile: + # If the destination doesn't exists or is older that the source + # we copy and remember it + + if os.path.exists(dstfile) and \ + os.stat(dstfile)[8] >= os.stat(path)[8]: + print 'Not copying', path,'- Up-to-date' + else: + print 'Copy', path + macostools.copy(path, dstfile) else: - print 'Copy', path - macostools.copy(path, dstfile) + dstfile = path fss = macfs.FSSpec(dstfile) creator = fss.GetCreatorType()[0] @@ -177,6 +190,8 @@ extensions = [ ('.rsrc', binhexit), ('.gif', binhexit), ('.µ', copycwproject), + ('.prj', copycwproject), + ('.prj.exp', copycwexpfile), ('.µ.exp', copycwexpfile) ] -- cgit v0.12