aboutsummaryrefslogtreecommitdiff
path: root/math/dislin/files/dislin-wrapper.sh
blob: 3292b671be6a7ee2e4b3c54d50dd75bb7c0bbd5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# Wrapper script for DISLIN binaries.
#
# $FreeBSD$
#

DISLIN=%%DISLIN_DIR%%
export DISLIN

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