Debian Codegraph @

texk/texlive/linked_scripts/typeoutfileinfo/typeoutfileinfo.sh

raw symbols SCIP
1 #!/bin/sh
2 ##
3 ## This is `typeoutfileinfo.sh', a minimalist shell script for Unices.
4 ##
5 ## ./typeoutfileinfo.sh [FILENAME].[EXT]
6 ##
7 ## runs latex with the readprov package:
8 ##
9 ## https://ctan.org/pkg/readprov
10 ##
11 ## in order to display [FILENAME].[TXT]'s FILE INFO (\listfile entry)
12 ## using \typeout. This requires that [FILENAME].[EXT] contains a
13 ## \ProvidesFile, \ProvidesPackage, or \ProvidesClass command.
14 latex \\RequirePackage{readprov}\\ReadFileInfos{$1}\
15 \\typeout{^^J^^J + $1 info: + \\csname ver@$1\\endcsname^^J}\
16 \\batchmode\\stop
17 ##
18 ## Copyright © 2012 Uwe Lück (deceased)
19 ##
20 ## This program may be distributed and/or modified under the
21 ## conditions of the LaTeX Project Public License, either version 1.3c
22 ## of this license or (at your option) any later version.
23 ## The latest version of this license is in
24 ## https://www.latex-project.org/lppl.txt
25 ## and version 1.3c or later is part of all distributions of LaTeX
26 ## version 1999/12/01 or later.
27 ##
28 ## There is NO WARRANTY.
29 ##
30 ## This is package version v0.32 as of 2023-06-30.
31 ##
32 ## CREDITS: This work derived from Harald Harders' `latexfileversion'
33 ## as a simplification using my `readprov'. Reinhard Kotucha
34 ## improved the code, see HISTORY.
35 ##
36 ## PURPOSE/BACKGROUND: A package like this, `latexfileversion' or
37 ## `ltxfileinfo' when you wonder which version of a source file
38 ## (package, document component) is available in some directory --
39 ## I typically test package changes by symbolic links in single
40 ## project directories before installing them globally, and then
41 ## sometimes don't remember ... when I get an "undefined" error,
42 ## I wonder whether I have installed the symbolic link or whether
43 ## I just forgot to define this, or whether I lost the most recent
44 ## version ...
45 ##
46 ## HISTORY:
47 ## v0.1a 2012/03/16
48 ## v0.2 2012/09/16 adds \batchmode thanks to Heiko Oberdiek on texhax
49 ## v0.21 2012/09/19 shebang line corrected/improved by Reinhard Kotucha
50 ## v0.3 2012/09/27 long line instead of here document,
51 ## different spacing, * -> + (misinterpreded)
52 ## v0.31 2012/09/28 code line broken by `\', thanks to Reinhard Kotucha
53 ## v0.32 2023-06-30 Uwe Lück is deceased:
54 ## https://www.webdesign-bu.de/uwe_lueck/contact.html