|
Revision d5ef539f348e22f4dfe00fa09ae91cccbc0147e8, 350 bytes
(checked in by Nelson Elhage <nelhage@mit.edu>, 6 months ago)
|
|
Build to barnowl.bin and replace 'barnowl' with a wrapper script.
The wrapper script sets up BARNOWL_DATA_DIR to point to the build
directory, instead of the compiled-in system-wide share directory.
|
-
Property mode set to
100755
|
| 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="$SRCDIR/barnowl.bin" |
|---|
| 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/" |
|---|
| 15 | exec "$EXE" "$@" |
|---|