[Gnucash-changes] r14453 - gnucash/trunk - When modules can't be found refer users to their package manager

David Hampton hampton at cvs.gnucash.org
Tue Jun 27 20:02:32 EDT 2006


Author: hampton
Date: 2006-06-27 20:02:30 -0400 (Tue, 27 Jun 2006)
New Revision: 14453
Trac: http://svn.gnucash.org/trac/changeset/14453

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/quotes/gnc-fq-check.in
   gnucash/trunk/src/quotes/gnc-fq-dump
   gnucash/trunk/src/quotes/gnc-fq-helper.in
   gnucash/trunk/src/quotes/gnc-fq-update.in
Log:
When modules can't be found refer users to their package manager
first.  Other fixups for the utility program name changes.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-06-27 09:10:29 UTC (rev 14452)
+++ gnucash/trunk/ChangeLog	2006-06-28 00:02:30 UTC (rev 14453)
@@ -1,3 +1,12 @@
+2006-06-27  David Hampton  <hampton at employees.org>
+
+	* src/quotes/gnc-fq-update.in:
+	* src/quotes/gnc-fq-check.in:
+	* src/quotes/gnc-fq-helper.in:
+	* src/quotes/gnc-fq-dump: When modules can't be found refer users
+	to their package manager first.  Other fixups for the utility
+	program name changes.
+
 2006-06-27  Christian Stimming <stimming at tuhh.de>
 
 	* src/backend/file/gnc-backend-file.c: Ignore failed chown()

Modified: gnucash/trunk/src/quotes/gnc-fq-check.in
===================================================================
--- gnucash/trunk/src/quotes/gnc-fq-check.in	2006-06-27 09:10:29 UTC (rev 14452)
+++ gnucash/trunk/src/quotes/gnc-fq-check.in	2006-06-28 00:02:30 UTC (rev 14453)
@@ -1,7 +1,7 @@
 #!@-PERL-@ -w
 ######################################################################
-### finance-quote-check - check for the presence of  Finance::Quote
-### From finance-quote-helper.
+### gnc-fq-check - check for the presence of  Finance::Quote
+### From gnc-fq-helper.
 ### Copyright 2001 Rob Browning <rlb at cs.utexas.edu>
 ### 
 ### This program is free software; you can redistribute it and/or    
@@ -62,7 +62,8 @@
   }
 
   print STDERR "\n";
-  print STDERR "Run 'update-finance-quote' as root to install them.\n";
+  print STDERR "Use your system's package manager to install them,\n";
+  print STDERR "or run 'gnc-fq-update' as root.\n";
 
   print "missing-lib\n";
 
@@ -77,7 +78,7 @@
 
 # Create a stockquote object.
 my $quoter = Finance::Quote->new();
-my $prgnam = "scmio-finance-quote";
+my $prgnam = "gnc-fq-check";
 
 my @qsources;
 my @sources = $quoter->sources();

Modified: gnucash/trunk/src/quotes/gnc-fq-dump
===================================================================
--- gnucash/trunk/src/quotes/gnc-fq-dump	2006-06-27 09:10:29 UTC (rev 14452)
+++ gnucash/trunk/src/quotes/gnc-fq-dump	2006-06-28 00:02:30 UTC (rev 14453)
@@ -40,7 +40,8 @@
   foreach my $mod (@missing) {
     print STDERR "  ".$mod."\n";
   }
-  print STDERR "Run 'update-finance-quote' as root to install them.\n";
+  print STDERR "Use your system's package manager to install them,\n";
+  print STDERR "or run 'gnc-fq-update' as root.\n";
 
   exit 1;
 }
@@ -184,15 +185,15 @@
 
 =head1 NAME
 
-dump-finance-quote	- Print out data from the F::Q module
+dump-gnc-fq	- Print out data from the F::Q module
 
 =head1 SYNOPSIS
 
