emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X GNU Emacs Installer (make-package)


From: David Caldwell
Subject: Re: Mac OS X GNU Emacs Installer (make-package)
Date: Sat, 30 Nov 2002 19:38:08 -0800

On 11/30/02 5:53 PM -0800 Steven Tamm wrote:

Yeah, I think you are right.  The one concern that I had was what would
happen if the location of the Emacs.app was moved.  Your solution fixes
that by creating a "shadow" application.  Why not make the whole
Emacs.app directory be a link to the lib-exec one?  That way you wouldn't
have the problem of dealing with two sets of files depending on whether
you did it from the command line or from the finder.  The downside is
that the icon in the Applications menu would be a little screwed up.

I really wanted to do cp -lr but OS X cp doesn't support -l. In the end I did this:

address@hidden ~/src/emacs-dev/emacs-cvs/mac]$ find /Applications/Emacs.app -type f | xargs du -s
8       /Applications/Emacs.app/Contents/.cvsignore
8       /Applications/Emacs.app/Contents/Info.plist
14168   /Applications/Emacs.app/Contents/MacOS/Emacs
8       /Applications/Emacs.app/Contents/PkgInfo
104     /Applications/Emacs.app/Contents/Resources/Emacs.icns
16      /Applications/Emacs.app/Contents/Resources/Emacs.rsrc
8 /Applications/Emacs.app/Contents/Resources/English.lproj/InfoPlist.strings

And decided that it was negligible to have a complete copy in libexec (as long as Contents/MacOS/Emacs was a link...).

As another aside, I think the make-package script should eventually be
rewritten in perl because of the guarantee that it exists on Mac OS X.
Any objections.

I'm a big perl fan so you won't hear objections from me :).

If Emacs.app is a symlink then it's a non-issue (obviously).  pax at that
point is just a wrapper around tar (see the man page), so I would assume
it would do the right thing in any case.

Symlinking the whole app works just as well. The only "downside" is that you get the little alias stamp on the icon. It doesn't really matter to me if it's a symlink or a hard link. I can't see what either one offers over the other one (in this case).

-David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]