New file.

1998-08-17  Martin Baulig  <martin@home-of-linux.org>

	* libgtop-conf.in: New file.
This commit is contained in:
Martin Baulig
1998-08-16 23:22:13 +00:00
committed by Martin Baulig
parent 3d611432e3
commit 8f2b396347
3 changed files with 45 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
1998-08-17 Martin Baulig <martin@home-of-linux.org>
* libgtop-conf.in: New file.
1998-08-16 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/loadavg.h (glibtop_loadavg): Added new

View File

@@ -22,7 +22,7 @@ include_HEADERS = glibtop.h
EXTRA_DIST = autogen.sh libgtop.spec copyright.txt libgtopConf.sh.in \
LIBGTOP-VERSION features.def perl/Makefile.PL.in perl/perl.awk \
perl/MANIFEST perl/Changes
perl/MANIFEST perl/Changes libgtop-config.in
release:
$(MAKE) dist distdir=$(PACKAGE)$(VERSION)
@@ -32,6 +32,8 @@ release:
confexecdir=$(libdir)
confexec_DATA = $(top_builddir)/libgtopConf.sh
bin_SCRIPTS = $(top_builddir)/libgtop-config
noinst_DATA = $(top_builddir)/perl/Makefile.PL \
$(top_builddir)/perl/Libgtop.xs
@@ -71,6 +73,12 @@ libgtopConf.sh: libgtopConf.sh.in Makefile
< $(srcdir)/libgtopConf.sh.in > libgtopConf.tmp \
&& mv libgtopConf.tmp libgtopConf.sh
libgtop-config: libgtop-config.in Makefile
sed -e 's,\@LIBGTOP_LIBDIR\@,$(libdir),g' \
< $(srcdir)/libgtop-config.in > libgtop-config.tmp \
&& mv libgtop-config.tmp libgtop-config && \
chmod 755 libgtop-config
perl/Makefile.PL: perl/Makefile.PL.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
sed -e 's,\@LIBGTOP_LIBDIR\@,$(libdir),g' \

32
libgtop-config.in Normal file
View File

@@ -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