source: gs3-extensions/structured-image/trunk/setup.bash@ 36247

Last change on this file since 36247 was 36247, checked in by davidb, 23 months ago

initial cut at files to provide google vision api processing of images using the GoogleVisionImagePlugin

File size: 1.7 KB
Line 
1
2extdesc="the Structured Image Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "x$GSDLHOME" = "x" ] ; then
9 if [ -e ../../gs3-setup.sh ] ; then
10 export gsopt_noexts=1 && pushd ../.. && source ./gs3-setup.sh && popd
11 export gsopt_noexts=
12 elif [ -e ../../setup.bash ] ; then
13 export gsopt_noexts=1 && pushd ../.. && source ./setup.bash && popd
14 export gsopt_noexts=
15 else
16 # backstop
17 GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'`
18 # check for running bash under cygwin
19 if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ; then
20 GSDLOS=windows
21 fi
22
23 fi
24fi
25
26if [ "x$GEXT_STRUCTURED_IMAGE" = "x" ] ; then
27 export GEXT_STRUCTURED_IMAGE=$fulldir
28 export GEXT_STRUCTURED_IMAGE_INSTALLED=$GEXT_STRUCTURED_IMAGE/$GSDLOS
29
30 export PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/bin:$GEXT_STRUCTURED_IMAGE/bin/script:$PATH
31
32 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
33 export LD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib
34 else
35 export LD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib:$LD_LIBRARY_PATH
36 fi
37 if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
38 export DYLD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib
39 else
40 export DYLD_LIBRARY_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/lib:$DYLD_LIBRARY_PATH
41 fi
42 if [ "x$PKG_CONFIG_PATH" = "x" ] ; then
43 export PKG_CONFIG_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/pkgconfig
44 else
45 export PKG_CONFIG_PATH=$GEXT_STRUCTURED_IMAGE_INSTALLED/pkgconfig:$PKG_CONFIG_PATH
46 fi
47
48 extdir=${GEXT_STRUCTURED_IMAGE##*/}
49
50 if [ "x$GSDLEXTS" = "x" ] ; then
51 export GSDLEXTS=$extdir
52 else
53 export GSDLEXTS=$GSDLEXTS:$extdir
54 fi
55
56 echo "+Your environment is now setup for $extdesc"
57else
58 echo "+Your environment is already setup for $extdesc"
59fi
Note: See TracBrowser for help on using the repository browser.