Re: Bad error output from gnome-config
- From: Loban Rahman <loban earthling net>
- To: gnome-devel-list gnome org
- Subject: Re: Bad error output from gnome-config
- Date: 26 Jul 2001 14:09:39 -0700
> And to get the version of gnome-libs itself, one uses
>
> gnome-config --version
> (RESULT = gnome-libs-1.2.13)
Arg, another inconsistency. The RESULT shown above is incorrect,
instead, the command outputs RESULT =
gnome-libs 1.2.13
Even though all other *-config scripts outputs _just_ the version,
gnome-config thought it wise to output the package name first, a space,
and then the version. Here is an updated patch which fixes everything
I've mentioned. I don't have cvs write access, so could someone attach
this patch or provide me access?
= Loban
Index: gnome-config.in
===================================================================
RCS file: /cvs/gnome/gnome-libs/gnome-config.in,v
retrieving revision 1.29
diff -u -r1.29 gnome-config.in
--- gnome-config.in 2000/11/12 14:39:25 1.29
+++ gnome-config.in 2001/07/26 20:58:36
@@ -18,7 +18,7 @@
pkgdatadir=${datadir}/@PACKAGE@
pkglibdir=${libdir}/@PACKAGE@
pkgincludedir=${includedir}/@PACKAGE@
-MODULE_VERSION= PACKAGE@- VERSION@
+MODULE_VERSION=""
interface_version_installed() {
error=true
@@ -182,7 +182,7 @@
case $1 in
--version)
- echo @PACKAGE@ @VERSION@
+ echo @VERSION@
exit 0
;;
--exec-prefix)
@@ -371,6 +371,10 @@
fi
if $modversion; then
+ if test -n "$MODULE_VERSION"; then
+ exit 1
+ fi
+
echo $MODULE_VERSION
exit 0
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]