#!/bin/sh
# $Id: gprolog,v 1.1 2003/11/10 06:16:09 cher Exp $
# Copyright (c) 2003 Alexander Chernov

# GNU Prolog is installed at non-standard location
GPROLOGDIR=/usr/local/pkg/gprolog-1.2.16

GPLCRUN=gplc
if [ "${GPROLOGDIR}" != "" ]
then
    PATH=${GPROLOGDIR}/bin:${PATH}
    GPLCRUN=${GPROLOGDIR}/bin/${GPLCRUN}
fi

exec ${GPLCRUN} -L -static -s --no-top-level $1 -o $2
