From: | "Ryan Hill (dirtyepic)" <dirtyepic@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/eselect-wxwidgets/files: wxrc-1.1 wx-config-1.1 |
Date: | Sun, 19 Jul 2009 02:56:10 |
Message-Id: | E1MSMZM-0002pO-Fd@stork.gentoo.org |
1 | dirtyepic 09/07/19 02:56:08 |
2 | |
3 | Added: wxrc-1.1 wx-config-1.1 |
4 | Log: |
5 | Direct error messages from the wrappers to stderr as suggested by |
6 | Martin von Gagern in bug #278037. |
7 | (Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-admin/eselect-wxwidgets/files/wxrc-1.1 |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.1?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.1?rev=1.1&content-type=text/plain |
14 | |
15 | Index: wxrc-1.1 |
16 | =================================================================== |
17 | #!/bin/sh - |
18 | # $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.1,v 1.1 2009/07/19 02:56:08 dirtyepic Exp $ |
19 | # |
20 | # /usr/bin/wxrc |
21 | # |
22 | # a lame wxrc wrapper (bugs to wxwidgets@g.o) |
23 | |
24 | _wxerror() { |
25 | cat >&2 <<- EOF |
26 | An error occurred while calling wxrc: |
27 | |
28 | ${1} |
29 | |
30 | Please use \`eselect wxwidgets\` to select an available profile and try again. |
31 | EOF |
32 | exit 1 |
33 | } |
34 | |
35 | if [ -n "${WX_ECLASS_CONFIG}" ]; then |
36 | $(${WX_ECLASS_CONFIG} --utility=wxrc) "$@" |
37 | exit 0 |
38 | else |
39 | if [ -e /var/lib/wxwidgets/current ]; then |
40 | source /var/lib/wxwidgets/current |
41 | else |
42 | _wxerror "Cannot find the wxWidgets profile configuration ( /var/lib/wxwidgets/current )" |
43 | fi |
44 | |
45 | [ -z "${WXCONFIG}" -o "${WXCONFIG}" == none ] && _wxerror "No profile currently selected" |
46 | |
47 | if [ -x /usr/lib/wx/config/${WXCONFIG} ]; then |
48 | $(/usr/lib/wx/config/${WXCONFIG} --utility=wxrc) "$@" |
49 | else |
50 | _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )" |
51 | fi |
52 | exit 0 |
53 | fi |
54 | |
55 | |
56 | |
57 | |
58 | 1.1 app-admin/eselect-wxwidgets/files/wx-config-1.1 |
59 | |
60 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1.1?rev=1.1&view=markup |
61 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1.1?rev=1.1&content-type=text/plain |
62 | |
63 | Index: wx-config-1.1 |
64 | =================================================================== |
65 | #!/bin/sh - |
66 | # $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1.1,v 1.1 2009/07/19 02:56:08 dirtyepic Exp $ |
67 | # |
68 | # /usr/bin/wx-config |
69 | # |
70 | # a lame wx-config wrapper (bugs to wxwidgets@g.o) |
71 | |
72 | _wxerror() { |
73 | cat >&2 <<- EOF |
74 | An error occurred while calling wx-config: |
75 | |
76 | ${1} |
77 | |
78 | Please use \`eselect wxwidgets\` to select an available profile and try again. |
79 | EOF |
80 | exit 1 |
81 | } |
82 | |
83 | if [ -n "${WX_ECLASS_CONFIG}" ]; then |
84 | ${WX_ECLASS_CONFIG} "$@" |
85 | exit 0 |
86 | else |
87 | if [ -e /var/lib/wxwidgets/current ]; then |
88 | source /var/lib/wxwidgets/current |
89 | else |
90 | _wxerror "Cannot find the wxWidgets profile configuration ( /var/lib/wxwidgets/current )" |
91 | fi |
92 | |
93 | [ -z "${WXCONFIG}" -o "${WXCONFIG}" == none ] && _wxerror "No profile currently selected" |
94 | |
95 | if [ -x /usr/lib/wx/config/${WXCONFIG} ]; then |
96 | /usr/lib/wx/config/${WXCONFIG} "$@" |
97 | else |
98 | _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )" |
99 | fi |
100 | exit 0 |
101 | fi |