source:
barnowl
@
a5f477c
Last change on this file since a5f477c was de18326, checked in by Nelson Elhage <nelhage@mit.edu>, 14 years ago | |
---|---|
|
|
File size: 371 bytes |
Rev | Line | |
---|---|---|
[d5ef539] | 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 | ||
6 | SRCDIR=`dirname "${0}"` | |
[de18326] | 7 | EXE="$0.bin" |
[d5ef539] | 8 | |
9 | if ! test -x "$EXE"; then | |
10 | echo "Cannot find barnowl.bin" >&2 | |
11 | exit 1 | |
12 | fi | |
13 | ||
14 | export BARNOWL_DATA_DIR="$SRCDIR/perl/" | |
[9a7b4f2] | 15 | export BARNOWL_BIN_DIR="$SRCDIR/" |
[d5ef539] | 16 | exec "$EXE" "$@" |
Note: See TracBrowser
for help on using the repository browser.