From b4d6b4f429dad72094b9f33bb304f39dbfa5f459 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 14 Mar 2012 23:29:38 +0000 Subject: new script typeoutfileinfo (14mar12) git-svn-id: svn://tug.org/texlive/trunk@25648 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/texk/texlive/linked_scripts/Makefile.am | 3 +- .../source/texk/texlive/linked_scripts/Makefile.in | 3 +- .../typeoutfileinfo/typeoutfileinfo.sh | 33 ++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100755 Build/source/texk/texlive/linked_scripts/typeoutfileinfo/typeoutfileinfo.sh (limited to 'Build') diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.am b/Build/source/texk/texlive/linked_scripts/Makefile.am index f0836bef389..f7d04cce287 100644 --- a/Build/source/texk/texlive/linked_scripts/Makefile.am +++ b/Build/source/texk/texlive/linked_scripts/Makefile.am @@ -68,7 +68,8 @@ texmf_dist_shell_scripts = \ pdfjam/pdfjoin \ pdfjam/pdfnup \ pdfjam/pdfpun \ - pst-pdf/ps4pdf + pst-pdf/ps4pdf \ + typeoutfileinfo/typeoutfileinfo.sh texmf_dist_other_scripts = \ accfonts/mkt1font \ accfonts/vpl2ovp \ diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.in b/Build/source/texk/texlive/linked_scripts/Makefile.in index 3867577bbc6..eaed5972b79 100644 --- a/Build/source/texk/texlive/linked_scripts/Makefile.in +++ b/Build/source/texk/texlive/linked_scripts/Makefile.in @@ -227,7 +227,8 @@ texmf_dist_shell_scripts = \ pdfjam/pdfjoin \ pdfjam/pdfnup \ pdfjam/pdfpun \ - pst-pdf/ps4pdf + pst-pdf/ps4pdf \ + typeoutfileinfo/typeoutfileinfo.sh texmf_dist_other_scripts = \ accfonts/mkt1font \ diff --git a/Build/source/texk/texlive/linked_scripts/typeoutfileinfo/typeoutfileinfo.sh b/Build/source/texk/texlive/linked_scripts/typeoutfileinfo/typeoutfileinfo.sh new file mode 100755 index 00000000000..e40765ac088 --- /dev/null +++ b/Build/source/texk/texlive/linked_scripts/typeoutfileinfo/typeoutfileinfo.sh @@ -0,0 +1,33 @@ +%!/usr/bin/env bash +## +## This is `typeoutfileinfo.sh', a minimalistic 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].[TXT] contains a +## \ProvidesFile, \ProvidesPackage, or \ProvidesClass command. +( +cat << EOM +\\RequirePackage{readprov} \\ReadFileInfos{$1} +\\typeout{^^J^^J *$1 info*: \\space \\csname ver@$1\\endcsname^^J^^J}\\stop +EOM +) | latex +## +## 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.2 +## 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.2 or later is part of all distributions of LaTeX +## version 1999/12/01 or later. +## +## There is NO WARRANTY. +## +## v0.1 as of 2012-03-13 -- cgit v1.2.3