From 942b1209e03e02dd19b9c7ea9bfc5fc571575cfb Mon Sep 17 00:00:00 2001 From: NBrouard Date: Tue, 3 Sep 2024 16:27:01 +0200 Subject: [PATCH] adding missing files for the os/x app. --- distributions/osx/imach-run.sh | 26 ++++++++++++++++++++++++++ distributions/osx/imach.sh | 20 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 distributions/osx/imach-run.sh create mode 100755 distributions/osx/imach.sh diff --git a/distributions/osx/imach-run.sh b/distributions/osx/imach-run.sh new file mode 100755 index 0000000..f53039a --- /dev/null +++ b/distributions/osx/imach-run.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# note: this lives in Resources/bin + +# get this script's directory +BINDIR=`dirname "$0"` +TOP="$BINDIR"/../../Resources + +# export LANG=fr_FR.utf-8 +# export PANGO_SYSCONFDIR="$TOP"/etc +# export PANGO_RC_FILE="$TOP"/etc/pango/pangorc +# export PANGO_LIBDIR="$TOP"/lib +# export G_FILENAME_ENCODING=UTF-8 + +# # location of gnuplot help file +# export GNUHELP="$TOP"/share/gnuplot/5.0/gnuplot.gih +# # location of PostScript resources +# export GNUPLOT_PS_DIR="$TOP"/share/gnuplot/5.0/PostScript +# # path to our version of AquaTerm +# export AQUATERM_PATH="$BINDIR"/AquaTerm.app +# # preferred terminal +# export GNUTERM=wxt + +export "PATH=$BINDIR:$PATH" + +exec "$BINDIR"/imach "$@" diff --git a/distributions/osx/imach.sh b/distributions/osx/imach.sh new file mode 100755 index 0000000..2642bb8 --- /dev/null +++ b/distributions/osx/imach.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Borrowed to gnuplot +# record prior dir +STARTDIR=`pwd` + +# get the full path to the bundle's MacOS directory +# and define BINDIR +CWD=$(cd "$(dirname "$0")"; pwd) +TOP="`dirname \"$CWD\"`/Resources" +BINDIR="${TOP}/bin" + +# Strip out the argument added by the OS, if any +if /bin/expr "x$1" : '^x-psn_' > /dev/null; then + shift 1 +fi + +cd "$STARTDIR" + +open -a Terminal "$BINDIR"/imach-run.sh "$@" + -- 2.43.0