annotate octave-wrapper.in @ 4449:1933a9113e65

of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235) * src/of-actuarial.mk, src/of-communications.mk, src/of-control.mk, src/of-data-smoothing.mk, src/of-database.mk, src/of-dataframe.mk, src/of-dicom.mk, src/of-financial.mk, src/of-fits.mk, src/of-fl-core.mk, src/of-fuzzy-logic-toolkit.mk, src/of-ga.mk, src/of-general.mk, src/of-generate_html.mk, src/of-geometry.mk, src/of-gsl.mk, src/of-image.mk, src/of-instrument-control.mk, src/of-interval.mk, src/of-io.mk, src/of-linear-algebra.mk, src/of-lssa.mk, src/of-ltfat.mk, src/of-mapping.mk, src/of-miscellaneous.mk, src/of-nan.mk, src/of-netcdf.mk, src/of-nurbs.mk, src/of-ocs.mk, src/of-octcdf.mk, src/of-odepkg.mk, src/of-optim.mk, src/of-quaternion.mk, src/of-queueing.mk, src/of-signal.mk, src/of-sockets.mk, src/of-sparsersb.mk, src/of-specfun.mk, src/of-splines.mk, src/of-statistics.mk, src/of-stk.mk, src/of-strings.mk, src/of-struct.mk, src/of-tisean.mk, src/of-tsa.mk, src/of-video.mk, src/of-windows.mk, src/of-zenity.mk, src/of-zeromq.mk: add $(PKG)_DEPS += $(OCTAVE_TARGET) if ENABLE_BINARY_PACKAGES = yes
author John D
date Mon, 14 Aug 2017 09:12:34 -0400
parents d7758bf3793e
children 788dc298ec00
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3442
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 #! /bin/sh
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 OCTAVE_HOME=""
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 if [ -z "$OCTAVE_HOME" ]; then
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 echo "you must edit $0 to set OCTAVE_HOME" 1>&2
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 exit 1;
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 fi
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 PATH="$OCTAVE_HOME/bin/:$PATH"
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 LD_LIBRARY_PATH="$OCTAVE_HOME/lib:$OCTAVE_HOME/lib64:$OCTAVE_HOME/lib/octave/@OCTAVE_VERSION@"
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 TERMINFO="$OCTAVE_HOME/share/terminfo"
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 TERM="vt100"
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 FONTCONFIG_PATH="$OCTAVE_HOME/etc/fonts"
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 GNUPLOT_DRIVER_DIR="$OCTAVE_HOME/libexec/gnuplot/@GNUPLOT_MAJOR_MINOR_VERSION@"
3864
3feb4f13794f octave-wrapper.in: also set and export GNUPLOT_SHARE_DIR
John W. Eaton <jwe@octave.org>
parents: 3466
diff changeset
21 GNUPLOT_SHARE_DIR="$OCTAVE_HOME/share/gnuplot/@GNUPLOT_MAJOR_MINOR_VERSION@"
3884
d7758bf3793e octave-wrapper.in: Set GNUPLOT_PS_DIR in environment.
John W. Eaton <jwe@octave.org>
parents: 3864
diff changeset
22 GNUPLOT_PS_DIR="$GNUPLOT_SHARE_DIR/PostScript"
3442
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 export OCTAVE_HOME
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 export PATH
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 export LD_LIBRARY_PATH
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 export TERMINFO
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 export TERM
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 export FONTCONFIG_PATH
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 export GNUPLOT_DRIVER_DIR
3864
3feb4f13794f octave-wrapper.in: also set and export GNUPLOT_SHARE_DIR
John W. Eaton <jwe@octave.org>
parents: 3466
diff changeset
31 export GNUPLOT_SHARE_DIR
3884
d7758bf3793e octave-wrapper.in: Set GNUPLOT_PS_DIR in environment.
John W. Eaton <jwe@octave.org>
parents: 3864
diff changeset
32 export GNUPLOT_PS_DIR
3442
ebe73c541a16 allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33
3466
cf594095a7dc * octave-wrapper.in: Use version in real program name.
John W. Eaton <jwe@octave.org>
parents: 3442
diff changeset
34 exec "$OCTAVE_HOME/bin/@PROGRAM_NAME@-@OCTAVE_VERSION@.real" "$@"