Mercurial > mxe-octave
annotate octave-wrapper.in @ 3659:6a4cb2cb4493
build-gawk: update to build in native mingw
* src/build-gawk.patch: add native mingw build rule
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 09 Jul 2014 19:56:54 -0400 |
parents | cf594095a7dc |
children | 3feb4f13794f |
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@" |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 export OCTAVE_HOME |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 export PATH |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 export LD_LIBRARY_PATH |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 export TERMINFO |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 export TERM |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 export FONTCONFIG_PATH |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 export GNUPLOT_DRIVER_DIR |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 |
3466
cf594095a7dc
* octave-wrapper.in: Use version in real program name.
John W. Eaton <jwe@octave.org>
parents:
3442
diff
changeset
|
30 exec "$OCTAVE_HOME/bin/@PROGRAM_NAME@-@OCTAVE_VERSION@.real" "$@" |