summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/commado/filesdo.sty
blob: 728334419a4bc4c01fb25d2deb0a933178e1e0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
                                                 \input plainpkg
% \NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{filesdo}[2012/11/27 v0.1 iterate on files (UL)]
%%
%% Copyright (C) 2012 Uwe Lueck,
%% http://www.contact-ednotes.sty.de.vu
%% -- author-maintained in the sense of LPPL below --
%%
%% This file can be redistributed and/or modified under
%% the terms of the LaTeX Project Public License; either
%% version 1.3c of the License, or any later version.
%% The latest version of this license is in
%%     http://www.latex-project.org/lppl.txt
%% We did our best to help you, but there is NO WARRANTY.
%%
%% Please report bugs, problems, and suggestions via
%%
%%   http://www.contact-ednotes.sty.de.vu
%%
%% == Documentation             ==
%% For documentation in \acro{PDF} format, see `commado.pdf'.
%%
%% == 'commado' Required        ==
%% 'filesdo' is based on 'commado':
\RequirePackage{commado}
%%
%% == Category Code             ==
%% Use `@' as part of ``command names'' ('plainpkg', 'stacklet'):
\PushCatMakeLetterAt
%%
%% == User Commands             ==
%% |\DoWithExtBases{<cmd>}{<ext>}{<basenames>}| \
%% runs `<cmd>{<base>.<ext>}' for all items <base>
%% in <basenames> and a single filename extension <ext>:
\def\DoWithExtBases#1#2{\DoWithCSL{\do@with@ext@base{#1}{#2}}}
\def\do@with@ext@base#1#2#3{#1{#3.#2}}
%% |\DoWithBasesExts{<cmd>}{<basenames>}{<exts>}| \
%% runs `<cmd>{<base>.<ext>}' for all items <base>
%% in <basenames> and all items <ext> in <exts>:
\def\DoWithBasesExts#1#2{\DoWithCSL{\distrib@basenames@do{#1}{#2}}}
%% `\distrib@basenames@do' exchanges arguments in order to reduce 
%% the task to `\DoWithCSL' and `\DoWithCSL':
\def\distrib@basenames@do#1#2#3{%
    \DoWithCSL{\DoWithExtBases{#1}{#3}}{#2}}
%%
%% == Leaving the Package File  ==
\PopLetterCatAt
\endinput
%%
%% == \acro{VERSION HISTORY} ==

v0.1  2012/11/24f.  started 
      2012/11/26    code ready 
      2012/11/27    documented, 
                    \DoWithBaseExts -> \DoWithBasesExts