summaryrefslogtreecommitdiff
path: root/math/dislin/files/dislin.sh.in
blob: b960f1eb9c4ff9488c89986799b8ba49ffa74fa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Wrapper script for DISLIN binaries.
#
# $FreeBSD$
#

DISLIN=%%DISLIN_DIR%%
export DISLIN

LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

self="${0##*/}"
program="${DISLIN}/bin/${self}"

if [ -x "${program}" ] ; then
	exec "${program}" "$@"
else
	echo "${self} does not seem to exist." 1>&2
	exit 1
fi