X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fmacosx%2Fcontrib%2Fsigrok-cli;fp=cross-compile%2Fmacosx%2Fcontrib%2Fsigrok-cli;h=f3adbb0cc668387492e2880ce33c7f69e35d2e8c;hp=0000000000000000000000000000000000000000;hb=5872b25f6aefbcb9f68150f96f9aeae56e8e4337;hpb=e6891272650fd7940b8e8996a51d64c0b2d262f4;ds=sidebyside diff --git a/cross-compile/macosx/contrib/sigrok-cli b/cross-compile/macosx/contrib/sigrok-cli new file mode 100755 index 0000000..f3adbb0 --- /dev/null +++ b/cross-compile/macosx/contrib/sigrok-cli @@ -0,0 +1,26 @@ +#!/bin/sh +## +## This file is part of the sigrok-util project. +## +## Copyright (C) 2020 Uwe Hermann +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, see . +## + +DIR="$(dirname "$0")" +cd "$DIR" +export PYTHONHOME="../Frameworks/Python.framework/Versions/3.7" +export SIGROK_FIRMWARE_DIR="../share/sigrok-firmware" +export SIGROKDECODE_DIR="../share/libsigrokdecode/decoders" +exec ./sigrok-cli.real "$@"