summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/openmotif/files/motif-config-2.3')
-rw-r--r--x11-libs/openmotif/files/motif-config-2.354
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