feature/crepe_org
Last change
on this file since ddd124a was
b37e2b2,
checked in by Paul Brossier <piem@piem.org>, 8 years ago
|
scripts/setenv_local.sh: clean up, only set LD_LIBRARY_PATH
|
-
Property mode set to
100644
|
File size:
562 bytes
|
Rev | Line | |
---|
[d7f3c88] | 1 | #! /usr/bin/env bash |
---|
| 2 | |
---|
[b37e2b2] | 3 | # This script sets the LD_LIBRARY_PATH environment variable to ./build/src to |
---|
| 4 | # execute aubio binaries without installing libaubio. |
---|
| 5 | # |
---|
| 6 | # Usage: $ source scripts/setenv_local.sh |
---|
| 7 | # |
---|
| 8 | # Note: on macOs, the variable is DYLD_LIBRARY_PATH |
---|
[d7f3c88] | 9 | |
---|
| 10 | AUBIODIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" |
---|
| 11 | |
---|
[b37e2b2] | 12 | AUBIOLIB=$AUBIODIR/build/src |
---|
[d7f3c88] | 13 | |
---|
| 14 | if [ "$(uname)" == "Darwin" ]; then |
---|
| 15 | export DYLD_LIBRARY_PATH=$AUBIOLIB |
---|
| 16 | echo export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH |
---|
| 17 | else |
---|
| 18 | export LD_LIBRARY_PATH=$AUBIOLIB |
---|
| 19 | echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH |
---|
| 20 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.