From f516b1a1044ae23e71bda0e1fb2fb82d869a34ba Mon Sep 17 00:00:00 2001
From: Norbert Preining <preining@logic.at>
Date: Thu, 12 Oct 2006 01:55:05 +0000
Subject: add attachfile to ctan-tpm-check, update the package

git-svn-id: svn://tug.org/texlive/trunk@2317 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/attachfile/attachfile.sty | 29 ++++++++++++++++------
 1 file changed, 21 insertions(+), 8 deletions(-)

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

diff --git a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
index 27e25aa5f19..7f4afbe4fab 100644
--- a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
+++ b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
@@ -8,20 +8,22 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2005 Scott Pakin <scott+af@pakin.org>
+%% Copyright (C) 2006 Scott Pakin <scott+af@pakin.org>
 %% -------------------------------------------------------
 %% 
 %% This package may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.2
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3b of this license or (at your option) any later
+%% version.  The latest version of this license is in
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%% and version 1.2 or later is part of all distributions of LaTeX
-%% version 1999/12/01 or later.
+%% 
+%% and version 1.3b or later is part of all distributions of
+%% LaTeX version 2006/01/07 or later.
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{attachfile}
-    [2005/02/20 v1.2 PDF 1.3+ file attachment]
+    [2006/03/28 v1.2a PDF 1.3+ file attachment]
 \RequirePackage{ifpdf}
 \ifpdf
 \else
@@ -209,10 +211,21 @@
     \atfi@insert@file@annot{#2}%
   \endgroup
 }
+\bgroup
+  \lccode`\@=`\#
+  \lowercase{\gdef\atfi@pdf@slash{@2f}}
+\egroup
+\def\atfi@split@mimetype#1/#2/{%
+  \def\atfi@mime@type{#1}%
+  \def\atfi@mime@subtype{#2}%
+}
 \def\atfi@mimetype{}
 \define@key{AtFi}{mimetype}{%
   \atfi@pdfstringdef\atfi@mimetype{#1}%
-  \edef\atfi@mimetype{/Subtype (\atfi@mimetype)}%
+  \atfi@split@mimetype#1/%
+  \edef\atfi@mimetype{%
+    /Subtype /\atfi@mime@type\atfi@pdf@slash\atfi@mime@subtype
+  }%
 }
 \define@key{AtFi}{icon}{%
   \def\atfi@icon{/Name /#1}%
-- 
cgit v1.2.3

