#!/bin/sh # $Id: vbnc.in 5550 2009-02-19 18:14:43Z cher $ # Copyright (c) 2005-2008 Alexander Chernov # A script for compilation of Visual Basic programs using the Mono suite. # Usage: vbnc in-file out-file # using EJUDGE_FLAGS we may pass additional flags LANG_CONFIG_DIR="/home/judges/compile/conf/lang.d" [ "${EJUDGE_LANG_CONFIG}" = "" ] && EJUDGE_LANG_CONFIG="${LANG_CONFIG_DIR}/vbnc.cfg" if [ -f "${EJUDGE_LANG_CONFIG}" ] then . "${EJUDGE_LANG_CONFIG}" else version="unknown" VBNCRUN="vbnc" VBNCDIR="" fi if [ x"${version}" = x ] then echo "This language is not supported." >&2 exit 1 fi if [ x"${VBNCDIR}" != x ] then PATH="${VBNCDIR}/bin:${PATH}" fi exec "${VBNCRUN}" ${EJUDGE_FLAGS} "$1" -out:"$2"