sigrok-native-macosx: Fix a command-line handling issue.
authorUwe Hermann <uwe@hermann-uwe.de>
Thu, 16 Jul 2020 21:04:52 +0000 (23:04 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 16 Jul 2020 21:04:52 +0000 (23:04 +0200)
Previously "./create_dmg" and "./create_dmg pulseview" would not
have the same behaviour.

cross-compile/macosx/create_dmg

index 2821533fe79920bce44fcc9505607cba0527e633..9dc3869077af4eb0c9af6e6e4b0ff4ebbe0ed197 100755 (executable)
@@ -74,7 +74,7 @@ rm -rf $SHARE_DIR/libsigrokdecode/decoders/**/__pycache__
 rm -rf $SHARE_DIR/libsigrokdecode/decoders/common/**/__pycache__
 cp -R $PREFIX/share/sigrok-firmware $SHARE_DIR
 
-if [ "x$1" = "xpulseview" ]; then
+if [ "x$APPNAME_BINARY" = "xpulseview" ]; then
        # Manually copy some boost libs that "macdeployqt" won't copy.
        cp $BOOSTLIBDIR/libboost_timer-mt.dylib $FRAMEWORKSDIR
        cp $BOOSTLIBDIR/libboost_chrono-mt.dylib $FRAMEWORKSDIR