root/gs3-extensions/mars-src/trunk/setup.bash @ 34339

Revision 34339, 1.2 KB (checked in by davidb, 6 weeks ago)

Some initial files to compile up essentia, used in the Mars extension to Greenstone

Line 
1
2extdesc="the Music Affect Recommender System (MARS) Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8#source cascade-make/lib/cascade-lib.bash
9
10if [ "x$GEXT_MARS" = "x" ] ; then
11  export GEXT_MARS=$fulldir
12  export GEXT_MARS_INSTALLED=$GEXT_MARS/$GSDLOS
13#  export GEXT_MARS_LIBJAVA=$GEXT_MARS/lib/java
14
15
16  export PATH=$GEXT_MARS_INSTALLED/bin:$GEXT_MARS/bin/script:$PATH
17
18  if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
19    export LD_LIBRARY_PATH=$GEXT_MARS_INSTALLED/lib
20  else
21    export LD_LIBRARY_PATH=$GEXT_MARS_INSTALLED/lib:$LD_LIBRARY_PATH
22  fi
23  if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
24    export DYLD_LIBRARY_PATH=$GEXT_MARS_INSTALLED/lib
25  else
26    export DYLD_LIBRARY_PATH=$GEXT_MARS_INSTALLED/lib:$DYLD_LIBRARY_PATH
27  fi
28 if [ "x$PKG_CONFIG_PATH" = "x" ] ; then
29    export PKG_CONFIG_PATH=$GEXT_MARS_INSTALLED/pkgconfig
30  else
31    export PKG_CONFIG_PATH=$GEXT_MARS_INSTALLED/pkgconfig:$PKG_CONFIG_PATH
32  fi
33
34  extdir=${GEXT_MARS##*/}
35
36  if [ "x$GSDLEXTS" = "x" ] ; then
37    export GSDLEXTS=$extdir
38  else
39    export GSDLEXTS=$GSDLEXTS:$extdir
40  fi
41
42  echo "+Your environment is now setup for $extdesc"
43else
44  echo "+Your environment is already setup for $extdesc"
45fi
Note: See TracBrowser for help on using the browser.