head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2009.11.13.01.48.25;	author dirtyepic;	state dead;
branches;
next	1.2;
commitid	62904afcbae84567;

1.2
date	2009.07.02.19.45.48;	author grobian;	state Exp;
branches;
next	1.1;
commitid	5b6f4a4d0e6a4567;

1.1
date	2009.07.01.07.16.24;	author dirtyepic;	state Exp;
branches;
next	;
commitid	602a4a4b0d484567;


desc
@@


1.3
log
@Version bump, support --brief (bug #292119). Minor cleanup.
Remove old.
(Portage version: 2.2_rc49/cvs/Linux x86_64)
@
text
@#!/bin/sh -
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1,v 1.2 2009/07/02 19:45:48 grobian Exp $
#
# /usr/bin/wx-config
#
#  a lame wx-config wrapper (bugs to wxwidgets@@gentoo.org)

_wxerror() {
	echo "An error occurred while calling wx-config:"
	echo
	echo "    ${1}"
	echo
	echo "Please use \`eselect wxwidgets\` to select an available profile and try again."
	exit 1
}

if [ -n "${WX_ECLASS_CONFIG}" ]; then
	${WX_ECLASS_CONFIG} "$@@"
	exit 0
else
	if [ -e /var/lib/wxwidgets/current ]; then
		source /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} "$@@"
	else
		_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
	fi
	exit 0
fi

@


1.2
log
@Add CVS Header to wxrc and wx-config to make my life easier
(Portage version: 2.2.00.13755-prefix/cvs/Darwin powerpc)
@
text
@d2 1
a2 1
# $Header: $
@


1.1
log
@Version bump. Debashify wx-config and wxrc wrappers for compatibility with
cmake (bug #274675).
(Portage version: 2.2_rc33/cvs/Linux x86_64)
@
text
@d2 1
@

