aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make_mac_package.sh
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-12-29 21:47:38 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-12-29 21:47:38 +0200
commit585cd0356ee1ef3c48cf958c307de7dc651123a3 (patch)
tree27a55fd7dbc161b3f337129ab1f7bb40ea682cb0 /tools/make_mac_package.sh
parentbb51ee655bdb80b176d4d7a87dce88d62b0e827a (diff)
And same fixes on Mac also..
Diffstat (limited to 'tools/make_mac_package.sh')
-rwxr-xr-xtools/make_mac_package.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make_mac_package.sh b/tools/make_mac_package.sh
index 9e78910e..21cd170d 100755
--- a/tools/make_mac_package.sh
+++ b/tools/make_mac_package.sh
@@ -37,10 +37,10 @@ LIBPROTOBUF=$(otool -L `which protoc` | grep -o '/.*libprotobuf[^ ]*')
cp $LIBPROTOC $LIBPROTOBUF $DEST/generator-bin/
cat > $DEST/generator-bin/protoc << EOF
#!/bin/bash
-SCRIPTDIR=\$(cd \$(dirname \$0); pwd)
+SCRIPTDIR=\$(dirname "\$0")
export DYLD_LIBRARY_PATH=\$SCRIPTDIR
export PATH=\$SCRIPTDIR:\$PATH
-exec \$SCRIPTDIR/protoc.bin "\$@"
+exec "\$SCRIPTDIR/protoc.bin" "\$@"
EOF
chmod +x $DEST/generator-bin/protoc