source: barnowl-wrapper.in @ 78b9503

Last change on this file since 78b9503 was 1dba5bd, checked in by Anders Kaseorg <andersk@mit.edu>, 8 years ago
Allow running barnowl within a separate build directory Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 383 bytes
RevLine 
[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
[de18326]6EXE="$0.bin"
[d5ef539]7
[b14f8cb]8if test ! -x "$EXE"; then
[f5f6ec0]9    echo "Cannot find $EXE" >&2
[d5ef539]10    exit 1
11fi
12
[1dba5bd]13BARNOWL_DATA_DIR="@abs_srcdir@/perl"
14BARNOWL_BIN_DIR="@abs_builddir@"
[b14f8cb]15export BARNOWL_DATA_DIR
16export BARNOWL_BIN_DIR
[d5ef539]17exec "$EXE" "$@"
Note: See TracBrowser for help on using the repository browser.