Mercurial > hg > octave-lyh
comparison scripts/miscellaneous/news.m @ 8719:679c270b7584
install DOC and NEWS in $octetcdir
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 11 Feb 2009 01:02:54 -0500 |
parents | d7306ecd077a |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8718:c74c9692add7 | 8719:679c270b7584 |
---|---|
21 ## Display the current NEWS file for Octave. | 21 ## Display the current NEWS file for Octave. |
22 ## @end deftypefn | 22 ## @end deftypefn |
23 | 23 |
24 function news () | 24 function news () |
25 | 25 |
26 datadir = octave_config_info ("datadir"); | 26 octetcdir = octave_config_info ("octetcdir"); |
27 newsfile = fullfile (datadir, "octave", version (), "NEWS"); | 27 newsfile = fullfile (octetcdir, "NEWS"); |
28 | 28 |
29 if (exist (newsfile, "file")) | 29 if (exist (newsfile, "file")) |
30 f = fopen (newsfile, "r"); | 30 f = fopen (newsfile, "r"); |
31 while (ischar (line = fgets (f))) | 31 while (ischar (line = fgets (f))) |
32 puts (line); | 32 puts (line); |