summaryrefslogtreecommitdiff
path: root/libgtop-config.in
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-08-16 23:22:13 +0000
committerMartin Baulig <martin@src.gnome.org>1998-08-16 23:22:13 +0000
commit8f2b396347a24852a8ab27c18eb8531cbef10739 (patch)
treeb1e6586d14b46c26b6861a88c4405e87465f56bd /libgtop-config.in
parent3d611432e36bef8b7a3033740b3503f3af73f44c (diff)
downloadlibgtop-8f2b396347a24852a8ab27c18eb8531cbef10739.tar.gz
New file.
1998-08-17 Martin Baulig <martin@home-of-linux.org> * libgtop-conf.in: New file.
Diffstat (limited to 'libgtop-config.in')
-rw-r--r--libgtop-config.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/libgtop-config.in b/libgtop-config.in
new file mode 100644
index 00000000..47e9a6bf
--- /dev/null
+++ b/libgtop-config.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+usage="\
+ Usage: libgtop-config [--version] [--config]"
+
+config_file="@LIBGTOP_LIBDIR@/libgtopConf.sh"
+. $config_file
+
+if test $# -eq 0; then
+ echo "${usage}" 1>&2
+ exit 1
+fi
+
+while test $# -gt 0; do
+ case "$1" in
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case $1 in
+ --version)
+ echo $LIBGTOP_VERSION
+ ;;
+ --config)
+ echo $config_file
+ ;;
+ *)
+ echo "${usage}" 1>&2
+ exit 1
+ esac
+ shift
+done