summaryrefslogtreecommitdiff
path: root/support/typeoutfileinfo
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/typeoutfileinfo
Initial commit
Diffstat (limited to 'support/typeoutfileinfo')
-rw-r--r--support/typeoutfileinfo/README25
-rwxr-xr-xsupport/typeoutfileinfo/typeoutfileinfo.sh52
2 files changed, 77 insertions, 0 deletions
diff --git a/support/typeoutfileinfo/README b/support/typeoutfileinfo/README
new file mode 100644
index 0000000000..8e30dd97a8
--- /dev/null
+++ b/support/typeoutfileinfo/README
@@ -0,0 +1,25 @@
+ README for the `typeoutfileinfo' package
+ (C) Uwe Lueck 2012/03/16
+
+
+`typeoutfileinfo.sh' is a minimalist shell script for Unix-like
+systems, displaying the info content in the \ProvidesFile,
+\ProvidesPackage, or \ProvidesClass command of a LaTeX source
+file on screen. This requires the `readprov' package.
+See the file `typeoutfileinfo.sh' for details.
+
+LICENSE: LPPL v1.3c or later, author-maintained.
+
+The latest public version of the package is available at
+
+ http://mirror.ctan.org/support/typeoutfileinfo/
+
+A TDS version of the package is available as
+
+ http://mirror.ctan.org/install/support/typeoutfileinfo.tds.zip
+
+Please report bugs, problems, and suggestions via
+
+ http://www.contact-ednotes.sty.de.vu
+
+SEE ALSO script packages `latexfileversion' and `ltxfileinfo'.
diff --git a/support/typeoutfileinfo/typeoutfileinfo.sh b/support/typeoutfileinfo/typeoutfileinfo.sh
new file mode 100755
index 0000000000..2780883e82
--- /dev/null
+++ b/support/typeoutfileinfo/typeoutfileinfo.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+##
+## This is `typeoutfileinfo.sh', a minimalist shell script for Unices.
+##
+## ./typeoutfileinfo.sh [FILENAME].[EXT]
+##
+## runs latex with the readprov package:
+##
+## http://ctan.org/pkg/readprov
+##
+## in order to display [FILENAME].[TXT]'s FILE INFO (\listfile entry)
+## using \typeout. This requires that [FILENAME].[EXT] contains a
+## \ProvidesFile, \ProvidesPackage, or \ProvidesClass command.
+latex \\RequirePackage{readprov}\\ReadFileInfos{$1}\
+\\typeout{^^J^^J + $1 info: + \\csname ver@$1\\endcsname^^J}\
+\\batchmode\\stop
+##
+## Copyright (C) 2012 Uwe Lueck, http://contact-ednotes.sty.de.vu/
+##
+## This program may be distributed and/or modified under the
+## conditions of the LaTeX Project Public License, either version 1.3c
+## of this license or (at your option) any later version.
+## The latest version of this license is in
+## http://www.latex-project.org/lppl.txt
+## and version 1.3c or later is part of all distributions of LaTeX
+## version 1999/12/01 or later.
+##
+## There is NO WARRANTY.
+##
+## This is package version v0.31 as of 2012-09-28.
+##
+## CREDITS: This work derived from Harald Harders' `latexfileversion'
+## as a simplification using my `readprov'. Reinhard Kotucha
+## improved the code, see HISTORY.
+##
+## PURPOSE/BACKGROUND: A package like this, `latexfileversion' or
+## `ltxfileinfo' when you wonder which version of a source file
+## (package, document component) is available in some directory --
+## I typically test package changes by symbolic links in single
+## project directories before installing them globally, and then
+## sometimes don't remember ... when I get an "undefined" error,
+## I wonder whether I have installed the symbolic link or whether
+## I just forgot to define this, or whether I lost the most recent
+## version ...
+##
+## HISTORY:
+## v0.1a 2012/03/16
+## v0.2 2012/09/16 adds \batchmode thanks to Heiko Oberdiek on texhax
+## v0.21 2012/09/19 shebang line corrected/improved by Reinhard Kotucha
+## v0.3 2012/09/27 long line instead of here document,
+## different spacing, * -> + (misinterpreded)
+## v0.31 2012/09/28 code line broken by `\', thanks to Reinhard Kotucha