From c97f5f7b9e9ce228ddb7f2895fdb6019f2a71753 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 24 Aug 2007 18:36:30 +0000 Subject: gnuplottex update (21aug07) git-svn-id: svn://tug.org/texlive/trunk@4799 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/gnuplottex/gnuplottex.sty | 27 ++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/latex/gnuplottex') 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 -- cgit v1.2.3