source: scripts/setenv_local.sh @ 50d7afe

feature/cnn_orgfeature/crepe_org
Last change on this file since 50d7afe 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
Line 
1#! /usr/bin/env bash
2
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
9
10AUBIODIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
11
12AUBIOLIB=$AUBIODIR/build/src
13
14if [ "$(uname)" == "Darwin" ]; then
15  export DYLD_LIBRARY_PATH=$AUBIOLIB
16  echo export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
17else
18  export LD_LIBRARY_PATH=$AUBIOLIB
19  echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
20fi
Note: See TracBrowser for help on using the repository browser.