New file.
1998-08-17 Martin Baulig <martin@home-of-linux.org> * libgtop-conf.in: New file.
This commit is contained in:
committed by
Martin Baulig
parent
3d611432e3
commit
8f2b396347
@@ -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>
|
1998-08-16 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* include/glibtop/loadavg.h (glibtop_loadavg): Added new
|
* include/glibtop/loadavg.h (glibtop_loadavg): Added new
|
||||||
|
10
Makefile.am
10
Makefile.am
@@ -22,7 +22,7 @@ include_HEADERS = glibtop.h
|
|||||||
|
|
||||||
EXTRA_DIST = autogen.sh libgtop.spec copyright.txt libgtopConf.sh.in \
|
EXTRA_DIST = autogen.sh libgtop.spec copyright.txt libgtopConf.sh.in \
|
||||||
LIBGTOP-VERSION features.def perl/Makefile.PL.in perl/perl.awk \
|
LIBGTOP-VERSION features.def perl/Makefile.PL.in perl/perl.awk \
|
||||||
perl/MANIFEST perl/Changes
|
perl/MANIFEST perl/Changes libgtop-config.in
|
||||||
|
|
||||||
release:
|
release:
|
||||||
$(MAKE) dist distdir=$(PACKAGE)$(VERSION)
|
$(MAKE) dist distdir=$(PACKAGE)$(VERSION)
|
||||||
@@ -32,6 +32,8 @@ release:
|
|||||||
confexecdir=$(libdir)
|
confexecdir=$(libdir)
|
||||||
confexec_DATA = $(top_builddir)/libgtopConf.sh
|
confexec_DATA = $(top_builddir)/libgtopConf.sh
|
||||||
|
|
||||||
|
bin_SCRIPTS = $(top_builddir)/libgtop-config
|
||||||
|
|
||||||
noinst_DATA = $(top_builddir)/perl/Makefile.PL \
|
noinst_DATA = $(top_builddir)/perl/Makefile.PL \
|
||||||
$(top_builddir)/perl/Libgtop.xs
|
$(top_builddir)/perl/Libgtop.xs
|
||||||
|
|
||||||
@@ -71,6 +73,12 @@ libgtopConf.sh: libgtopConf.sh.in Makefile
|
|||||||
< $(srcdir)/libgtopConf.sh.in > libgtopConf.tmp \
|
< $(srcdir)/libgtopConf.sh.in > libgtopConf.tmp \
|
||||||
&& mv libgtopConf.tmp libgtopConf.sh
|
&& 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
|
perl/Makefile.PL: perl/Makefile.PL.in Makefile
|
||||||
## Use sed and then mv to avoid problems if the user interrupts.
|
## Use sed and then mv to avoid problems if the user interrupts.
|
||||||
sed -e 's,\@LIBGTOP_LIBDIR\@,$(libdir),g' \
|
sed -e 's,\@LIBGTOP_LIBDIR\@,$(libdir),g' \
|
||||||
|
32
libgtop-config.in
Normal file
32
libgtop-config.in
Normal 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
|
Reference in New Issue
Block a user