diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-02-29 07:25:46 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-02-29 07:25:46 +0000 |
commit | cb8d82f360ebb09facc8b9f2ac03b0f3164edeb8 (patch) | |
tree | 21537ca1b0c63087e4aef4998588a3e7b5d69d0a /x11-libs/openmotif/files | |
parent | Making test compile. Bug #211773 (diff) | |
download | gentoo-2-cb8d82f360ebb09facc8b9f2ac03b0f3164edeb8.tar.gz gentoo-2-cb8d82f360ebb09facc8b9f2ac03b0f3164edeb8.tar.bz2 gentoo-2-cb8d82f360ebb09facc8b9f2ac03b0f3164edeb8.zip |
Remove redundant for loop.
(Portage version: 2.1.4.4)
Diffstat (limited to 'x11-libs/openmotif/files')
-rw-r--r-- | x11-libs/openmotif/files/motif-config-2.3 | 54 |
1 files changed, 15 insertions, 39 deletions
diff --git a/x11-libs/openmotif/files/motif-config-2.3 b/x11-libs/openmotif/files/motif-config-2.3 index 12531ec0559e..5481c6a75475 100644 --- a/x11-libs/openmotif/files/motif-config-2.3 +++ b/x11-libs/openmotif/files/motif-config-2.3 @@ -21,9 +21,6 @@ USAGE_END exit $1 } -[[ $# -lt 1 ]] && usage 1 -[[ $# -gt 2 ]] && usage 1 - get_lib_path() { echo "/usr/@@LIBDIR@@/" exit 0 @@ -34,46 +31,25 @@ get_inc_path() { exit 0 } -get_cflags() { - echo "-I/usr/include/" - exit 0 -} - get_libs() { echo "-L/usr/@@LIBDIR@@/" exit 0 } -for x in "$@"; do - case "${x}" in - -L|--get-lib-path) - get_lib_path $2 - ;; - - -I|--get-inc-path) - get_inc_path $2 - ;; - - --cflags) - get_cflags $2 - ;; - - --libs) - get_libs $2 - ;; - - -h|--help) - usage 0 - ;; - - -v|--version) - echo "motif-config-2.3" - exit 0 - ;; +get_cflags() { + echo "-I/usr/include/" + exit 0 +} - *) - usage 1 - ;; +[[ $# -lt 1 ]] && usage 1 +[[ $# -gt 2 ]] && usage 1 - esac -done +case "$1" in + -L|--get-lib-path) get_lib_path ;; + -I|--get-inc-path) get_inc_path ;; + --libs) get_libs ;; + --cflags) get_cflags ;; + -h|--help) usage 0 ;; + -v|--version) echo "motif-config-2.3"; exit 0 ;; + *) usage 1 ;; +esac |