-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macOS: add scripts for use with pkgbuild
- Loading branch information
1 parent
d499eac
commit b815b39
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# get this script's directory | ||
BINDIR=`dirname "$0"` | ||
|
||
# determine the Resources directory | ||
RES="$BINDIR"/.. | ||
|
||
export G_FILENAME_ENCODING=UTF-8 | ||
|
||
# location of gnuplot help file | ||
export GNUHELP="$RES"/share/gnuplot/6.0/gnuplot.gih | ||
# location of PostScript resources | ||
export GNUPLOT_PS_DIR="$RES"/share/gnuplot/6.0/PostScript | ||
# preferred terminal | ||
export GNUTERM=wxt | ||
|
||
# Strip out the argument added by the OS, if any | ||
if /bin/expr "x$1" : '^x-psn_' > /dev/null; then | ||
shift 1 | ||
fi | ||
|
||
exec "$BINDIR"/gnuplot "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# get this script's directory | ||
BINDIR=`dirname "$0"` | ||
|
||
# determine the Resources directory | ||
RES="$BINDIR"/.. | ||
|
||
export GRETL_HOME="$RES"/share/gretl/ | ||
|
||
# GTK2-specific info (harmless for GTK3?) | ||
export PANGO_SYSCONFDIR="$RES"/etc | ||
export PANGO_RC_FILE="$RES"/etc/pango/pangorc | ||
export PANGO_LIBDIR="$RES"/lib | ||
|
||
export G_FILENAME_ENCODING=UTF-8 | ||
|
||
# location of gnuplot help file | ||
export GNUHELP="$RES"/share/gnuplot/6.0/gnuplot.gih | ||
# location of PostScript resources | ||
export GNUPLOT_PS_DIR="$RES"/share/gnuplot/6.0/PostScript | ||
|
||
export "PATH=$BINDIR:$PATH" | ||
|
||
# Strip out the argument added by the OS, if any | ||
if /bin/expr "x$1" : '^x-psn_' > /dev/null; then | ||
shift 1 | ||
fi | ||
|
||
exec "$BINDIR"/gretlcli "$@" |