summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-02-27 07:29:43 +0000
committerUlrich Müller <ulm@gentoo.org>2008-02-27 07:29:43 +0000
commitac6b166939e6c31c1e8f77758f429864804d28ea (patch)
tree5e3199f079fa8b32e2e3a0cb32ea81a4145e129e /x11-libs/openmotif/files
parentversion bump (diff)
downloadgentoo-2-ac6b166939e6c31c1e8f77758f429864804d28ea.tar.gz
gentoo-2-ac6b166939e6c31c1e8f77758f429864804d28ea.tar.bz2
gentoo-2-ac6b166939e6c31c1e8f77758f429864804d28ea.zip
Remove redundant tests.
(Portage version: 2.1.4.4)
Diffstat (limited to 'x11-libs/openmotif/files')
-rw-r--r--x11-libs/openmotif/files/motif-config-2.314
1 files changed, 1 insertions, 13 deletions
diff --git a/x11-libs/openmotif/files/motif-config-2.3 b/x11-libs/openmotif/files/motif-config-2.3
index fe225e7c77bb..12531ec0559e 100644
--- a/x11-libs/openmotif/files/motif-config-2.3
+++ b/x11-libs/openmotif/files/motif-config-2.3
@@ -13,18 +13,14 @@ cat << "USAGE_END"
Usage: motif-config [option]
Options:
-
-L, --get-lib-path Print path where openmotif libraries are located.
-
-I, --get-inc-path Print path where openmotif includes are located.
-
--libs Print link flags for openmotif
-
--cflags Print compilation flags for openmotif
-
USAGE_END
exit $1
}
+
[[ $# -lt 1 ]] && usage 1
[[ $# -gt 2 ]] && usage 1
@@ -51,22 +47,18 @@ get_libs() {
for x in "$@"; do
case "${x}" in
-L|--get-lib-path)
- [[ $# -gt 2 ]] && usage 1
get_lib_path $2
;;
-I|--get-inc-path)
- [[ $# -gt 2 ]] && usage 1
get_inc_path $2
;;
--cflags)
- [[ $# -gt 2 ]] && usage 1
get_cflags $2
;;
--libs)
- [[ $# -gt 2 ]] && usage 1
get_libs $2
;;
@@ -79,10 +71,6 @@ for x in "$@"; do
exit 0
;;
- -*)
- usage 1
- ;;
-
*)
usage 1
;;