Debian Codegraph @

texmf-dist/tex/latex/oberdiek/stampinclude.sty

raw
1 %%
2 %% This is file `stampinclude.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% stampinclude.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: stampinclude
12 %% Version: 2016/05/16 v1.1
13 %%
14 %% Copyright (C)
15 %% 2008 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/oberdiek/issues
33 %%
34 %%
35 %% This work consists of the main source file stampinclude.dtx
36 %% and the derived files
37 %% stampinclude.sty, stampinclude.pdf, stampinclude.ins, stampinclude.drv.
38 %%
39 \NeedsTeXFormat{LaTeX2e}
40 \ProvidesPackage{stampinclude}
41 [2016/05/16 v1.1 Include files based on time stamps (HO)]%
42 \RequirePackage{pdftexcmds}[2007/12/12]%
43 \begingroup
44 \chardef\x=1 %
45 \expandafter\ifx\csname pdf@filemoddate\endcsname\relax
46 \chardef\x=0 %
47 \fi
48 \expandafter\ifx\csname pdf@strcmp\endcsname\relax
49 \chardef\x=0 %
50 \fi
51 \expandafter\endgroup\ifcase\x
52 \PackageWarningNoLine{stampinclude}{%
53 \string\pdffilemoddate\space or %
54 \string\pdfstrcmp\space are not found,\MessageBreak
55 that are provided by pdfTeX >= 1.30.0.\MessageBreak
56 Also LuaTeX is not detected.\MessageBreak
57 Therefore package loading is aborted%
58 }%
59 \expandafter\endinput
60 \fi
61 \let\SInc@org@include\@include
62 \def\@include#1 {%
63 \IfFileExists{#1.aux}{%
64 \ifnum\pdf@strcmp{\pdf@filemoddate{#1.aux}}%
65 {\pdf@filemoddate{#1.tex}}<0 %
66 \ifx\@partlist\@empty
67 \gdef\@partlist{{#1}}%
68 \else
69 \g@addto@macro\@partlist{,{#1}}%
70 \fi
71 \fi
72 }{%
73 \ifx\@partlist\@empty
74 \gdef\@partlist{{#1}}%
75 \else
76 \g@addto@macro\@partlist{,{#1}}%
77 \fi
78 }%
79 \SInc@org@include{#1} \relax
80 }
81 \renewcommand*{\includeonly}[1]{%
82 \PackageInfo{stampinclude}{%
83 Ignoring \string\includeonly
84 }%
85 }
86 \@partswtrue
87 \gdef\@partlist{}
88 \AtEndDocument{%
89 \begingroup
90 \expandafter\let\expandafter\@partlist\expandafter\@empty
91 \expandafter\@for\expandafter\reserved@a
92 \expandafter:\expandafter=\@partlist\do{%
93 \ifx\@partlist\@empty
94 \edef\@partlist{\reserved@a}%
95 \else
96 \edef\@partlist{\@partlist, \reserved@a}%
97 \fi
98 }%
99 \typeout{********************%
100 ********************%
101 ********************%
102 ******************%
103 }%
104 \ifx\@partlist\@empty
105 \typeout{[stampinclude] No included files.}%
106 \else
107 \typeout{[stampinclude] Included files:}%
108 \typeout{\@partlist}%
109 \fi
110 \typeout{********************%
111 ********************%
112 ********************%
113 ******************%
114 }%
115 \endgroup
116 }
117 \endinput
118 %%
119 %% End of file `stampinclude.sty'.