#! /bin/bash -f # # lzc - Bash script to run laszlo compiler. # # * P_LZ_COPYRIGHT_BEGIN ****************************************************** # * Copyright 2001-2005, 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. * # * Use is subject to license terms. * # * P_LZ_COPYRIGHT_END ******************************************************** myhome=`dirname "$0"` if [ -e "$myhome/../Server" ]; then case "$myhome" in /*) ;; *) myhome=`pwd`/"$myhome" ;; esac LPS_HOME=`find "$myhome/../Server" -name lps-'*'|head -1` fi if [ "${OS}" == Windows_NT ]; then export LPS_HOME=`cygpath -w $LPS_HOME` . ${LPS_HOME}\\WEB-INF\\lps\\server\\bin\\lzenv else export LPS_HOME . "${LPS_HOME}/WEB-INF/lps/server/bin/lzenv" fi "${JAVA_HOME}/bin/java" ${JAVA_OPTS} -DLPS_HOME="${LPS_HOME}" -cp "$LZCP" org.openlaszlo.compiler.Main "$@"