diff options
author | Karl Berry <karl@freefriends.org> | 2007-08-24 18:36:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-08-24 18:36:30 +0000 |
commit | c97f5f7b9e9ce228ddb7f2895fdb6019f2a71753 (patch) | |
tree | ea3f31f567aae7c8089335d3458564fe52eef444 /Master/texmf-dist/tex/latex/gnuplottex | |
parent | 7ee037f358f4abd769821e0d322ad1687ecec0f9 (diff) |
gnuplottex update (21aug07)
git-svn-id: svn://tug.org/texlive/trunk@4799 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gnuplottex')
-rw-r--r-- | Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty | 27 |
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 |