summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/mkjobtexmf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-05 00:23:53 +0000
committerKarl Berry <karl@freefriends.org>2011-12-05 00:23:53 +0000
commita3820a32b1f8c604520d9fcf34069b4e0a73a89a (patch)
treec70af98636c9e2fdff4f6e0b721cb93fed1b5afc /Master/texmf-dist/doc/generic/mkjobtexmf
parent757da55142bf500fb11d5e9567bf1cec3b1dc18b (diff)
mkjobtexmf 0.8 (11nov11)
git-svn-id: svn://tug.org/texlive/trunk@24758 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/mkjobtexmf')
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/README9
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/clean-case.pl20
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.html223
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.ltx68
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.pdfbin107944 -> 59871 bytes
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.txt102
-rw-r--r--Master/texmf-dist/doc/generic/mkjobtexmf/version.pl144
7 files changed, 454 insertions, 112 deletions
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/README b/Master/texmf-dist/doc/generic/mkjobtexmf/README
index 7e454af1582..e09a30f1822 100644
--- a/Master/texmf-dist/doc/generic/mkjobtexmf/README
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/README
@@ -1,6 +1,6 @@
-README for mkjobtexmf 2008/06/28 v0.7
+README for mkjobtexmf 2011/11/10 v0.8
-Copyright 2007, 2008 by Heiko Oberdiek
+Copyright 2007, 2008, 2011 by Heiko Oberdiek
License
=======
@@ -45,4 +45,9 @@ Installation
Install them where you find them, for example in directory:
/usr/local/share/doc/mkjobtexmf/
+The files clean-case.pl and version.pl are just helper scripts for
+generating the documentation and are provided for sake of completeness.
+They are usually not needed, because the documentation files are
+already generated and provided in the distribution.
+
See the documentation for further information.
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/clean-case.pl b/Master/texmf-dist/doc/generic/mkjobtexmf/clean-case.pl
new file mode 100644
index 00000000000..fe72e184d02
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/clean-case.pl
@@ -0,0 +1,20 @@
+#!/usr/bin/env perl
+use strict;
+$^W=1;
+
+@ARGV == 2 or die "!!! Syntax: <input file> <output file>\n";
+
+my $infile = $ARGV[0];
+my $outfile = $ARGV[1];
+
+open(IN, '<', $infile) or die "!!! Error: Cannot open `$infile'!\n";
+open(OUT, '>', $outfile) or die "!!! Error: Cannot write `$outfile'!\n";
+while (<IN>) {
+ s/^(=head[1] [A-Z])(.*)/$1\L$2\E/;
+ s/(L<"[A-Z])([^"]+)">/$1\L$2\E">/g;
+ print OUT;
+}
+close(IN);
+close(OUT);
+
+__END__
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.html b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.html
index 8cd658d49de..ed760662e1c 100644
--- a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.html
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<title>mkjobtexmf -- Generate a texmf tree for a particular job</title>
+<title>mkjobtexmf</title>
<link rev="made" href="mailto:feedback@suse.de" />
</head>
@@ -12,9 +12,10 @@
<ul>
- <li><a href="#name">NAME</a></li>
- <li><a href="#synopsis">SYNOPSIS</a></li>
- <li><a href="#description">DESCRIPTION</a></li>
+ <li><a href="#name">Name</a></li>
+ <li><a href="#version">Version</a></li>
+ <li><a href="#synopsis">Synopsis</a></li>
+ <li><a href="#description">Description</a></li>
<ul>
<li><a href="#running_the_program">Running the program</a></li>
@@ -22,25 +23,30 @@
<li><a href="#analyze_and_link_copy_found_files">Analyze and link/copy found files</a></li>
</ul>
- <li><a href="#options">OPTIONS</a></li>
- <li><a href="#examples">EXAMPLES</a></li>
- <li><a href="#unsolved_issues__caveats__todos">UNSOLVED ISSUES, CAVEATS, TODOS</a></li>
- <li><a href="#files">FILES</a></li>
- <li><a href="#author">AUTHOR</a></li>
- <li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li>
- <li><a href="#history">HISTORY</a></li>
+ <li><a href="#options">Options</a></li>
+ <li><a href="#examples">Examples</a></li>
+ <li><a href="#unsolved_issues__caveats__todos">Unsolved issues, caveats, todos</a></li>
+ <li><a href="#files">Files</a></li>
+ <li><a href="#author">Author</a></li>
+ <li><a href="#copyright_and_license">Copyright and license</a></li>
+ <li><a href="#history">History</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
-<h1><a name="name">NAME</a></h1>
+<h1><a name="name">Name</a></h1>
<p>mkjobtexmf -- Generate a texmf tree for a particular job</p>
<p>
</p>
<hr />
-<h1><a name="synopsis">SYNOPSIS</a></h1>
+<h1><a name="version">Version</a></h1>
+<p>2011-11-10 v0.8</p>
+<p>
+</p>
+<hr />
+<h1><a name="synopsis">Synopsis</a></h1>
<p>The progam <strong>mkjobtexmf</strong> runs a program and tries to
find the used file names. Two methods are available,
option <code>-recorder</code> of TeX (Web2C) or the program <strong>strace</strong>.</p>
@@ -73,22 +79,25 @@ instead of TeX. As method only program <strong>strace</strong> is available.</p>
symbol links
--flat Junk paths, do not make directories
inside the destination directory
+ --(no)texhash Run texhash, use --notexhash for MiKTeX
+ --exclude-ext &lt;ext&gt; Exclude files with extension &lt;ext&gt;.
--cmd-tex &lt;cmd&gt; Command for the TeX compiler
--cmd-kpsewhich &lt;cmd&gt; Command for kpsewhich
--cmd-texhash &lt;cmd&gt; Command for texhash
--cmd-strace &lt;cmd&gt; Command for strace
--verbose Verbose output
--help Brief help message
- --man Full documentation</pre>
+ --man Full documentation
+ --version Print version identification</pre>
<p>
</p>
<hr />
-<h1><a name="description">DESCRIPTION</a></h1>
+<h1><a name="description">Description</a></h1>
<p>
</p>
<h2><a name="running_the_program">Running the program</a></h2>
<p>First <strong>mkjobtexmf</strong> runs a program, usually TeX. The TeX compiler
-is configured by option <strong>--cmd-tex</strong>. Option <strong>--texname</strong> can
+is configured by option <code>--cmd-tex</code>. Option <code>--texname</code> can
be used, if the file name extension differs from <em>.tex</em>:</p>
<pre>
mkjobtexmf --jobname foo --texname foo.ltx</pre>
@@ -132,34 +141,34 @@ a relative file name, then it is directly linked/copied into the
result directory <em><em>jobname</em>.mjt</em>. Absolute file names
are not supported and neither paths with links to parent directories.</p>
<p>Symbolic links are created by default. The files are copied
-if option --copy is given or symbolic linking is not available.</p>
+if option <a href="#item__2d_2dcopy"><code>--copy</code></a> is given or symbolic linking is not available.</p>
<p>
</p>
<hr />
-<h1><a name="options">OPTIONS</a></h1>
+<h1><a name="options">Options</a></h1>
<dl>
-<dt><strong><a name="item__2d_2djobname_3djobname"><strong>--jobname</strong>=<em>jobname</em></a></strong><br />
+<dt><strong><a name="item__2d_2djobname_3d_3cjobname_3e"><strong>-</strong><strong>-jobname</strong>=&lt;<em>jobname</em>&gt;</a></strong><br />
</dt>
<dd>
-It is the name of the job. `&lt;jobname&gt;.tex' serves as default for
-the TeX file and &lt;jobname&gt; is used for naming various directories
-and files. See section <a href="#files">FILES</a>.
+It is the name of the job. `&lt;<em>jobname</em>&gt;.tex' serves as default for
+the TeX file and &lt;<em>jobname</em>&gt; is used for naming various directories
+and files. See section <a href="#files">Files</a>.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dtexname_3dname"><strong>--texname</strong>=<em>name</em></a></strong><br />
+<dt><strong><a name="item__2d_2dtexname_3d_3cname_3e"><strong>-</strong><strong>-texname</strong>=&lt;<em>name</em>&gt;</a></strong><br />
</dt>
<dd>
-The name of the TeX input file, if it differs from &lt;jobname&gt;.tex.
+The name of the TeX input file, if it differs from &lt;<em>jobname</em>&gt;.tex.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dtexopt_3dopt"><strong>--texopt</strong>=<em>opt</em></a></strong><br />
+<dt><strong><a name="item__2d_2dtexopt_3d_3copt_3e"><strong>-</strong><strong>-texopt</strong>=&lt;<em>opt</em>&gt;</a></strong><br />
</dt>
<dd>
-Additional option for the TeX compiler, examples are --ini or
---shell-escape. This option can be given more than once.
+Additional option for the TeX compiler, examples are <code>--ini</code> or
+<code>--shell-escape</code>. This option can be given more than once.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2ddestdir_3ddirectory"><strong>--destdir</strong>=<em>directory</em></a></strong><br />
+<dt><strong><a name="item__2d_2ddestdir_3d_3cdirectory_3e"><strong>-</strong><strong>-destdir</strong>=&lt;<em>directory</em>&gt;</a></strong><br />
</dt>
<dd>
Specifies the name of the destination directory where the result
@@ -167,25 +176,25 @@ is collected. As default a directory is generated in the current
directory with the job name and extension `.mjt'.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2doutput"><strong>--output</strong></a></strong><br />
+<dt><strong><a name="item__2d_2doutput"><strong>-</strong><strong>-output</strong></a></strong><br />
</dt>
<dd>
Also add output files.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dstrace"><strong>--strace</strong></a></strong><br />
+<dt><strong><a name="item__2d_2dstrace"><strong>-</strong><strong>-strace</strong></a></strong><br />
</dt>
<dd>
-Use method with program <strong>strace</strong>, see <a href="#description">DESCRIPTION</a>.
+Use method with program <strong>strace</strong>, see <a href="#description">Description</a>.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dcopy"><strong>--copy</strong></a></strong><br />
+<dt><strong><a name="item__2d_2dcopy"><strong>-</strong><strong>-copy</strong></a></strong><br />
</dt>
<dd>
Files are copied instead of creating symbolic links.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dflat"><strong>--flat</strong></a></strong><br />
+<dt><strong><a name="item__2d_2dflat"><strong>-</strong><strong>-flat</strong></a></strong><br />
</dt>
<dd>
Files are linked or copied without path elements.
@@ -196,47 +205,88 @@ files or links without directory.
<p>The files `ls-R' and `aliases' are ignored.</p>
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dcmd_2dtex_3dcmd"><strong>--cmd-tex</strong>=<em>cmd</em></a></strong><br />
+<dt><strong><a name="item__2d_2dexclude_2dext_3d_3cext_3e"><strong>-</strong><strong>-exclude-ext</strong>=&lt;<em>ext</em>&gt;</a></strong><br />
+</dt>
+<dd>
+Files with extension &lt;<em>ext</em>&gt; are excluded. The option can be
+given several times or a comma separated list of extensions
+can be used. Examples:
+</dd>
+<dd>
+<pre>
+ --exclude-ext aux --exclude-ext log --exclude-ext toc</pre>
+</dd>
+<dd>
+<p>is the same as</p>
+</dd>
+<dd>
+<pre>
+ --exclude-ext aux,log,toc</pre>
+</dd>
+<p></p>
+<dt><strong><a name="item__2d_2d_28no_29texhash"><strong>-</strong><strong>-(no)texhash</strong></a></strong><br />
+</dt>
+<dd>
+As default the file `ls-R' is generated in the `texmf' tree,
+because this is the file name database that might be used
+in TeX Live. Because MiKTeX uses a different mechanism, its
+`texhash' does not generate the `ls-R' files and <code>--notexhash</code>
+suppresses the call of `texhash'.
+</dd>
+<p></p>
+<dt><strong><a name="item__2d_2dcmd_2dtex_3d_3ccmd_3e"><strong>-</strong><strong>-cmd-tex</strong>=&lt;<em>cmd</em>&gt;</a></strong><br />
</dt>
<dd>
Command for the TeX compiler. Default is pdflatex.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dcmd_2dkpsewhich_3dcmd"><strong>--cmd-kpsewhich</strong>=<em>cmd</em></a></strong><br />
+<dt><strong><a name="item__2d_2dcmd_2dkpsewhich_3d_3ccmd_3e"><strong>-</strong><strong>-cmd-kpsewhich</strong>=&lt;<em>cmd</em>&gt;</a></strong><br />
</dt>
<dd>
Command for kpsewhich.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dcmd_2dtexhash_3dcmd"><strong>--cmd-texhash</strong>=<em>cmd</em></a></strong><br />
+<dt><strong><a name="item__2d_2dcmd_2dtexhash_3d_3ccmd_3e"><strong>-</strong><strong>-cmd-texhash</strong>=&lt;<em>cmd</em>&gt;</a></strong><br />
</dt>
<dd>
Command for updating the file name database of the generated
texmf tree. Default is texmf.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dcmd_2dstrace_3dcmd"><strong>--cmd-strace</strong>=<em>cmd</em></a></strong><br />
+<dt><strong><a name="item__2d_2dcmd_2dstrace_3d_3ccmd_3e"><strong>-</strong><strong>-cmd-strace</strong>=&lt;<em>cmd</em>&gt;</a></strong><br />
</dt>
<dd>
Command for strace.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dverbose"><strong>--verbose</strong></a></strong><br />
+<dt><strong><a name="item__2d_2dverbose"><strong>-</strong><strong>-verbose</strong></a></strong><br />
</dt>
<dd>
Verbose messages.
</dd>
<p></p>
-<dt><strong><a name="item__2d_2dhelp"><strong>--help</strong></a></strong><br />
+<dt><strong><a name="item__2d_2dhelp"><strong>-</strong><strong>-help</strong></a></strong><br />
</dt>
<dd>
Display help screen.
</dd>
+<p></p>
+<dt><strong><a name="item_b"><strong>-</strong>B(-man&gt;</a></strong><br />
+</dt>
+<dd>
+Print manual page.
+</dd>
+<p></p>
+<dt><strong><a name="item__2d_2dversion"><strong>-</strong><strong>-version</strong></a></strong><br />
+</dt>
+<dd>
+Print version identification and exit.
+</dd>
<p></p></dl>
<p>
</p>
<hr />
-<h1><a name="examples">EXAMPLES</a></h1>
+<h1><a name="examples">Examples</a></h1>
<p>TeX file <em>test.tex</em> using TeX's recorder method:</p>
<pre>
mkjobtexmf --jobname test</pre>
@@ -258,7 +308,7 @@ Display help screen.
<p>
</p>
<hr />
-<h1><a name="unsolved_issues__caveats__todos">UNSOLVED ISSUES, CAVEATS, TODOS</a></h1>
+<h1><a name="unsolved_issues__caveats__todos">Unsolved issues, caveats, todos</a></h1>
<dl>
<dt><strong><a name="item_experimental_software">Experimental software</a></strong><br />
</dt>
@@ -318,13 +368,13 @@ file recording (e.g. pdfTeX 1.40.3 does not record .pfb and
<p>
</p>
<hr />
-<h1><a name="files">FILES</a></h1>
+<h1><a name="files">Files</a></h1>
<dl>
<dt><strong><a name="item__3cjobname_3e_2emjt_2f"><em>&lt;jobname&gt;.mjt/</em></a></strong><br />
</dt>
<dd>
Directory where the resulting texmf tree and symbol links
-are stored. It can be changed by option --destdir.
+are stored. It can be changed by option <code>--destdir</code>.
</dd>
<p></p>
<dt><strong><a name="item__3cjobname_3e_2efls"><em>&lt;jobname&gt;.fls</em></a></strong><br />
@@ -342,53 +392,82 @@ Log file where the result of <strong>strace</strong> is stored.
<p>
</p>
<hr />
-<h1><a name="author">AUTHOR</a></h1>
-<p>Heiko Oberdiek, email: oberdiek at uni-freiburg.de</p>
+<h1><a name="author">Author</a></h1>
+<p>Heiko Oberdiek, email: heiko.oberdiek at googlemail.com</p>
<p>
</p>
<hr />
-<h1><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h1>
-<p>Copyright 2007 by Heiko Oberdiek.</p>
+<h1><a name="copyright_and_license">Copyright and license</a></h1>
+<p>Copyright 2007, 2008, 2011 by Heiko Oberdiek.</p>
<p>This library is free software; you may redistribute it and/or
modify it under the same terms as Perl itself
(Perl Artistic License/GNU General Public License, version 2).</p>
<p>
</p>
<hr />
-<h1><a name="history">HISTORY</a></h1>
+<h1><a name="history">History</a></h1>
<ol>
-<li><strong><a name="item__2f04_2f16_v0_2e1">/04/16 v0.1</a></strong><br />
+<li><strong><a name="item__2f04_2f16_v0_2e1"><strong>2007/04/16 v0.1</strong></a></strong><br />
</li>
-* First experimental version.
-<p></p>
-<li><strong><a name="item__2f05_2f09_v0_2e2">/05/09 v0.2</a></strong><br />
+<ul>
+<li><strong><a name="item_first_experimental_version_2e">First experimental version.</a></strong><br />
</li>
-* Typo in option name fixed.
-<p></p>
-<li><strong><a name="item__2f09_2f03_v0_2e3">/09/03 v0.3</a></strong><br />
+</ul>
+<li><strong><a name="item__2f05_2f09_v0_2e2"><strong>2007/05/09 v0.2</strong></a></strong><br />
</li>
-* New options: --copy, --flat, --destdir
-<p></p>
-<li><strong><a name="item__2f09_2f04_v0_2e4">/09/04 v0.4</a></strong><br />
+<ul>
+<li><strong><a name="item_typo_in_option_name_fixed_2e">Typo in option name fixed.</a></strong><br />
</li>
-* Bug fix in map_files_texmf.
-<p></p>
-<li><strong><a name="item__2f09_2f06_v0_2e5">/09/06 v0.5</a></strong><br />
+</ul>
+<li><strong><a name="item__2f09_2f03_v0_2e3"><strong>2007/09/03 v0.3</strong></a></strong><br />
+</li>
+<ul>
+<li><strong><a name="item_new_options_3a__2d_2dcopy_2c__2d_2dflat_2c__2d_2dd">New options: <a href="#item__2d_2dcopy"><code>--copy</code></a>, <a href="#item__2d_2dflat"><code>--flat</code></a>, <code>--destdir</code></a></strong><br />
+</li>
+</ul>
+<li><strong><a name="item__2f09_2f04_v0_2e4"><strong>2007/09/04 v0.4</strong></a></strong><br />
</li>
-* Support for `configure' added.
+<ul>
+<li><strong><a name="item_bug_fix_in_map_files_texmf_2e">Bug fix in map_files_texmf.</a></strong><br />
+</li>
+</ul>
+<li><strong><a name="item__2f09_2f06_v0_2e5"><strong>2007/09/06 v0.5</strong></a></strong><br />
+</li>
+<ul>
+<li><strong><a name="item_support_for__60configure_27_added_2e__28thanks_to_">Support for `configure' added.
(Thanks to Norbert Preining for writing a first version of
- the configure stuff.)
-<p></p>
-<li><strong><a name="item__2f04_2f05_v0_2e6">/04/05 v0.6</a></strong><br />
+ the configure stuff.)</a></strong><br />
</li>
-* Tiny fix in target `uninstall' in file `Makefile.in'.
- (Thanks to Karl Berry)
-<p></p>
-<li><strong><a name="item__2f06_2f28_v0_2e7">/06/28 v0.7</a></strong><br />
+</ul>
+<li><strong><a name="item__2f04_2f05_v0_2e6"><strong>2008/04/05 v0.6</strong></a></strong><br />
</li>
-* Fix for unknown option `--cmd-strace'.
- (Thanks to Juho Niemel``a)
-<p></p></ol>
+<ul>
+<li><strong><a name="item_tiny_fix_in_target__60uninstall_27_in_file__60make">Tiny fix in target `uninstall' in file `Makefile.in'.
+ (Thanks to Karl Berry)</a></strong><br />
+</li>
+</ul>
+<li><strong><a name="item__2f06_2f28_v0_2e7"><strong>2008/06/28 v0.7</strong></a></strong><br />
+</li>
+<ul>
+<li><strong><a name="item_fix_for_unknown_option__60_2d_2dcmd_2dstrace_27_2e">Fix for unknown option `<code>--cmd-strace</code>'.
+ (Thanks to Juho Niemelä)</a></strong><br />
+</li>
+</ul>
+<li><strong><a name="item__2f11_2f10_v0_2e8"><strong>2011/11/10 v0.8</strong></a></strong><br />
+</li>
+<ul>
+<li><strong><a name="item_remove_colon_from_drive_specification_when_making_">Remove colon from drive specification when making directories.</a></strong><br />
+</li>
+<li><strong><a name="item_option__2d_2d_28no_29texhash_added_2e">Option <a href="#item__2d_2d_28no_29texhash"><code>--(no)texhash</code></a> added.</a></strong><br />
+</li>
+<li><strong><a name="item_miktex">Some support for MiKTeX (thanks Ulrike Fischer).</a></strong><br />
+</li>
+<li><strong><a name="item_various_fixes_in_the_generation_of_the_documentati">Various fixes in the generation of the documentation.</a></strong><br />
+</li>
+<li><strong><a name="item_options__2d_2dexclude_2dext_and__2d_2dversion_adde">Options <code>--exclude-ext</code> and <a href="#item__2d_2dversion"><code>--version</code></a> added.</a></strong><br />
+</li>
+</ul>
+</ol>
</body>
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.ltx b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.ltx
index 7127c9efa81..bbb70e9ebf4 100644
--- a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.ltx
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.ltx
@@ -1,19 +1,59 @@
% mkjobtexmf.ltx
%
-% Copyright 2007, 2008 by Heiko Oberdiek.
+% Copyright 2007, 2008, 2011 by Heiko Oberdiek.
%
% The file is part of project mkjobtexmf.
% It's free software; you may redistribute it and/or
% modify it under the same terms as Perl itself
% (Perl Artistic License/GNU General Public License, version 2).
-\documentclass[a4paper]{article}
+\documentclass[a4paper,12pt]{article}
-\providecommand*{\DATE}{2008/06/28}
-\providecommand*{\VERSION}{0.7}
+\providecommand*{\DATE}{2011/11/10}
+\providecommand*{\VERSION}{0.8}
+
+\usepackage[
+ hmargin=1in,
+ top=.75in,
+ bottom=.5in,
+ includefoot,
+ headheight=14.5pt,
+ footskip=40pt,
+]{geometry}
+
+\usepackage{fancyhdr}
+\renewcommand*{\headrulewidth}{0pt}
+\renewcommand*{\footrulewidth}{0.4pt}
+\fancyhead{}
+\fancyfoot[L]{\textsf{mkjobtexmf}}
+\fancyfoot[C]{\DATE\ v\VERSION}
+\fancyfoot[R]{\thepage}
+\pagestyle{fancy}
+\makeatletter
+\let\ps@plain\ps@fancy
+\makeatother
+
+\makeatletter
+\renewenvironment*{theindex}{%
+ \section*{\indexname}%
+ \setlength{\parindent}{0pt}%
+ \setlength{\parskip}{0pt plus .3pt}%
+ \let\item\@idxitem
+}{%
+ \clearpage
+}
+\makeatother
+
+\usepackage{ifluatex}
+\ifluatex
+ \usepackage{fontspec}
+\else
+ \usepackage[T1]{fontenc}%
+ \usepackage{lmodern}%
+ \usepackage[utf8]{inputenc}%
+\fi
\usepackage{makeidx}
-\makeindex
\usepackage{hyperref}
\hypersetup{
@@ -21,21 +61,23 @@
pdfauthor={Heiko Oberdiek},
pdftitle={mkjobtexmf},
}
+\definecolor{linkcolor}{rgb}{0,0,.8}
+\hypersetup{
+ linkcolor=linkcolor,
+}
\usepackage{bookmark}
\bookmarksetup{
open,
+ numbered,
}
+\makeindex
+
\author{Heiko Oberdiek}
\title{Program \textsf{mkjobtexmf}}
\date{\DATE\space v\VERSION}
-\makeatletter
-\let\org@section\section
-\def\section{\@ifstar\org@section\org@section}
-\makeatother
-
% ignore minor overfull \hbox warnings
\setlength{\hfuzz}{1.5pt}
@@ -43,8 +85,14 @@
\maketitle
+\pdfbookmark[1]{\contentsname}{toc}
\tableofcontents
+\makeatletter
+\let\org@section\section
+\def\section{\@ifstar\org@section\org@section}
+\makeatother
+
\input{mkjobtexmf.tex}
\printindex
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.pdf b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.pdf
index 13e63f00450..0a75e81aae1 100644
--- a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.pdf
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.txt b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.txt
index b091141ec1b..e64edeec071 100644
--- a/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.txt
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/mkjobtexmf.txt
@@ -2,6 +2,10 @@ NAME
mkjobtexmf -- Generate a texmf tree for a particular job
+VERSION
+
+ 2011-11-10 v0.8
+
SYNOPSIS
The progam mkjobtexmf runs a program and tries to find the used file
@@ -40,6 +44,8 @@ SYNOPSIS
symbol links
--flat Junk paths, do not make directories
inside the destination directory
+ --(no)texhash Run texhash, use --notexhash for MiKTeX
+ --exclude-ext <ext> Exclude files with extension <ext>.
--cmd-tex <cmd> Command for the TeX compiler
--cmd-kpsewhich <cmd> Command for kpsewhich
--cmd-texhash <cmd> Command for texhash
@@ -47,13 +53,14 @@ SYNOPSIS
--verbose Verbose output
--help Brief help message
--man Full documentation
+ --version Print version identification
DESCRIPTION
Running the program
First mkjobtexmf runs a program, usually TeX. The TeX compiler is
- configured by option --cmd-tex. Option --texname can be used, if the
+ configured by option "--cmd-tex". Option "--texname" can be used, if the
file name extension differs from .tex:
mkjobtexmf --jobname foo --texname foo.ltx
@@ -93,23 +100,23 @@ DESCRIPTION
with links to parent directories.
Symbolic links are created by default. The files are copied if option
- --copy is given or symbolic linking is not available.
+ "--copy" is given or symbolic linking is not available.
OPTIONS
- --jobname=*jobname*
- It is the name of the job. `<jobname>.tex' serves as default for the
- TeX file and <jobname> is used for naming various directories and
- files. See section "FILES".
+ --jobname=<*jobname*>
+ It is the name of the job. `<*jobname*>.tex' serves as default for
+ the TeX file and <*jobname*> is used for naming various directories
+ and files. See section "FILES".
- --texname=*name*
- The name of the TeX input file, if it differs from <jobname>.tex.
+ --texname=<*name*>
+ The name of the TeX input file, if it differs from <*jobname*>.tex.
- --texopt=*opt*
- Additional option for the TeX compiler, examples are --ini or
- --shell-escape. This option can be given more than once.
+ --texopt=<*opt*>
+ Additional option for the TeX compiler, examples are "--ini" or
+ "--shell-escape". This option can be given more than once.
- --destdir=*directory*
+ --destdir=<*directory*>
Specifies the name of the destination directory where the result is
collected. As default a directory is generated in the current
directory with the job name and extension `.mjt'.
@@ -130,17 +137,35 @@ OPTIONS
The files `ls-R' and `aliases' are ignored.
- --cmd-tex=*cmd*
+ --exclude-ext=<*ext*>
+ Files with extension <*ext*> are excluded. The option can be given
+ several times or a comma separated list of extensions can be used.
+ Examples:
+
+ --exclude-ext aux --exclude-ext log --exclude-ext toc
+
+ is the same as
+
+ --exclude-ext aux,log,toc
+
+ --(no)texhash
+ As default the file `ls-R' is generated in the `texmf' tree, because
+ this is the file name database that might be used in TeX Live.
+ Because MiKTeX uses a different mechanism, its `texhash' does not
+ generate the `ls-R' files and "--notexhash" suppresses the call of
+ `texhash'.
+
+ --cmd-tex=<*cmd*>
Command for the TeX compiler. Default is pdflatex.
- --cmd-kpsewhich=*cmd*
+ --cmd-kpsewhich=<*cmd*>
Command for kpsewhich.
- --cmd-texhash=*cmd*
+ --cmd-texhash=<*cmd*>
Command for updating the file name database of the generated texmf
tree. Default is texmf.
- --cmd-strace=*cmd*
+ --cmd-strace=<*cmd*>
Command for strace.
--verbose
@@ -149,6 +174,12 @@ OPTIONS
--help
Display help screen.
+ -B(-man>
+ Print manual page.
+
+ --version
+ Print version identification and exit.
+
EXAMPLES
TeX file test.tex using TeX's recorder method:
@@ -215,7 +246,7 @@ FILES
<jobname>.mjt/
Directory where the resulting texmf tree and symbol links are
- stored. It can be changed by option --destdir.
+ stored. It can be changed by option "--destdir".
<jobname>.fls
Name of TeX's recorder file.
@@ -225,11 +256,11 @@ FILES
AUTHOR
- Heiko Oberdiek, email: oberdiek at uni-freiburg.de
+ Heiko Oberdiek, email: heiko.oberdiek at googlemail.com
COPYRIGHT AND LICENSE
- Copyright 2007 by Heiko Oberdiek.
+ Copyright 2007, 2008, 2011 by Heiko Oberdiek.
This library is free software; you may redistribute it and/or modify it
under the same terms as Perl itself (Perl Artistic License/GNU General
@@ -238,25 +269,40 @@ COPYRIGHT AND LICENSE
HISTORY
2007/04/16 v0.1
- * First experimental version.
+
+ * First experimental version.
2007/05/09 v0.2
- * Typo in option name fixed.
+
+ * Typo in option name fixed.
2007/09/03 v0.3
- * New options: --copy, --flat, --destdir
+
+ * New options: "--copy", "--flat", "--destdir"
2007/09/04 v0.4
- * Bug fix in map_files_texmf.
+
+ * Bug fix in map_files_texmf.
2007/09/06 v0.5
- * Support for `configure' added. (Thanks to Norbert Preining for
- writing a first version of the configure stuff.)
+
+ * Support for `configure' added. (Thanks to Norbert Preining for
+ writing a first version of the configure stuff.)
2008/04/05 v0.6
- * Tiny fix in target `uninstall' in file `Makefile.in'. (Thanks to
- Karl Berry)
+
+ * Tiny fix in target `uninstall' in file `Makefile.in'. (Thanks to
+ Karl Berry)
2008/06/28 v0.7
- * Fix for unknown option `--cmd-strace'. (Thanks to Juho Niemel"a)
+
+ * Fix for unknown option `"--cmd-strace"'. (Thanks to Juho Niemelä)
+
+ 2011/11/10 v0.8
+
+ * Remove colon from drive specification when making directories.
+ * Option "--(no)texhash" added.
+ * Some support for MiKTeX (thanks Ulrike Fischer).
+ * Various fixes in the generation of the documentation.
+ * Options "--exclude-ext" and "--version" added.
diff --git a/Master/texmf-dist/doc/generic/mkjobtexmf/version.pl b/Master/texmf-dist/doc/generic/mkjobtexmf/version.pl
new file mode 100644
index 00000000000..84223030c74
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/mkjobtexmf/version.pl
@@ -0,0 +1,144 @@
+#!/usr/bin/env perl
+use strict;
+$^W=1;
+
+my $infile = 'mkjobtexmf.pl';
+my $acfile = 'configure.ac';
+my $ltxfile = 'mkjobtexmf.ltx';
+my $readmefile = 'README';
+my $datefile = 'date-version.txt';
+my $tmpfile = "version.tmp";
+
+my $date = '';
+my $version = '';
+my $copyright_years = '';
+my $pl_date_version = '';
+
+open(IN, '<', $infile) or die "!!! Error: Cannot open `$infile'!\n";
+while (<IN>) {
+ if (/my \$date\s*=\s*'([0-9\/]+)'/) {
+ $date = $1;
+ next;
+ }
+ if (/my \$version\s*=\s*'([0-9\.]+)'/) {
+ $version = $1;
+ next;
+ }
+ if (/my \$copyright\s*=\s*"Copyright (.*) \$author"/) {
+ $copyright_years = $1;
+ next;
+ }
+ if (/^(\d{4}-\d{2}-\d{2} v\d+\.\d+)\s*$/) {
+ $pl_date_version = $1;
+ next;
+ }
+}
+
+$date or die "!!! Error: Date not found!\n";
+$version or die "!!! Error: Version not found!\n";
+$copyright_years or die "!!! Error: Copyright years not found!\n";
+my $isodate = $date;
+$isodate =~ s|/|-|g;
+my $date_version = "$isodate v$version";
+$pl_date_version or die "!!! Error: VERSION/POD not found!\n";
+$pl_date_version eq $date_version or die "!!! Error: Fix VERSION in pod section!\n";
+
+open(OUT, '>', $tmpfile) or die "!!! Error: Cannot open `$tmpfile'!\n";
+open(IN, '<', $acfile) or die "!!! Error: Cannot open `$acfile'!\n";
+my $found = 0;
+my $update = 0;
+while (<IN>) {
+ if (/^(dnl Copyright )(.*)( by .*)$/) {
+ $found |= 1;
+ $_ = "$1$copyright_years$3\n";
+ $update = 1 unless $2 eq $copyright_years;
+ }
+ if (/^(AC_INIT\(mkjobtexmf, )([^,]*)(,.*|\).*)$/) {
+ $found |= 2;
+ $_ = "$1$version$3\n";
+ $update = 1 unless $2 eq $version;
+ }
+ print OUT;
+}
+die "!!! Error: COPYRIGHT or AC_INIT line not found!\n" unless $found = 3;
+unlink $acfile or die "!!! Error: Cannot delete `$acfile'!\n";
+rename $tmpfile, $acfile
+ or die "!!! Error: Cannot rename `$tmpfile' to `$acfile'!\n";
+print "--> `$acfile' updated\n" if $update;
+
+open(OUT, '>', $tmpfile) or die "!!! Error: Cannot open `$tmpfile'!\n";
+open(IN, '<', $ltxfile) or die "!!! Error: Cannot open `$ltxfile'!\n";
+$found = 0;
+$update = 0;
+while (<IN>) {
+ if (/^(% Copyright )(.*)( by .*)$/) {
+ $found |= 1;
+ $_ = "$1$copyright_years$3\n";
+ $update = 1 unless $2 eq $copyright_years;
+ }
+ if (/^(\\providecommand\*{\\DATE}{)(.*)(})$/) {
+ $found |= 2;
+ $_ = "$1$date$3\n";
+ $update = 1 unless $2 eq $date;
+ }
+ if (/^(\\providecommand\*{\\VERSION}{)(.*)(})$/) {
+ $found |= 4;
+ $_ = "$1$version$3\n";
+ $update = 1 unless $2 eq $version;
+ }
+ print OUT;
+}
+close(IN);
+close(OUT);
+die "!!! Error: COPYRIGHT or DATE or VERSION line not found!\n"
+ unless $found == 7;
+unlink $ltxfile or die "!!! Error: Cannot delete `$ltxfile'!\n";
+rename $tmpfile, $ltxfile
+ or die "!!! Error: Cannot rename `$tmpfile' to `$ltxfile'!\n";
+print "--> `$ltxfile' updated\n" if $update;
+
+open(OUT, '>', $tmpfile) or die "!!! Error: Cannot open `$tmpfile'!\n";
+open(IN, '<', $readmefile) or die "!!! Error: Cannot open `$readmefile'!\n";
+$found = 0;
+$update = 0;
+while (<IN>) {
+ if (/^(Copyright )(.*)( by .*)$/) {
+ $found |= 1;
+ $_ = "$1$copyright_years$3\n";
+ $update = 1 unless $2 eq $copyright_years;
+ }
+ if (/^(README for mkjobtexmf )([0-9\/]+) v([0-9\.]+)$/) {
+ $found |= 2;
+ $_ = "$1$date v$version\n";
+ $update = 1 unless $2 eq $date and $3 eq $version;
+ }
+ print OUT;
+}
+close(IN);
+close(OUT);
+die "!!! Error: COPYRIGHT or DATE/VERSION line not found!\n"
+ unless $found == 3;
+unlink $readmefile or die "!!! Error: Cannot delete `$readmefile'!\n";
+rename $tmpfile, $readmefile
+ or die "!!! Error: Cannot rename `$tmpfile' to `$readmefile'!\n";
+print "--> `$readmefile' updated.\n" if $update;
+
+my $old_date_version = '';
+if (-f $datefile) {
+ open(IN, '<', $datefile) or die "!!! Error: Cannot open `$datefile'!\n";
+ my @lines = <IN>;
+ $old_date_version = "@lines";
+ close(IN);
+}
+if ($old_date_version eq $date_version) {
+ # print "--> `$datefile' is already uptodate.\n";
+}
+else {
+ open(OUT, '>', $datefile) or die "!!! Error: Cannot open `$datefile'!\n";
+ print OUT $date_version;
+ close(OUT);
+ print "--> `$datefile' updated.\n";
+}
+
+1;
+__END__