source: barnowl @ ecfbdcc

release-1.10release-1.8release-1.9
Last change on this file since ecfbdcc was f5f6ec0, checked in by David Benjamin <davidben@mit.edu>, 13 years ago
Don't use export FOO=bar syntax in runtests.sh Solaris' shell can't run those. We can actually remove the variables altogether since the tester/barnowl wrapper will take care of it. Also make the error message in the latter more accurate.
  • Property mode set to 100755
File size: 397 bytes
Line 
1#!/bin/sh
2# This is a wrapper script to point BARNOWL_DATA_DIR at the source dir
3# if we're running from a build tree. barnowl.bin is the actual built
4# binary.
5
6SRCDIR=`dirname "${0}"`
7EXE="$0.bin"
8
9if test ! -x "$EXE"; then
10    echo "Cannot find $EXE" >&2
11    exit 1
12fi
13
14BARNOWL_DATA_DIR="$SRCDIR/perl/"
15BARNOWL_BIN_DIR="$SRCDIR/"
16export BARNOWL_DATA_DIR
17export BARNOWL_BIN_DIR
18exec "$EXE" "$@"
Note: See TracBrowser for help on using the repository browser.