-    dump-finance-quote yahoo CSCO JNPR
-    dump-finance-quote yahoo BAESY.PK
-    dump-finance-quote europe 48406.PA 13000.PA
-    dump-finance-quote vwd 632034
-    dump-finance-quote ftportfolios FKYGTX
+    dump-gnc-fq yahoo CSCO JNPR
+    dump-gnc-fq yahoo BAESY.PK
+    dump-gnc-fq europe 48406.PA 13000.PA
+    dump-gnc-fq vwd 632034
+    dump-gnc-fq ftportfolios FKYGTX
 
 =head1 DESCRIPTION
 

Modified: gnucash/trunk/src/quotes/gnc-fq-helper.in
===================================================================
--- gnucash/trunk/src/quotes/gnc-fq-helper.in	2006-06-27 09:10:29 UTC (rev 14452)
+++ gnucash/trunk/src/quotes/gnc-fq-helper.in	2006-06-28 00:02:30 UTC (rev 14453)
@@ -1,6 +1,6 @@
 #!@-PERL-@ -w
 ######################################################################
-### finance-quote-helper - present a scheme interface to Finance::Quote
+### gnc-fq-helper - present a scheme interface to Finance::Quote
 ### Copyright 2001 Rob Browning <rlb at cs.utexas.edu>
 ### 
 ### This program is free software; you can redistribute it and/or    
@@ -50,7 +50,7 @@
 
 # Output (on standard output, one output form per input line):
 
-# Schemified version of finance-quote's output, basically an alist of
+# Schemified version of gnc-fq's output, basically an alist of
 # alists, as in the example below.  Right now, only the fields that
 # this script knows about (and knows how to convert to scheme) are
 # returned, so the conversion function will have to be updated
@@ -65,7 +65,7 @@
 
 # For example:
 
-#  $ echo '(yahoo "CSCO" "JDSU" "^IXIC")' | ./finance-quote-helper
+#  $ echo '(yahoo "CSCO" "JDSU" "^IXIC")' | ./gnc-fq-helper
 # (("CSCO" (symbol . "CSCO")
 #          (gnc:time-no-zone . "2001-03-13 19:27:00")
 #          (last . 20.375)
@@ -82,7 +82,7 @@
 # On error, the overall result may be #f, or on individual errors, the
 # list sub-item for a given symbol may be #f, like this:
 
-#  $ echo '(yahoo "CSCO" "JDSU")' | ./finance-quote-helper
+#  $ echo '(yahoo "CSCO" "JDSU")' | ./gnc-fq-helper
 # (#f
 #  ("JDSU" (symbol . "JDSU")
 #          (gnc:time-no-zone . "2001-03-13 19:27:00")
@@ -124,7 +124,8 @@
   }
 
   print STDERR "\n";
-  print STDERR "Run 'update-finance-quote' as root to install them.\n";
+  print STDERR "Use your system's package manager to install them,\n";
+  print STDERR "or run 'gnc-fq-update' as root.\n";
 
   print "missing-lib";
 
@@ -317,7 +318,7 @@
 
 # Create a stockquote object.
 my $quoter = Finance::Quote->new();
-my $prgnam = "scmio-finance-quote";
+my $prgnam = "gnc-fq-helper";
 
 # Disable default currency conversions.
 $quoter->set_currency();

Modified: gnucash/trunk/src/quotes/gnc-fq-update.in
===================================================================
--- gnucash/trunk/src/quotes/gnc-fq-update.in	2006-06-27 09:10:29 UTC (rev 14452)
+++ gnucash/trunk/src/quotes/gnc-fq-update.in	2006-06-28 00:02:30 UTC (rev 14453)
@@ -1,6 +1,6 @@
 #!@-PERL-@ -w
 ######################################################################
-### update-finance-quote - present a scheme interface to Finance::Quote
+### update-gnc-fq - present a scheme interface to Finance::Quote
 ### Copyright 2001 Gnumatic, Inc.
 ### 
 ### This program is free software; you can redistribute it and/or    
@@ -28,7 +28,7 @@
 
 if ($( != 0) {
   print "\n";
-  print "You probably need to be root before running update-finance-quote.";
+  print "You probably need to be root before running gnc-fq-update.";
   print "\n\n";
   print "Do you want to continue? (y/n) ";
 



More information about the gnucash-changes mailing list