You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/eselect-wxwidgets/files/wxrc-1.3

39 lines
934 B

#!/bin/sh -
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.3,v 1.1 2010/01/24 21:45:08 dirtyepic Exp $
#
# /usr/bin/wxrc
#
# a lame wxrc wrapper (bugs to wxwidgets@gentoo.org)
_wxerror() {
cat >&2 <<- EOF
An error occurred while calling wxrc:
${1}
Please use \`eselect wxwidgets\` to select an available profile and try again.
EOF
exit 1
}
if [ -n "${WX_ECLASS_CONFIG}" ]; then
$(${WX_ECLASS_CONFIG} --utility=wxrc) "$@"
exit 0
else
if [ -e /var/lib/wxwidgets/current ]; then
. /var/lib/wxwidgets/current
else
_wxerror "Cannot find the wxWidgets profile configuration ( /var/lib/wxwidgets/current )"
fi
[ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
if [ -x /usr/lib/wx/config/${WXCONFIG} ]; then
$(/usr/lib/wx/config/${WXCONFIG} --utility=wxrc) "$@"
else
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
fi
exit 0
fi