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: wx-config-1 wxrc-1 |
Date: | Wed, 01 Jul 2009 07:16:27 |
Message-Id: | E1MLu3M-0006PP-UV@stork.gentoo.org |
1 | dirtyepic 09/07/01 07:16:24 |
2 | |
3 | Added: wx-config-1 wxrc-1 |
4 | Log: |
5 | Version bump. Debashify wx-config and wxrc wrappers for compatibility with |
6 | cmake (bug #274675). |
7 | (Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-admin/eselect-wxwidgets/files/wx-config-1 |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1?rev=1.1&content-type=text/plain |
14 | |
15 | Index: wx-config-1 |
16 | =================================================================== |
17 | #!/bin/sh - |
18 | # |
19 | # /usr/bin/wx-config |
20 | # |
21 | # a lame wx-config wrapper (bugs to wxwidgets@g.o) |
22 | |
23 | _wxerror() { |
24 | echo "An error occurred while calling wx-config:" |
25 | echo |
26 | echo " ${1}" |
27 | echo |
28 | echo "Please use \`eselect wxwidgets\` to select an available profile and try again." |
29 | exit 1 |
30 | } |
31 | |
32 | if [ -n "${WX_ECLASS_CONFIG}" ]; then |
33 | ${WX_ECLASS_CONFIG} "$@" |
34 | exit 0 |
35 | else |
36 | if [ -e /var/lib/wxwidgets/current ]; then |
37 | source /var/lib/wxwidgets/current |
38 | else |
39 | _wxerror "Cannot find the wxWidgets profile configuration ( /var/lib/wxwidgets/current )" |
40 | fi |
41 | |
42 | [ -z "${WXCONFIG}" -o "${WXCONFIG}" == none ] && _wxerror "No profile currently selected" |
43 | |
44 | if [ -x /usr/lib/wx/config/${WXCONFIG} ]; then |
45 | /usr/lib/wx/config/${WXCONFIG} "$@" |
46 | else |
47 | _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )" |
48 | fi |
49 | exit 0 |
50 | fi |
51 | |
52 | |
53 | |
54 | |
55 | 1.1 app-admin/eselect-wxwidgets/files/wxrc-1 |
56 | |
57 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1?rev=1.1&view=markup |
58 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1?rev=1.1&content-type=text/plain |
59 | |
60 | Index: wxrc-1 |
61 | =================================================================== |
62 | #!/bin/sh - |
63 | # |
64 | # /usr/bin/wxrc |
65 | # |
66 | # a lame wxrc wrapper (bugs to wxwidgets@g.o) |
67 | |
68 | _wxerror() { |
69 | echo "An error occurred while calling wxrc:" |
70 | echo |
71 | echo " ${1}" |
72 | echo |
73 | echo "Please use \`eselect wxwidgets\` to select an available profile and try again." |
74 | exit 1 |
75 | } |
76 | |
77 | if [ -n "${WX_ECLASS_CONFIG}" ]; then |
78 | $(${WX_ECLASS_CONFIG} --utility=wxrc) "$@" |
79 | exit 0 |
80 | else |
81 | if [ -e /var/lib/wxwidgets/current ]; then |
82 | source /var/lib/wxwidgets/current |
83 | else |
84 | _wxerror "Cannot find the wxWidgets profile configuration ( /var/lib/wxwidgets/current )" |
85 | fi |
86 | |
87 | [ -z "${WXCONFIG}" -o "${WXCONFIG}" == none ] && _wxerror "No profile currently selected" |
88 | |
89 | if [ -x /usr/lib/wx/config/${WXCONFIG} ]; then |
90 | $(/usr/lib/wx/config/${WXCONFIG} --utility=wxrc) "$@" |
91 | else |
92 | _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )" |
93 | fi |
94 | exit 0 |
95 | fi |