release-1.10
Last change
on this file since 574b952 was
574b952,
checked in by Anders Kaseorg <andersk@mit.edu>, 11 years ago
|
Generate the barnowl and tester wrapper scripts at build time
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
-
Property mode set to
100644
|
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 | |
---|
6 | SRCDIR=`dirname "${0}"` |
---|
7 | EXE="$0.bin" |
---|
8 | |
---|
9 | if test ! -x "$EXE"; then |
---|
10 | echo "Cannot find $EXE" >&2 |
---|
11 | exit 1 |
---|
12 | fi |
---|
13 | |
---|
14 | BARNOWL_DATA_DIR="$SRCDIR/perl/" |
---|
15 | BARNOWL_BIN_DIR="$SRCDIR/" |
---|
16 | export BARNOWL_DATA_DIR |
---|
17 | export BARNOWL_BIN_DIR |
---|
18 | exec "$EXE" "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.