Using The Luggage with Apps that have spaces in their names
Recently when trying to build a package using The Luggage, I noticed that it would choke on apps that had spaces in their names. Doing some searching, I discovered that making it work is as simple as adding a custom stanza to the makefile for each app/file that has a space. The package I was making was a custom installer for RMU's new VMware View remote access system. It included Microsoft's "Remote Desktop Connection", VMware's "VMware View Client", a postflight scipt to write the "view.rmu.edu" entry to a preference file, and a custom welcome message and background for the installer.
Here's my makefile:
include /usr/local/share/luggage/luggage.make TITLE=RMU_VMware_View REVERSE_DOMAIN=edu.rmu PAYLOAD=unbz2-application-Remote_Desktop_Connection.app \ unbz2-application-VMware_View_Client.app \ pack-script-postflight \ pack-resource-Welcome.rtf \ pack-resource-background.gif PACKAGE_VERSION=1 unbz2-application-Remote_Desktop_Connection.app: Remote_Desktop_Connection.app.tar.bz2 l_Applications @SUDO ${TAR} xjf Remote_Desktop_Connection.app.tar.bz2 -C ${WORK_D}/Applications @SUDO chown -R root:admin "${WORK_D}/Applications/Remote Desktop Connection.app" unbz2-application-VMware_View_Client.app: VMware_View_Client.app.tar.bz2 l_Applications @SUDO ${TAR} xjf VMware_View_Client.app.tar.bz2 -C ${WORK_D}/Applications @SUDO chown -R root:admin "${WORK_D}/Applications/VMware View Client.app"
Notice that instead of the usual "unbz2-applications-XXXX.app" I used "unbz2-application-xxxx.app" and included those stanzas in the Makefile itself. Note the quotes around the names in the chown lines. The pack-xxx stanzas came from the included luggage.make file; it's not necessary to reproduce these in your makefile, so long as the files don't include spaces in their names.
Hope this helps someone!