From: Daniel A. S. <st...@ic...> - 2002-04-09 10:16:27
|
Jean-Claude, At 11:48 +0200 on 9/4/02, Jean-Claude Wippler wrote: >Regarding the TEXT resource for pkgIndex.tcl: I would expect that one can >also use the *nix/win* approach and store it as normal file? looking at tcl/library/package.tcl, that appears to be the case indeed; tclPkgUnknown first looks for pkgIndex.tcl files and only uses tclMacPkgSearch to search for TEXT resources afterwards. after sending my last message, it occurred to me that the question of using a no resource fork filesystem on the mac is moot anyway as the mac tclkit _executable_ most definitely needs a resource fork (for the 'cfrg' resource). >FWIW, CD's can be mastered as hybrid on unix, using "mkisofs" - the >TclBlast! 1999 CD was built that way to work on a dozen platforms, >including classic MacOS. It takes some tinkering, but is fully described >in the documentation (basically you need to tell mkisofs how/where to get >the resource fork data). the question is how to setup mac files with a resource fork on a unix box, so that mkisofs does the right thing when building HFS+, I remember playing with this unsuccessfully a long time ago. >Daniel, we could use MacBinary for this. Is there a Tcl script which >unpacks MacBinary to data/rsrc forks on the Mac? If not, I'd be happy to >help make it happen - since this seems indeed to be the one last piece on >the puzzle to be able to run class MacOS shared libs from vfs. it's probably not possible to do macbinary from the script level, as the resource fork has to be read in a flat file manner for the macbinary format, which isn't possible through the tcl [resource] command. However, it should be easy to make a tcl extension from the public source macbinary code. BTW, JC, I'm currently working on updating my tclkit patches to the vfs, tclkit & Tcl/Tk HEADs, to be able to finally answer your message from like a month ago, sorry for the delay... everything builds fine, but I've again run into some startup troubles with the init scripts, which I'm debugging now. hopefully I'll have a new build of tclkit soon, with only small patches to tclkit. (HEAD metakit & mktcl build & work flawlessly on the mac now btw, thanks) Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Department of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |