diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-18 10:22:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-18 10:38:09 +0100 |
| commit | 4f6f03dc72d9cd24f3e4b2d856c5ccb66bda3930 (patch) | |
| tree | df50eb8d278065596f20722dcdc61269f659f865 | |
| parent | 15f405a9a7ac4c80dc834879a8c17554992f41ca (diff) | |
Allow run/dumpsubs to work from anywhere.
| -rwxr-xr-x | run/dumpsubs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/run/dumpsubs b/run/dumpsubs index 14de51d..f273d3e 100755 --- a/run/dumpsubs +++ b/run/dumpsubs @@ -1,4 +1,5 @@ #!/bin/bash -e -export LD_LIBRARY_PATH=build/src:$LD_LIBRARY_PATH -build/tools/dumpsubs $* +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +export LD_LIBRARY_PATH=$DIR/../build/src:$LD_LIBRARY_PATH +$DIR/../build/tools/dumpsubs $* |
