texlive[62406] branches/branch2021.final/Master: hvpygmentex (4mar22)
commits+karl at tug.org
commits+karl at tug.org
Fri Mar 4 22:50:31 CET 2022
Revision: 62406
http://tug.org/svn/texlive?view=revision&revision=62406
Author: karl
Date: 2022-03-04 22:50:31 +0100 (Fri, 04 Mar 2022)
Log Message:
-----------
hvpygmentex (4mar22) (branch)
Modified Paths:
--------------
branches/branch2021.final/Master/tlpkg/libexec/ctan2tds
branches/branch2021.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/
branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/Changes
branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/README.md
branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.pdf
branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.tex
branches/branch2021.final/Master/texmf-dist/tex/latex/hvpygmentex/
branches/branch2021.final/Master/texmf-dist/tex/latex/hvpygmentex/hvpygmentex.sty
branches/branch2021.final/Master/tlpkg/tlpsrc/hvpygmentex.tlpsrc
Added: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/Changes
===================================================================
--- branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/Changes (rev 0)
+++ branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/Changes 2022-03-04 21:50:31 UTC (rev 62406)
@@ -0,0 +1 @@
+0.01 2022-03-03 - first CTAN version
Added: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/README.md
===================================================================
--- branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/README.md (rev 0)
+++ branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/README.md 2022-03-04 21:50:31 UTC (rev 62406)
@@ -0,0 +1,18 @@
+# hvpygmentex.sty
+
+Formatting source code of programming languages.
+
+The package is based on pygmentex but provides an automatic
+run from within the document itself, with the option "--shell-escape".
+It do not needs the additional action by the user to run the external
+program pygmentize to create the code snippets.
+
+%% It 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 2005/12/01 or later.
+
+hvoss at tug.org
\ No newline at end of file
Property changes on: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.pdf
===================================================================
(Binary files differ)
Index: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.pdf
===================================================================
--- branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.pdf 2022-03-04 21:49:27 UTC (rev 62405)
+++ branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.pdf 2022-03-04 21:50:31 UTC (rev 62406)
Property changes on: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.tex
===================================================================
--- branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.tex (rev 0)
+++ branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.tex 2022-03-04 21:50:31 UTC (rev 62406)
@@ -0,0 +1,67 @@
+\errorcontextlines=100
+\documentclass[DIV=12]{scrartcl}
+
+\usepackage{libertinus-otf}
+\usepackage[force]{hvpygmentex}
+\usepackage{url}
+\title{Typeset highlited sourcecode}
+\author{Herbert Voß}
+\begin{document}
+\maketitle
+
+\section{Introduction}
+This package is fully compatible to package \texttt{pygmentex}. Read
+the package documentation (\url{http://ctan.org/pkg/pygmentex}) for the
+supported languages a.s.o.
+
+\begin{verbatim}
+usepackage[options]{hvpygmentex}
+\end{verbatim}
+
+
+
+With \texttt{hvpygmentex} one do not needs the external Python run to
+create the formatted tex snippets which are inserted into the document.
+With the optional argument \texttt{--shell-escape} for the \LaTeX\ run
+\TeX\ is allowed to run the external program \texttt{pygmentize} from within the document and
+no additional action by the user is required.
+
+This package itself has an additional option \texttt{force} which is
+preset to \texttt{true}. Without using it the external
+formatted \TeX\ snippets for the listings will not be recreated by following \LaTeX\ runs. This
+may speed up the \LaTeX\ runs and, of course, makes only sense, if you are sure that there
+are no changes in the source code listings.
+
+
+\section{Example}
+
+\begin{pygmented}[lang=tex,font=\ttfamily\small]
+\bgroup
+\initcatcodetable1
+\aftergroup{\global\catcode`¡=12}%
+\catcode`\_=12 \catcode`\^=12 \catcode`\$=12 \catcode`\%=12 \catcode`\#=12
+\catcode`\&=12 \catcode`\{=12 \catcode`\}=12 \catcode`\~=12 \catcode`¡=0
+\catcode`\\=12
+¡savecatcodetable1
+¡egroup
+\end{pygmented}
+
+
+This document was run with
+
+\begin{verbatim}
+lualatex --shell-escape hvpygmentex.tex
+\end{verbatim}
+
+In the terminal output you'll find something like
+
+\begin{verbatim}
+[...]
+>>>> running pygmentex (option force=true) ...
+>>>> ... done.
+[...]
+\end{verbatim}
+
+
+
+\end{document}
Property changes on: branches/branch2021.final/Master/texmf-dist/doc/latex/hvpygmentex/hvpygmentex.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: branches/branch2021.final/Master/texmf-dist/tex/latex/hvpygmentex/hvpygmentex.sty
===================================================================
--- branches/branch2021.final/Master/texmf-dist/tex/latex/hvpygmentex/hvpygmentex.sty (rev 0)
+++ branches/branch2021.final/Master/texmf-dist/tex/latex/hvpygmentex/hvpygmentex.sty 2022-03-04 21:50:31 UTC (rev 62406)
@@ -0,0 +1,412 @@
+%% $Id: hvpygmentex.sty 465 2022-03-03 20:26:42Z herbert $
+%%
+%% This file is distributed under the terms of the LaTeX Project Public
+%% License from CTAN archives in directory macros/latex/base/lppl.txt.
+%% Either version 1.3 or, at your option, any later version.
+%%
+% Copyright 2022 Herbert Voss hvoss at tug.org
+%%
+\ProvidesPackage{hvpygmentex}[%
+ 2022/03/03 v.0.01 (Herbert Voss) format source code with Pygments (hv)]
+%%
+%% Based on the package pygmentex, all of my own enhancements are marked with hv
+%%
+\NeedsTeXFormat{LaTeX2e}
+\newif\ifpygmented at opt@force \pygmented at opt@forcefalse %% hv
+\DeclareOption{force}{\pygmented at opt@forcetrue} %% hv
+\ProcessOptions %% hv
+
+\RequirePackage{fancyvrb}
+\RequirePackage{color}
+\RequirePackage{ifthen}
+%\RequirePackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}
+\RequirePackage{caption}
+\RequirePackage{shellesc} %% hv
+\RequirePackage{pgfkeys}
+\RequirePackage{efbox}
+\RequirePackage[framemethod=tikz]{mdframed}
+
+%\DeclareCaptionType[within=chapter]{pygcode}[Listagem][Lista de listagens]
+\DeclareCaptionType{pygcode}[Listings][List of Listings]
+\captionsetup[pygcode]{position=top}
+
+% =========================================================
+% Auxiliary:
+% finding the widest string in a comma
+% separated list of strings delimited by parenthesis
+% =========================================================
+
+% arguments:
+% #1) text: a comma separeted list of strings
+% #2) formatter: a macro to format each string
+% #3) dimension: will hold the result
+
+\def\widest(#1)#2#3{%
+ \begingroup
+ \def\widest at end{\widest at end}%
+ \def\widest at helper##1,{%
+ \ifx\widest at end##1\relax
+ \else
+ \settowidth\dimen@{#2{##1}}%
+ \ifdim#3<\dimen@
+ \global#3=\dimen@
+ \else
+ \fi
+ \expandafter\widest at helper
+ \fi
+ }%
+ \widest at helper#1,\widest at end,%
+ \endgroup
+}
+
+% =========================================================
+% fancyvrb new commands to append to a file
+% =========================================================
+
+% See http://tex.stackexchange.com/questions/47462/inputenc-error-with-unicode-chars-and-verbatim
+\long\def\unexpanded at write#1#2{\write#1{\unexpanded{#2}}}
+
+\def\VerbatimOutAppend{\FV at Environment{}{VerbatimOutAppend}}
+
+\def\FVB at VerbatimOutAppend#1{%
+ \@bsphack
+ \begingroup
+ \FV at UseKeyValues
+ \FV at DefineWhiteSpace
+ \def\FV at Space{\space}%
+ \FV at DefineTabOut
+ \def\FV at ProcessLine{\immediate\unexpanded at write#1}%
+ \let\FV at FontScanPrep\relax
+ \let\@noligs\relax
+ \FV at Scan
+}
+
+\def\FVE at VerbatimOutAppend{%
+ \endgroup
+ \@esphack
+}
+
+\DefineVerbatimEnvironment{VerbatimOutAppend}{VerbatimOutAppend}{}
+
+% =========================================================
+% Main options
+% =========================================================
+
+\newif\ifpygmented at opt@texcomments
+\newif\ifpygmented at opt@mathescape
+\newif\ifpygmented at opt@linenos
+\newif\ifpygmented at left
+\newif\ifpygmented at right
+
+% some settings used by fancyvrb:
+% * for line numbering:
+% numbers, numbersep, firstnumber, stepnumber, numberblanklines
+% * for selection of lines to print:
+% firstline, lastline,
+
+\pgfkeys{%
+ /pygmented/.cd,
+ %
+ boxing method/.store in = \pygmented at opt@boxing at method,
+ inline method/.store in = \pygmented at opt@inline at method,
+ %
+ lang/.store in = \pygmented at opt@lang,
+ sty/.store in = \pygmented at opt@style,
+ escapeinside/.store in = \pygmented at opt@escapeinside,
+ texcomments/.is if = pygmented at opt@texcomments,
+ mathescape/.is if = pygmented at opt@mathescape,
+ %
+ label/.store in = \pygmented at opt@label,
+ caption/.store in = \pygmented at opt@caption,
+ %
+ gobble/.store in = \pygmented at opt@gobble,
+ tabsize/.store in = \pygmented at opt@tabsize,
+ %
+ linenos/.is if = pygmented at opt@linenos,
+ linenostart/.store in = \pygmented at opt@linenostart,
+ linenostep/.store in = \pygmented at opt@linenostep,
+ linenosep/.store in = \pygmented at opt@linenosep,
+ %
+ colback/.store in = \pygmented at opt@colback,
+ font/.store in = \pygmented at opt@font,
+ %
+ force/.default = false,
+ texcomments/.default = true,
+ mathescape/.default = true,
+ linenos/.default = true,
+}
+
+\pgfqkeys{/pygmented}{
+ boxing method = mdframed,
+ inline method = efbox,
+ sty = default,
+ linenos = false,
+ linenosep = 2pt,
+ font = \ttfamily,
+ tabsize = 0,
+}
+
+% =========================================================
+% pygmented commands and environments
+% =========================================================
+
+\newwrite\pygmented at outfile
+
+\newcount\pygmented at counter
+
+\newcommand\pygmented at process@options[1]{%
+ \pgfkeys{%
+ /pgf/key filters/defined/.install key filter,%
+ /pgf/key filter handlers/append filtered to/.install key filter handler=\remainingglobaloptions
+ }%
+ \def\remainingglobaloptions{}%
+ \pgfkeysalsofilteredfrom{\pygmented at global@options}%
+ \pgfkeysalso{%
+ /pgf/key filter handlers/append filtered to/.install key filter handler=\remaininguseroptions
+ }%
+ \def\remaininguseroptions{}%
+ \pgfqkeysfiltered{/pygmented}{#1}%
+ % %%%%%%% DEBUGING
+ % \typeout{}%
+ % \typeout{\string\pygmented at global@options:}\typeout{\meaning\pygmented at global@options}%
+ % \typeout{\string\remainingglobaloptions:}\typeout{\meaning\remainingglobaloptions}%
+ % \typeout{\string\remaininguseroptions:}\typeout{\meaning\remaininguseroptions}%
+ %
+ \fvset{gobble=0,tabsize=0}%
+}
+
+\newcommand\pygmented at process@adicional at options[1]{%
+ \pgfkeysalso{%
+ /pgf/key filters/false/.install key filter,%
+ /pgf/key filter handlers/append filtered to/.install key filter handler=\remainingoptions
+ }%
+ \def\remainingoptions{}%
+ \pgfkeysalsofilteredfrom{\remainingglobaloptions}%
+ \edef\pygmented at saved@{%
+ \ifcsname pygmented@#1 at additional@options\endcsname
+ \csname pygmented@#1 at additional@options\endcsname,%
+ \fi
+ }%
+ \pgfkeysalsofilteredfrom{\pygmented at saved@}%
+ \pgfkeysalsofilteredfrom{\remaininguseroptions}%
+ % %%%%%%% DEBUGING
+ % \typeout{}%
+ % \typeout{\string\remainingoptions:}%
+ % \typeout{\meaning\remainingoptions}%
+}
+
+\newcommand\inputpygmented[2][]{%
+ \begingroup
+ \pygmented at process@options{#1}%
+ \immediate\write\pygmented at outfile{<@@pygmented at input@\the\pygmented at counter}%
+ \immediate\write\pygmented at outfile{\detokenize\expandafter{\pygmented at global@options},\detokenize{#1}}%
+ \immediate\write\pygmented at outfile{#2}%
+ \immediate\write\pygmented at outfile{>@@pygmented at input@\the\pygmented at counter}%
+ %
+ \csname pygmented at snippet@\the\pygmented at counter\endcsname
+ \global\advance\pygmented at counter by 1\relax
+ \endgroup
+}
+
+\newenvironment{pygmented}[1][]{%
+ \pygmented at process@options{#1}%
+ \immediate\write\pygmented at outfile{<@@pygmented at display@\the\pygmented at counter}%
+ \immediate\write\pygmented at outfile{\detokenize\expandafter{\pygmented at global@options},\detokenize{#1}}%
+ \VerbatimEnvironment
+ \begin{VerbatimOutAppend}{\pygmented at outfile}%
+}{%
+ \end{VerbatimOutAppend}%
+ \immediate\write\pygmented at outfile{>@@pygmented at display@\the\pygmented at counter}%
+ \csname pygmented at snippet@\the\pygmented at counter\endcsname
+ \global\advance\pygmented at counter by 1\relax
+}
+
+\newcommand\pyginline[2][]{%
+ \begingroup
+ \pygmented at process@options{#1}%
+ \immediate\write\pygmented at outfile{<@@pygmented at inline@\the\pygmented at counter}%
+ \immediate\write\pygmented at outfile{\detokenize\expandafter{\pygmented at global@options},\detokenize{#1}}%
+ \DefineShortVerb{#2}%
+ \SaveVerb
+ [aftersave={%
+ \UndefineShortVerb{#2}%
+ \immediate\write\pygmented at outfile{\FV at SV@pygmented at verb}%
+ \immediate\write\pygmented at outfile{>@@pygmented at inline@\the\pygmented at counter}%
+ %
+ \csname pygmented at snippet@\the\pygmented at counter\endcsname
+ \global\advance\pygmented at counter by 1\relax
+ \endgroup
+ }]%
+ {pygmented at verb}#2%
+}
+
+
+\newcommand\pygmented at snippet@inlined[1]{%
+ \begingroup
+ \csname PYstyle\pygmented at opt@style\endcsname
+ \pygmented at opt@font
+ \pygmented at process@adicional at options{\pygmented at opt@inline at method}%
+ \expandafter\expandafter\csname \pygmented at opt@inline at method \endcsname\expandafter[\remainingoptions]{#1}%
+ \endgroup
+}
+
+\newenvironment{pygmented at snippet@framed}{%
+ \begingroup
+ \pygmented at leftmargin\z@
+ \ifpygmented at opt@linenos
+ \expandafter\widest\pygmented at alllinenos{\FormatLineNumber}{\pygmented at leftmargin}%
+ \advance\pygmented at leftmargin\pygmented at opt@linenosep
+ \fi
+ %
+ \ifdefined\pygmented at opt@label
+ \def\pygmented at title{%
+ \captionof{pygcode}{\label{\pygmented at opt@label}\pygmented at opt@caption}%
+ % \nopagebreak
+ \vskip -0.7\baselineskip
+ }%
+ \else
+ \ifdefined\pygmented at opt@caption
+ \def\pygmented at title{%
+ \captionof{pygcode}{\pygmented at opt@caption}%
+ % \nopagebreak
+ \vskip -0.7\baselineskip
+ }%
+ \fi
+ \fi
+ \ifdefined\pygmented at title
+ % \nopagebreak[0]%
+ \pygmented at title
+ % \nopagebreak
+ \fi
+ %
+ \pygmented at process@adicional at options{\pygmented at opt@boxing at method}%
+ \expandafter\begin\expandafter{\expandafter\pygmented at opt@boxing at method\expandafter}\expandafter[%
+ \remainingoptions
+ ]%
+ \csname PYstyle\pygmented at opt@style\endcsname
+ \pygmented at opt@font
+ %
+ \noindent
+ }{%
+ \end{\pygmented at opt@boxing at method}%
+ \endgroup
+}
+
+\newcommand\pygmented at inlined[1]{%
+ \expandafter\efbox\expandafter[\remainingoptions]{#1}%
+}
+
+\def\FormatLineNumber#1{{\rmfamily\tiny#1}}
+
+\newdimen\pygmented at leftmargin
+\newdimen\pygmented at linenosep
+
+\def\pygmented at lineno@do#1{%
+ \pygmented at linenosep 0pt%
+ \csname pygmented@\pygmented at opt@boxing at method @margin\endcsname
+ \advance \pygmented at linenosep \pygmented at opt@linenosep
+ \makebox[0pt][r]{%
+ \FormatLineNumber{#1}%
+ \hspace*{\pygmented at linenosep}}%
+}
+
+\newcommand\pygmented at tcbox@additional at options{%
+ nobeforeafter,%
+ tcbox raise base,%
+ left=0mm,%
+ right=0mm,%
+ top=0mm,%
+ bottom=0mm,%
+ boxsep=2pt,%
+ arc=1pt,%
+ boxrule=0pt,%
+ \ifcsname pygmented at opt@colback\endcsname
+ colback=\pygmented at opt@colback,%
+ \fi
+}
+
+\newcommand\pygmented at efbox@additional at options{%
+ \ifcsname pygmented at opt@colback\endcsname
+ backgroundcolor=\pygmented at opt@colback,%
+ \fi
+}
+
+\newcommand\pygmented at mdframed@additional at options{%
+ leftmargin=\pygmented at leftmargin,%
+ frametitlerule=true,%
+ \ifcsname pygmented at opt@colback\endcsname
+ backgroundcolor=\pygmented at opt@colback,%
+ \fi
+}
+
+\newcommand\pygmented at tcolorbox@additional at options{%
+ grow to left by=-\pygmented at leftmargin,%
+ \ifcsname pygmented at opt@colback\endcsname
+ colback=\pygmented at opt@colback,%
+ \fi
+}
+
+\newcommand\pygmented at boite@additional at options{%
+ leftmargin=\pygmented at leftmargin,%
+ \ifcsname pygmented at opt@colback\endcsname
+ colback=\pygmented at opt@colback,%
+ \fi
+}
+
+
+\newcommand\pygmented at mdframed@margin{%
+ \advance \pygmented at linenosep \mdflength{outerlinewidth}%
+ \advance \pygmented at linenosep \mdflength{middlelinewidth}%
+ \advance \pygmented at linenosep \mdflength{innerlinewidth}%
+ \advance \pygmented at linenosep \mdflength{innerleftmargin}%
+}
+
+\newcommand\pygmented at tcolorbox@margin{%
+ \advance \pygmented at linenosep \kvtcb at left@rule
+ \advance \pygmented at linenosep \kvtcb at leftupper
+ \advance \pygmented at linenosep \kvtcb at boxsep
+}
+
+\newcommand\pygmented at boite@margin{%
+ \advance \pygmented at linenosep \boite at leftrule
+ \advance \pygmented at linenosep \boite at boxsep
+}
+
+\def\pygmented at global@options{}
+
+\newcommand\setpygmented[1]{%
+ \def\pygmented at global@options{/pygmented/.cd,#1}%
+}
+
+
+% =========================================================
+% final actions
+% =========================================================
+
+\AtEndOfPackage{%
+ \IfFileExists{\jobname.pygmented}{%
+ \input{\jobname.pygmented}%
+ }{%
+ \PackageWarning{pygmentex}{File `\jobname.pygmented' not found.}%
+ }%
+ \immediate\openout\pygmented at outfile\jobname.snippets%
+}
+
+%% ------------------------------ hv begin ---------------------------
+\AtEndDocument{%
+ \immediate\closeout\pygmented at outfile%
+ \ifpygmented at opt@force
+ \typeout{>>>> running pygmentex (option force=true) ...}%
+ \ShellEscape{pygmentex \jobname.snippets}%
+ \typeout{>>>> ... done.}%
+ \else
+ \IfFileExists{\jobname.pygmented}%
+ {\typeout{>>>> file \jobname.pygmented exists, not running pygmentex}}%
+ {\typeout{>>>> no file \jobname.pygmented, running pygmentex ...}%
+ \ShellEscape{pygmentex \jobname.snippets}%
+ \typeout{>>>> ... done.}}%
+ \fi
+}
+%% ------------------------------ hv end ---------------------------
+
+\endinput
Property changes on: branches/branch2021.final/Master/texmf-dist/tex/latex/hvpygmentex/hvpygmentex.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: branches/branch2021.final/Master/tlpkg/libexec/ctan2tds
===================================================================
--- branches/branch2021.final/Master/tlpkg/libexec/ctan2tds 2022-03-04 21:49:27 UTC (rev 62405)
+++ branches/branch2021.final/Master/tlpkg/libexec/ctan2tds 2022-03-04 21:50:31 UTC (rev 62406)
@@ -33,6 +33,7 @@
$RM = "rm -vf"; # -v to get feedback via GNU rm on removals
$MAKEINFO = "makeinfo";
$INSTALL = "install -D -m 664";
+$RMDIR_EMPTY = "find -type d -empty -delete -print"; # GNU find for simplicity
$| = 1;
select ((select (STDERR), $| = 1)[0]);
@@ -640,6 +641,7 @@
'hvfloat', "&MAKEflatten",
'hvindex', "&MAKEflatten",
'hvlogos', "&MAKEflatten",
+ 'hvpygmentex', "&MAKEflatten",
'hvqrurl', "&MAKEflatten",
'hybrid-latex', "die 'skipping, no self-locating of Python modules'",
'hyph-utf8', "&MAKEcopy",
@@ -4807,7 +4809,7 @@
&SYSTEM ("yes n | find . -mindepth 2 -not -type d -exec mv -i '\{\}' . \\;");
# remove newly empty directories.
- &SYSTEM ("find -depth -type d -print | xargs rmdir 2>/dev/null");
+ &SYSTEM ($RMDIR_EMPTY);
}
sub MAKEunzipandflatten {
@@ -5240,7 +5242,7 @@
&SYSTEM ("$MV doc/* .");
#
# remove newly empty directories.
- &SYSTEM ("find -depth -type d -print | xargs rmdir 2>/dev/null");
+ &SYSTEM ($RMDIR_EMPTY);
}
sub MAKEtamethebeast {
@@ -5529,7 +5531,7 @@
&SYSTEM ("$MV doc/latex/* doc/* latex/* .");
#
# remove newly empty directories.
- &SYSTEM ("find -depth -type d -print | xargs rmdir 2>/dev/null");
+ &SYSTEM ($RMDIR_EMPTY);
}
# wadalab provides nearly TDS-ready .tar.gz with additional stuff
@@ -7187,6 +7189,7 @@
print "POST$package - doc files up a level\n";
&xsystem ("$MV Makefile Makefile.top");
&xsystem ("$MV */* .");
+ &SYSTEM ($RMDIR_EMPTY);
}
sub POSTtex_ps {
Modified: branches/branch2021.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- branches/branch2021.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2022-03-04 21:49:27 UTC (rev 62405)
+++ branches/branch2021.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2022-03-04 21:50:31 UTC (rev 62406)
@@ -636,6 +636,7 @@
depend huawei
depend hvindex
depend hvlogos
+depend hvpygmentex
depend hvqrurl
depend hypdestopt
depend hypdoc
Added: branches/branch2021.final/Master/tlpkg/tlpsrc/hvpygmentex.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.