More careful quoting in build-osx-pkg.sh. refs #2393
authorDaira Hopwood <daira@jacaranda.org>
Tue, 24 Mar 2015 16:42:27 +0000 (16:42 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 24 Mar 2015 16:42:27 +0000 (16:42 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
misc/build_helpers/build-osx-pkg.sh

index 452dc4b731a026e701d5cfa944d813656e9039ff..fe89cf691a53e7b96a0bd56d1247d7a62c41b574 100755 (executable)
@@ -12,18 +12,18 @@ find support -name $APPNAME.egg-link -execdir sh -c "echo >> {}; echo /Applicati
 find support -name easy-install.pth -execdir sed -i.bak 's|^.*/src$|../../../../src|' '{}' \;
 
 # create component pkg
-pkgbuild --root $PWD \
+pkgbuild --root "$PWD" \
          --identifier com.leastauthority.tahoe \
-         --version $VERSION \
+         --version "$VERSION" \
          --ownership recommended \
          --install-location /Applications/tahoe.app \
-         --scripts $PWD/misc/build_helpers/osx/scripts \
+         --scripts "$PWD/misc/build_helpers/osx/scripts" \
          tahoe-lafs.pkg
 
 # create product archive
-productbuild --distribution $PWD/misc/build_helpers/osx/Distribution.xml \
+productbuild --distribution "$PWD/misc/build_helpers/osx/Distribution.xml" \
              --package-path . \
-             tahoe-lafs-$VERSION-osx.pkg
+             "tahoe-lafs-$VERSION-osx.pkg"
 
 # remove intermediate pkg
 rm -f tahoe-lafs.pkg