#!/bin/sh
# $Id: gpc,v 1.3 2003/11/10 06:16:25 cher Exp $
# Copyright (c) 2001-2003 Alexander Chernov

# If GNU Pascal Compiler is installed at non-standard place
GPCDIR=/usr/local/pkg/gpc-2.1

GPCRUN=gpc
if [ "${GPCDIR}" != "" ]
then
    PATH=${GPCDIR}/bin:${PATH}
    GPCRUN=${GPCDIR}/bin/${GPCRUN}
fi

exec ${GPCRUN} -static -s -O2 $1 -o $2
