changeset 30581:05cf43c9b351

__opengl_print__.m: Use "findstr" on Windows instead of "cat". * scripts/plot/util/private/__opengl_print__.m: Use "findstr" on Windows instead of "cat".
author Gene Harvey <gharveymn@gmail.com>
date Fri, 24 Sep 2021 15:44:38 -0500
parents fdc30b576333
children 030552b97f3a
files scripts/plot/util/private/__opengl_print__.m
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__opengl_print__.m	Fri Dec 31 09:28:05 2021 -0500
+++ b/scripts/plot/util/private/__opengl_print__.m	Fri Sep 24 15:44:38 2021 -0500
@@ -71,9 +71,8 @@
       gl2ps_device = {sprintf("%snotxt", lower (suffix))};
       gl2ps_device{2} = "tex";
       if (dos_shell)
-        ## FIXME: this will only work on MinGW with the MSYS shell
-        pipeline = {sprintf('cat > "%s-inc.%s"', name, suffix)};
-        pipeline{2} = sprintf ('cat > "%s.tex"', name);
+        pipeline = {sprintf('findstr . > "%s-inc.%s"', name, suffix)};
+        pipeline{2} = sprintf ('findstr . > "%s.tex"', name);
       else
         pipeline = {sprintf('cat > "%s-inc.%s"', name, suffix)};
         pipeline{2} = sprintf ('cat > "%s.tex"', name);