Mercurial > hg > octave-lyh
diff scripts/plot/print.m @ 11300:4ecc7bc5bc83
search PATH from environment for programs, not EXEC_PATH
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 26 Nov 2010 02:58:16 -0500 |
parents | 093c9facf0f0 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -262,7 +262,7 @@ opts.epstool_cmd = @epstool; if (! isfigure (opts.figure)) - error ("print: no figure to print.") + error ("print: no figure to print") endif orig_figure = get (0, "currentfigure"); @@ -382,7 +382,7 @@ for n = 1:numel(opts.unlink) [status, output] = unlink (opts.unlink{n}); if (status != 0) - warning ("print.m: %s, '%s'.", output, opts.unlink{n}) + warning ("print.m: %s, '%s'", output, opts.unlink{n}) endif endfor end_unwind_protect @@ -440,7 +440,7 @@ if (! isempty (opts.preview) && opts.tight_flag) warning ("print:previewandtight", - "print.m: eps preview may not be combined with -tight.") + "print.m: eps preview may not be combined with -tight") endif if (! isempty (opts.preview) || opts.tight_flag) if (! isempty (opts.epstool_binary)) @@ -488,7 +488,7 @@ if (! isempty (cleanup)) if (pipeout && dos_shell) error ("print:epstoolpipe", - "print.m: cannot pipe output of 'epstool' for DOS shell.") + "print.m: cannot pipe output of 'epstool' for DOS shell") elseif (pipeout) cmd = sprintf ("( %s %s )", cmd, cleanup); else @@ -496,7 +496,7 @@ endif endif elseif (isempty (opts.epstool_binary)) - error ("print:noepstool", "print.m: 'epstool' not found in EXEC_PATH.") + error ("print:noepstool", "print.m: 'epstool' not found in PATH") endif else if (pipein && pipeout) @@ -543,7 +543,7 @@ cmd = sprintf ("%s -L %s 2> /dev/null", opts.fig2dev_binary, devopt); endif elseif (isempty (opts.fig2dev_binary)) - error ("print:nofig2dev", "print.m: 'fig2dev' not found in EXEC_PATH.") + error ("print:nofig2dev", "print.m: 'fig2dev' not found in PATH") endif if (opts.debug) fprintf ("fig2dev command: '%s'\n", cmd) @@ -597,7 +597,7 @@ cmd = sprintf ("%s -P %s", cmd, opts.printer); endif elseif (isempty (opts.lpr_binary)) - error ("print:nolpr", "print.m: 'lpr' not found in EXEC_PATH.") + error ("print:nolpr", "print.m: 'lpr' not found in PATH") endif if (opts.debug) fprintf ("lpr command: '%s'\n", cmd) @@ -617,7 +617,7 @@ cmd = sprintf ("%s -f %s 2> /dev/null", opts.pstoedit_binary, devopt); endif elseif (isempty (opts.pstoedit_binary)) - error ("print:nopstoedit", "print.m: 'pstoedit' not found in EXEC_PATH.") + error ("print:nopstoedit", "print.m: 'pstoedit' not found in PATH") endif if (opts.debug) fprintf ("pstoedit command: '%s'\n", cmd)