Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/openmotif/files: motif-config-2.3
Date: Fri, 29 Feb 2008 07:25:50
Message-Id: E1JUzcp-0002Bf-CW@stork.gentoo.org
1 ulm 08/02/29 07:25:47
2
3 Modified: motif-config-2.3
4 Log:
5 Remove redundant for loop.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.3 x11-libs/openmotif/files/motif-config-2.3
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/files/motif-config-2.3?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/files/motif-config-2.3?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/files/motif-config-2.3?r1=1.2&r2=1.3
14
15 Index: motif-config-2.3
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/x11-libs/openmotif/files/motif-config-2.3,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- motif-config-2.3 27 Feb 2008 07:29:43 -0000 1.2
22 +++ motif-config-2.3 29 Feb 2008 07:25:46 -0000 1.3
23 @@ -21,9 +21,6 @@
24 exit $1
25 }
26
27 -[[ $# -lt 1 ]] && usage 1
28 -[[ $# -gt 2 ]] && usage 1
29 -
30 get_lib_path() {
31 echo "/usr/@@LIBDIR@@/"
32 exit 0
33 @@ -34,46 +31,25 @@
34 exit 0
35 }
36
37 -get_cflags() {
38 - echo "-I/usr/include/"
39 - exit 0
40 -}
41 -
42 get_libs() {
43 echo "-L/usr/@@LIBDIR@@/"
44 exit 0
45 }
46
47 -for x in "$@"; do
48 - case "${x}" in
49 - -L|--get-lib-path)
50 - get_lib_path $2
51 - ;;
52 -
53 - -I|--get-inc-path)
54 - get_inc_path $2
55 - ;;
56 -
57 - --cflags)
58 - get_cflags $2
59 - ;;
60 -
61 - --libs)
62 - get_libs $2
63 - ;;
64 -
65 - -h|--help)
66 - usage 0
67 - ;;
68 -
69 - -v|--version)
70 - echo "motif-config-2.3"
71 - exit 0
72 - ;;
73 +get_cflags() {
74 + echo "-I/usr/include/"
75 + exit 0
76 +}
77
78 - *)
79 - usage 1
80 - ;;
81 +[[ $# -lt 1 ]] && usage 1
82 +[[ $# -gt 2 ]] && usage 1
83
84 - esac
85 -done
86 +case "$1" in
87 + -L|--get-lib-path) get_lib_path ;;
88 + -I|--get-inc-path) get_inc_path ;;
89 + --libs) get_libs ;;
90 + --cflags) get_cflags ;;
91 + -h|--help) usage 0 ;;
92 + -v|--version) echo "motif-config-2.3"; exit 0 ;;
93 + *) usage 1 ;;
94 +esac
95
96
97
98 --
99 gentoo-commits@l.g.o mailing list