#! /bin/sh

tool=$(basename "$0")
if [ $tool = "gnustep-ogo-tool-wrapper" ]; then
    cat - <<EOF
gnustep-ogo-tool-wrapper: This script is a wrapper script for GNUstep tools,
and is not meant to be called directly.
EOF
    exit 1
fi

opentool=/usr/lib/opengroupware.org/System/Tools/opentool

if [ -z "$GNUSTEP_MAKEFILES" ]; then
    . /usr/lib/opengroupware.org/System/Library/Makefiles/GNUstep.sh
fi

$opentool "$tool" "$@"
