Mercurial > octave
comparison scripts/plot/util/print.m @ 28208:c3dd445fcc2f stable
print.m: Fix printing eps files with -tight option on Windows (bug #57143).
* print.m: When using epstool on Windows, pass the option '-gs
path_to_gs_executable' so that epstool succesfully finds the ghostscript that
we ship with Octave.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 11 Apr 2020 16:25:52 -0700 |
parents | 5624fd0c5efb |
children | 8d2f9cfc16bc 60d2b3d903d4 |
comparison
equal
deleted
inserted
replaced
28206:11d66485fc19 | 28208:c3dd445fcc2f |
---|---|
888 endif | 888 endif |
889 else | 889 else |
890 cmd = ""; | 890 cmd = ""; |
891 endif | 891 endif |
892 if (! isempty (cmd)) | 892 if (! isempty (cmd)) |
893 cmd = sprintf ("%s --quiet %s %s %s ", opts.epstool_binary, | 893 if (dos_shell) |
894 cmd, filein, fileout); | 894 ## ghostscript expects double, not single, quotes |
895 fileout(fileout == "'") = '"'; | |
896 ## epstool implicitly uses ghostscript and it needs the command name | |
897 cmd = sprintf ("%s --gs %s --quiet %s %s %s ", opts.epstool_binary, | |
898 opts.ghostscript.binary, cmd, filein, fileout); | |
899 else | |
900 cmd = sprintf ("%s --quiet %s %s %s ", opts.epstool_binary, | |
901 cmd, filein, fileout); | |
902 endif | |
895 endif | 903 endif |
896 if (pipein) | 904 if (pipein) |
897 if (dos_shell) | 905 if (dos_shell) |
898 filein(filein=="'") = '"'; | 906 filein(filein=="'") = '"'; |
899 gs_cmd = __ghostscript__ ("binary", opts.ghostscript.binary, | 907 gs_cmd = __ghostscript__ ("binary", opts.ghostscript.binary, |