source:
barnowl
@
f5f6ec0
Last change on this file since f5f6ec0 was f5f6ec0, checked in by David Benjamin <davidben@mit.edu>, 13 years ago | |
---|---|
|
|
File size: 397 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 | |
[b14f8cb] | 9 | if test ! -x "$EXE"; then |
[f5f6ec0] | 10 | echo "Cannot find $EXE" >&2 |
[d5ef539] | 11 | exit 1 |
12 | fi | |
13 | ||
[b14f8cb] | 14 | BARNOWL_DATA_DIR="$SRCDIR/perl/" |
15 | BARNOWL_BIN_DIR="$SRCDIR/" | |
16 | export BARNOWL_DATA_DIR | |
17 | export BARNOWL_BIN_DIR | |
[d5ef539] | 18 | exec "$EXE" "$@" |
Note: See TracBrowser
for help on using the repository browser.