summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gnuplottex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/gnuplottex')
-rw-r--r--Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty27
1 files changed, 15 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty b/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
index 4fe162fc373..05a3044a666 100644
--- a/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
+++ b/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
@@ -41,7 +41,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{gnuplottex}
- [2006/10/28 v0.2 gnuplot graphs in LaTeX]
+ [2007/08/21 v0.3 gnuplot graphs in LaTeX]
\RequirePackage{latexsym,graphicx,moreverb,keyval}
\newif\ifShellEscape
\newif\ifmiktex \miktexfalse
@@ -54,17 +54,20 @@
\ProcessOptions\relax
%% test if shell escape really works
\ifShellEscape
- \def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time}
- \ifmiktex
- \immediate\write18{rem >"\tmpfile"}
- \else
- \immediate\write18{touch \tmpfile}
- \fi
- \ifmiktex
- \IfFileExists{\tmpfile.}{\ShellEscapetrue}{\ShellEscapefalse}
- \else
- \IfFileExists{\tmpfile}{\ShellEscapetrue}{\ShellEscapefalse}
- \fi
+\def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time}
+\ifmiktex
+\def\tmpfile{w18-test-\the\year\the\month\the\day\the\time}
+\immediate\write18{echo t > "\tmpfile"}
+\else
+\immediate\write18{touch \tmpfile}
+\fi
+\ifmiktex
+\IfFileExists{\tmpfile.}{\ShellEscapetrue}{\ShellEscapefalse}
+\immediate\write18{del "\tmpfile"}
+\else
+\IfFileExists{\tmpfile}{\ShellEscapetrue}{\ShellEscapefalse}
+\immediate\write18{rm -f \tmpfile}
+\fi
\fi
\ifShellEscape