updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / serna / serna.sh
blobd2c73f516692815f50a7d3187d44d7598c4ab6ae
1 #!/bin/sh
3 inst_prefix=/opt
4 SERNA_DATA_DIR=${inst_prefix}/serna-free-pkgver
5 LD_LIBRARY_PATH=${inst_prefix}/serna-free-pkgver/bin:${inst_prefix}/serna-free-pkgver/lib:${inst_prefix}/serna-free-pkgver/python/lib:${LD_LIBRARY_PATH}
7 if [ x${AXF4_HOME} = x ]; then
8 AXF4_HOME=/usr/XSLFormatterV4
9 fi
11 if [ -e ${AXF4_HOME}/lib/libXfoInterface.so ]; then
12 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${AXF4_HOME}/lib
15 AXF4_LIB_FOLDER=${AXF4_HOME}/lib
16 AXF4_BIN_FOLDER=${AXF4_HOME}/bin
17 AXF4_ETC_FOLDER=${AXF4_HOME}/etc
18 AXF4_SDATA_FOLDER=${AXF4_HOME}/sdata
20 if [ x${AXF4_FONT_CONFIGFILE} = x ]; then
21 [ -f ${AXF4_ETC_FOLDER}/font-config.xml ] && AXF4_FONT_CONFIGFILE=${AXF4_ETC_FOLDER}/font-config.xml
22 export AXF4_FONT_CONFIGFILE
25 AXF4_LIC_PATH=${AXF4_ETC_FOLDER}
26 AXF4_HYPDIC_PATH=${AXF4_ETC_FOLDER}/hyphenation
27 AXF4_DMC_TBLPATH=${AXF4_SDATA_FOLDER}/base2
29 export AXF4_LIC_PATH AXF4_HYPDIC_PATH AXF4_DMC_TBLPATH
31 JAVA_HOME=${SERNA_DATA_DIR}/jre
32 export JAVA_HOME
34 export SERNA_DATA_DIR
35 export LD_LIBRARY_PATH
37 exec ${inst_prefix}/serna-free-pkgver/bin/serna.bin "$@"