From: NBrouard Date: Tue, 3 Sep 2024 14:27:01 +0000 (+0200) Subject: adding missing files for the os/x app. X-Git-Url: https://henry.ined.fr/git/?a=commitdiff_plain;h=942b1209e03e02dd19b9c7ea9bfc5fc571575cfb;p=.git adding missing files for the os/x app. --- 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 "$@" +