changeset 9289:eaf4e71e90e8

In test, look also for the gzipped version of the info_file The info program accepts .info files that are compressed with gzip. Consider also the info_file with the suffix ".gz" when doing the test.
author Rafael Laboissiere <rafael@debian.org>
date Tue, 02 Jun 2009 23:15:56 +0200
parents 7621f0b0e588
children 40ba43a4745f
files scripts/ChangeLog scripts/help/doc.m
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Jun 02 20:56:19 2009 -0700
+++ b/scripts/ChangeLog	Tue Jun 02 23:15:56 2009 +0200
@@ -1,3 +1,8 @@
+2009-06-02  Rafael Laboissiere  <rafael@debian.org>
+
+	* help/doc.m: In test, look also for the gzipped version of the
+	info_file
+
 2009-05-29  John W. Eaton  <jwe@octave.org>
 
 	* plot/__gnuplot_get_var__.m: Insert missing semicolon.
--- a/scripts/help/doc.m	Tue Jun 02 20:56:19 2009 -0700
+++ b/scripts/help/doc.m	Tue Jun 02 23:15:56 2009 +0200
@@ -106,6 +106,6 @@
 
 endfunction
 
-%!test if exist( info_file ()) != 2
-%!       error ("Info file %s does not exist!", info_file ());
+%!test if exist( info_file ()) != 2 && exist (sprintf ("%s.gz", info_file ())) != 2
+%!       error ("Info file %s or %s.gz does not exist!", info_file (), info_file ());
 %!     endif