blob: b58f1a8b9eeb2a644c710b92d2f53b9886b0eeb5 [file] [log] [blame]
#!/bin/sh
# Copyright 2009-2011 Gentoo Foundation
# Distributed under the terms of the MIT/X11 license
# Wrapper script, executes ${@VAR@} with arguments $@
if [ -z "${@VAR@}" ]; then
# Try to get @VAR@ from system profile
@VAR@=$(. /etc/profile >/dev/null 2>&1; echo "${@VAR@}")
fi
if [ -z "${@VAR@}" ]; then
echo "$0: The @VAR@ variable must be set" >&2
exit 1
fi
exec ${@VAR@} "$@"