source: gs2-extensions/gstika/trunk/java/setup.bash@ 34174

Last change on this file since 34174 was 34174, checked in by ak19, 4 years ago
  1. Created GSTikaCLI.java based off TikaCLI.java of the apache tika-app jar, but with modifications to convert a doc to html and extract images in one step and correct the image file names so they match what the html refers to and correct the html img src attributes to not have an embedded: prefix that breaks the image linking. 2. Attempting to add this as a proper GS2 extension. It worked in the gs2build/ext folder (though some paths have now changed to reflect the gs2-extensions folder structur for an ext). I've not tested whether this works properly as an ext. Hope it will all still work once I make a tarball and zip out of this.
  • Property svn:executable set to *
File size: 820 bytes
Line 
1
2extdesc="The GSTikaCLI Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "x$GEXT_GSTIKA" = "x" ] ; then
9 export GEXT_GSTIKA=`pwd`
10
11 # if [ -d "$GEXT_GSTIKA/bin/script" ] ; then
12 # export PATH=$GEXT_GSTIKA/bin/script:$PATH
13 # fi
14
15 # if [ -d "$GEXT_GSTIKA/lib" ] ; then
16 # if [ "$GSDLOS" = "linux" ] ; then
17 # export LD_LIBRARY_PATH=$GEXT_GSTIKA/lib:$LD_LIBRARY_PATH
18 # elif [ "$GSDLOS" = "darwin" ] ; then
19 # export DYLD_LIBRARY_PATH=$GEXT_GSTIKA/lib:$DYLD_LIBRARY_PATH
20 # fi
21 # fi
22
23 extdir=${GEXT_GSTIKA##*/}
24
25 if [ "x$GSDLEXTS" = "x" ] ; then
26 export GSDLEXTS=$extdir
27 else
28 export GSDLEXTS=$GSDLEXTS:$extdir
29 fi
30
31
32 echo "+Your environment is now setup for $extdesc"
33else
34 echo "+Your environment is already setup for $extdesc"
35fi
Note: See TracBrowser for help on using the repository browser.