[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-octave-devel] Octave's NEWS file



On 02/05/08 16:36 -0400, John W. Eaton wrote:
> On  2-May-2008, Thomas Weber wrote:
> 
> | I just discovered that we have Octave's NEWS file under
> | /usr/share/octave/3.0.1/ and under /usr/share/doc/octave3.0. 
> | >From the changelog:
> | 2007-01-24  John W. Eaton  <jwe@octave.org>
> | 	* octMakefile.in (install): Install NEWS file.
> | 	(uninstall): Remove it.
> | 
> | Should we keep the file there?
> 
> For the "news" function to work, the NEWS file must be installed in
> 
>   $datadir/octave/$version/NEWS

Ah, that explains.

Anyway, patch attached for the deprecated warning.

	Thomas
# HG changeset patch
# User Thomas Weber <thomas.weber.mail@gmail.com>
# Date 1209798656 -7200
# Node ID 57ce2a24f4e293462b1a53d4e16eed25f00d70ab
# Parent  7a0317f740f729d1a06e81e55ca6ed482001442d
Replace deprecated isstr() call

diff -r 7a0317f740f7 -r 57ce2a24f4e2 scripts/ChangeLog
--- a/scripts/ChangeLog	Thu May 01 14:10:27 2008 -0400
+++ b/scripts/ChangeLog	Sat May 03 09:10:56 2008 +0200
@@ -1,3 +1,7 @@
+2008-05-03  Thomas Weber  <thomas.weber.mail@gmail.com>
+
+	* miscellaneous/news.m: Replace deprecated isstr() call.
+
 2008-05-01  David Bateman  <dbateman@free.fr>
 
 	* plot/plot.m: Remove documentation of 'L' option.
diff -r 7a0317f740f7 -r 57ce2a24f4e2 scripts/miscellaneous/news.m
--- a/scripts/miscellaneous/news.m	Thu May 01 14:10:27 2008 -0400
+++ b/scripts/miscellaneous/news.m	Sat May 03 09:10:56 2008 +0200
@@ -28,7 +28,7 @@
 
   if (exist (newsfile, "file"))
     f = fopen (newsfile, "r");
-    while (isstr (line = fgets (f)))
+    while (ischar (line = fgets (f)))
       printf (line);
     endwhile
   else

Reply to: