summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-11 21:26:48 +0000
committerKarl Berry <karl@freefriends.org>2016-05-11 21:26:48 +0000
commit39c10427f8eee057dc28928380060a585e1e017b (patch)
tree6750074338d5e6b808cfca3671e2ab9763c328ae /Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex
parenta49931ca8756327265b8929a7a147045bf2b3506 (diff)
koma-script (11may16)
git-svn-id: svn://tug.org/texlive/trunk@41038 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex33
1 files changed, 23 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex b/Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex
index ca7ec757fd8..980b4dd17f5 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex
+++ b/Master/texmf-dist/source/latex/koma-script/scrdocstrip.tex
@@ -1,6 +1,6 @@
% ======================================================================
% scrdocstrip.tex
-% Copyright (c) Markus Kohm, 2013
+% Copyright (c) Markus Kohm, 2013-2015
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -18,7 +18,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrdocstrip.tex
-% Copyright (c) Markus Kohm, 2013
+% Copyright (c) Markus Kohm, 2013-2015
%
% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
% Version 1.3c, verteilt und/oder veraendert werden.
@@ -59,7 +59,7 @@
\expandafter\ifx\csname scrdocstripversion\endcsname\relax
\else \expandafter\endinput
\fi
-\Msg{| Using KOMA-Script's docstrip extensions.}
+\Msg{| Using KOMA-Script's docstrip extensions.}%|
% Support for variables:
\def\KOMAdefVariable#1#2{%
\expandafter\def\csname KOMAvar@#1\endcsname{#2}%
@@ -111,7 +111,7 @@
\fi
}
\def\KOMAvalidityTest#1{%
- \maybeMsg{^^J| Testing validity of distribution: }%
+ \maybeMsg{^^J| Testing validity of distribution: }%|
\begingroup
\def\readloop{%
\ifeof\inFile\else
@@ -165,12 +165,12 @@
\else
\def\do##1{,^^J| \@spaces\@spaces\@spaces##1}%
\errhelp{| You should ask your distributor for a valid and legal
- distribution.}%
+ distribution.}%|
\errmessage{^^J%
| Missing files: \expandafter\expandafter\expandafter\@gobble
\KOMAFilesMissing\KOMAdocFilesMissing\KOMAnoFilesMissing^^J%
| Distribution seems to be invalid.^^J%
- | This error is fatal}%
+ | This error is fatal}%|
\batchmode
\csname @@end\endcsname
\fi
@@ -193,7 +193,7 @@
| PLEASE NOTE, THAT DISTRIBUTIONS WITHOUT THOSE FILES ARE NOT ALLOWED!^^J%
| But maybe those files are there and you're TeX distribution simply^^J%
| cannot open files without extension.^^J%
- +----------------------------------------------------------------------}
+ +----------------------------------------------------------------------}%|
\fi
\ifx\KOMAdocFilesMissing\empty\else
\Msg{%
@@ -274,19 +274,20 @@
\ifx\relax#2\relax\else\@commentWarning#2\@nil\fi
}
\def\KNL{^\empty^J\perCent^^J}
+\def\XKNL{^\empty^J\perCent|^^J}
\def\genericWarning#1#2{%
\string\immediate\string\write17{\KNL
+----------------------------------------------------------------------\KNL
- | WARNING (`#1'):\KNL
+ | WARNING (`#1'):\XKNL
+----------------------------------------------------------------------\KNL
\@genericWarning#2^^J\@nil
+----------------------------------------------------------------------\KNL
}^^J%
}
\def\@genericWarning#1^^J#2\@nil{%
- | #1\KNL
+ | #1\XKNL
\ifx\relax#2\relax\else\@genericWarning#2\@nil\fi
-}
+}%|
\def\useWarning#1{\let\use@Warning#1}
\useWarning\genericWarning
@@ -305,6 +306,18 @@
\chardef\scrdocstripversion 1\relax
+\def\fromoptional#1{%
+ \immediate\openin\inputcheck\uptospace#1 \qStop\relax
+ \ifeof\inputcheck
+ \Msg{Ignorring not existing optional file `#1'.}%
+ \expandafter\@gobbletwo
+ \else
+ \immediate\closein\inputcheck
+ \expandafter\from
+ \fi
+ {#1}%
+}
+
\process@first@batchfile
\endinput
%