FROM : Nick Zitzmann
DATE : Thu Jan 16 18:30:01 2003
On Thursday, January 16, 2003, at 07:42 AM, Paul Nicholson wrote:
> So how is this normally handled, do I copy everything to /tmp, move it
> to its destination with a script, then delete the residue in the
> temporary location, or is there a way just to move files directly from
> my package to multiple destination directories?
Set the destination directory to / and include the path to which the
files are to be installed in the archive. Take a look at the OS update
receipts in /Library/Receipts; this is how the OS update packages
install files in multiple places using a single package.
Don't use scripts if at all possible, since scripts that move or delete
files can be dangerous if they're not written correctly.
Note that, if you do this, then your package will blow away any
symbolic links in the path to the files to be installed... This is a
problem with Pax, the archival tool used by the install system. Also,
if you do this, you have to be careful that you don't override existing
permissions on files/directories.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/
Warning! Anything you say will be misinterpreted and quoted against you
ten years from now.
DATE : Thu Jan 16 18:30:01 2003
On Thursday, January 16, 2003, at 07:42 AM, Paul Nicholson wrote:
> So how is this normally handled, do I copy everything to /tmp, move it
> to its destination with a script, then delete the residue in the
> temporary location, or is there a way just to move files directly from
> my package to multiple destination directories?
Set the destination directory to / and include the path to which the
files are to be installed in the archive. Take a look at the OS update
receipts in /Library/Receipts; this is how the OS update packages
install files in multiple places using a single package.
Don't use scripts if at all possible, since scripts that move or delete
files can be dangerous if they're not written correctly.
Note that, if you do this, then your package will blow away any
symbolic links in the path to the files to be installed... This is a
problem with Pax, the archival tool used by the install system. Also,
if you do this, you have to be careful that you don't override existing
permissions on files/directories.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/
Warning! Anything you say will be misinterpreted and quoted against you
ten years from now.
| Related mails | Author | Date |
|---|---|---|
| Paul Nicholson | Jan 16, 07:40 | |
| Tobias Peciva | Jan 16, 12:40 | |
| Nick Zitzmann | Jan 16, 18:30 |






Cocoa mail archive

