source:
barnowl-wrapper.in
@
8eb72d2
| Last change on this file since 8eb72d2 was a223b6b, checked in by Anders Kaseorg <andersk@mit.edu>, 13 years ago | |
|---|---|
|
|
| File size: 412 bytes | |
| Rev | Line | |
|---|---|---|
| [d5ef539] | 1 | #!/bin/sh |
| 2 | # This is a wrapper script to point BARNOWL_DATA_DIR at the source dir | |
| [a223b6b] | 3 | # if we're running from a build tree. bin/barnowl is the actual built |
| [d5ef539] | 4 | # binary. |
| 5 | ||
| [a223b6b] | 6 | EXE="@abs_builddir@/bin/$(basename "$0")" |
| [d5ef539] | 7 | |
| [b14f8cb] | 8 | if test ! -x "$EXE"; then |
| [f5f6ec0] | 9 | echo "Cannot find $EXE" >&2 |
| [d5ef539] | 10 | exit 1 |
| 11 | fi | |
| 12 | ||
| [1dba5bd] | 13 | BARNOWL_DATA_DIR="@abs_srcdir@/perl" |
| 14 | BARNOWL_BIN_DIR="@abs_builddir@" | |
| [b14f8cb] | 15 | export BARNOWL_DATA_DIR |
| 16 | export BARNOWL_BIN_DIR | |
| [d5ef539] | 17 | exec "$EXE" "$@" |
Note: See TracBrowser
for help on using the repository browser.
