help-octave
[Top][All Lists]
Advanced

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

script for manual translation


From: Jorge Barros de Abreu
Subject: script for manual translation
Date: Fri, 15 Jul 2005 17:35:58 +0000
User-agent: KMail/1.7.2

Hi for All.

I receive a small script for work with the translation while the final 
decision about it do not came. But the script do not find to makeinfo that is 
in /usr/bin ( the value of variable MAKEINFO_PROGRAM  internally set by 
octave and is correct) and the grep line show a lot of warnings:

warning: 
in ajuda.m near line 8, column 14:
warning: concatenation of different character string types may have unintended 
consequences
warning: concatenation of different character string types may have unintended 
consequences
warning: concatenation of different character string types may have unintended 
consequences
grep: invalid option -- [                        <<<<<<---------------------


The script is:


## Portuguese help function
function ajuda(varargin)
  
  for s = varargin
    nomearquivo = file_in_loadpath([s{1},'.pt']);
    if isempty(nomearquivo), help(s{1});
    else 
      isinfo = ['grep \'^-[*]- texinfo -[*]- *$\' ', nomearquivo, ' 
>/dev/null'];
      makeinfo = [MAKEINFO_PROGRAM, ...
          ' --fill-column 80 --no-warn --no-validate --no-headers --force 
--ifinfo'];
      system(['(', isinfo, ...
         ' && (tail +3 ', nomearquivo, ' | ', makeinfo, ')', ...
                ' || (tail +2 ', nomearquivo, ')', ...
              ') | ', PAGER]); 
    endif
  endfor

end



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]