From 6486ac961b9d7d4428f198b5e88e33c9f459d85f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 15 Jul 2016 23:20:24 +0000
Subject: pst-pdf (15jul16)

git-svn-id: svn://tug.org/texlive/trunk@41710 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty | 27 ++++++++++++-------------
 1 file changed, 13 insertions(+), 14 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty')

diff --git a/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty b/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
index b9e7b76c4a7..05e3e6073c9 100644
--- a/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
+++ b/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
@@ -23,7 +23,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{pst-pdf}
-    [2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)]
+    [2016/07/11 v1.2a PS graphics for pdfLaTeX (RN,HjG)]
 \newcommand*\ppf@TeX@mode{-1}
 \newcommand*\ppf@draft{false}
 \newif\if@ppf@PST@used\@ppf@PST@usedtrue
@@ -45,21 +45,20 @@
 \ProcessOptions\relax
 \ifnum\ppf@TeX@mode=999\relax\expandafter\endinput\fi
 \ifnum\ppf@TeX@mode=-1\relax
-  \begingroup
-    \chardef\x=0 %
-    \@ifundefined{pdfoutput}{}{%
-      \ifcase\pdfoutput\else
-        \chardef\x=1 %
-      \fi
-    }%
-    \@ifundefined{OpMode}{}{\chardef\x=2 }%
-  \expandafter\endgroup
-  \ifcase\x
-    \def\ppf@TeX@mode{0}%
-  \or
+  \RequirePackage{ifpdf,ifxetex,ifvtex}%
+  \ifpdf
     \def\ppf@TeX@mode{1}%
+    \RequirePackage{luatex85}%
   \else
-    \def\ppf@TeX@mode{9}%
+    \ifvtex
+      \def\ppf@TeX@mode{9}%
+    \else
+      \ifxetex
+        \def\ppf@TeX@mode{9}%
+      \else
+        \def\ppf@TeX@mode{0}%
+      \fi
+    \fi
   \fi
 \fi
 \newcommand*\PDFcontainer{}
-- 
cgit v1.2.3

