[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: start to prepare tagging (2eb4f15)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Mar 17 20:45:18 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/2eb4f15a87639dc1c1e3d7dcdef58ef03258ae90
>---------------------------------------------------------------
commit 2eb4f15a87639dc1c1e3d7dcdef58ef03258ae90
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Mar 17 20:45:18 2021 +0100
start to prepare tagging
>---------------------------------------------------------------
2eb4f15a87639dc1c1e3d7dcdef58ef03258ae90
CHANGELOG.md | 2 +-
README.md | 2 +-
build.lua | 41 +++++++++++++++++++++++++++++++++++
firstaid/color-ltx.sty | 4 ++--
firstaid/hyperxmp-patches-tmp-ltx.sty | 3 +--
firstaid/pdflscape-ltx.sty | 2 +-
firstaid/transparent-ltx.sty | 4 ++--
firstaid/xcolor-patches-tmp-ltx.sty | 2 +-
8 files changed, 50 insertions(+), 10 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 48fa80c..2d98fc9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,7 @@ first release 0.95a, 2021-02-23 will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.
-## [Unreleased]
+## [2021-03-17]
### Fixed
- \pdffield-setup:nn
diff --git a/README.md b/README.md
index e8ccd6b..40ae909 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# LaTeX PDF management testphase bundle
-Version: 0.95b, 2021-03-07
+Version: 0.95c, 2021-03-17
This package is used during a test phase to load the new PDF management code
of LaTeX.
diff --git a/build.lua b/build.lua
index ef4ba08..2bcf3db 100644
--- a/build.lua
+++ b/build.lua
@@ -1,4 +1,6 @@
#!/usr/bin/env texlua
+packageversion="0.95c"
+packagedate="2021-03-17"
-- Build script for "LaTeX PDF management testphase bundle" bundle
@@ -68,3 +70,42 @@ checkconfigs = {"build",
"config-dvips"
}
+-- tagging
+tagfiles = {
+ "*dtx",
+ "firstaid/*.sty",
+ "README.md"
+ }
+
+function update_tag (file,content,tagname,tagdate)
+ tagdate = string.gsub (packagedate,"-", "/")
+ if string.match (file, "%.dty$" ) then
+ content = string.gsub (content,
+ "\\ProvidesExplPackage {(.-)} {.-} {.-}",
+ "\\ProvidesExplPackage {%1} {" .. tagdate.."} {"..packageversion .. "}")
+ content = string.gsub (content,
+ "\\ProvidesExplFile {(.-)} {.-} {.-}",
+ "\\ProvidesExplFile {%1} {" .. tagdate.."} {"..packageversion .. "}")
+ content = string.gsub (content,
+ '(version%s*=%s*")%d%.%d+(",%s*--TAGVERSION)',
+ "%1"..packageversion.."%2")
+ content = string.gsub (content,
+ '(date%s*=%s*")%d%d%d%d%-%d%d%-%d%d(",%s*--TAGDATE)',
+ "%1"..packagedate.."%2")
+ return content
+ elseif string.match (file, "%.sty$" ) then
+ content = string.gsub (content,
+ "\\ProvidesPackage{(.-)}%[%d%d%d%d%-%d%d%-%d%d %d%.%d+%a",
+ "\\ProvidesPackage{%1}%["..packagedate.." "..packageversion)
+ content = string.gsub (content,
+ "\\ProvidesExplPackage{(.-)} {.-} {.-}",
+ "\\ProvidesExplPackage{%1} {" .. packagedate.."} {"..packageversion .. "}")
+ return content
+ elseif string.match (file, "^README.md$") then
+ content = string.gsub (content,
+ "Version: %d%.%d+%a, %d%d%d%d%-%d%d%-%d%d",
+ "Version: " .. packageversion .. ", " .. packagedate )
+ return content
+ end
+ return content
+ end
diff --git a/firstaid/color-ltx.sty b/firstaid/color-ltx.sty
index 0fbe8eb..c8c1443 100644
--- a/firstaid/color-ltx.sty
+++ b/firstaid/color-ltx.sty
@@ -22,8 +22,8 @@
%% This file has the LPPL maintenance status "maintained".
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{color-ltx}
- [2021/03/07 v1.2e Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase 2021-03-07 v0.95b) (DPC)]
+\ProvidesPackage{color-ltx}[2021-03-07 v0.95b
+ Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase, original version 2021/03/07 v1.2e) (DPC)]
\edef\Gin at codes{%
\catcode`\noexpand\^^A\the\catcode`\^^A\relax
\catcode`\noexpand\"\the\catcode`\"\relax
diff --git a/firstaid/hyperxmp-patches-tmp-ltx.sty b/firstaid/hyperxmp-patches-tmp-ltx.sty
index ee89218..30d9b09 100644
--- a/firstaid/hyperxmp-patches-tmp-ltx.sty
+++ b/firstaid/hyperxmp-patches-tmp-ltx.sty
@@ -19,8 +19,7 @@
%
% for those people who are interested.
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesExplPackage{hyperxmp-patches-tmp-ltx}
- {2021-03-07} {0.95b}
+\ProvidesExplPackage{hyperxmp-patches-tmp-ltx}{2021-03-07}{0.95b}
{Store hyperref metadata in XMP format / temporay patches to test pdfresource management ... UF}
\cs_if_exist:NT \pdfmanagement_add:nnn
diff --git a/firstaid/pdflscape-ltx.sty b/firstaid/pdflscape-ltx.sty
index ef27c06..0e8a8cc 100644
--- a/firstaid/pdflscape-ltx.sty
+++ b/firstaid/pdflscape-ltx.sty
@@ -24,7 +24,7 @@
%% This work consists of the main source file pdflscape-ltx.sty
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesExplPackage {pdflscape-ltx}{2021/02/22}{v0.95b}
+\ProvidesExplPackage {pdflscape-ltx}{2021-02-22}{v0.95b}
{Display of landscape pages in PDF - adaption of pdflscape to the PDFmanagement bundle (testphase)}
\RequirePackage{lscape}
diff --git a/firstaid/transparent-ltx.sty b/firstaid/transparent-ltx.sty
index 7fd7473..47f1777 100644
--- a/firstaid/transparent-ltx.sty
+++ b/firstaid/transparent-ltx.sty
@@ -3,8 +3,8 @@
%% a replacement for transparent sty from Heiko Oberdiek
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesExplPackage{transparent-ltx}%
- {2021-03-07}{v0.95b}{Transparency with color stacks (replacement for transparent.sty from Heiko Oberdiek)}%
+\ProvidesExplPackage{transparent-ltx}{2021-03-07}{v0.95b}
+ {Transparency with color stacks (replacement for transparent.sty from Heiko Oberdiek)}%
\RequirePackage{l3opacity}
diff --git a/firstaid/xcolor-patches-tmp-ltx.sty b/firstaid/xcolor-patches-tmp-ltx.sty
index 5363a83..c5cd9ee 100644
--- a/firstaid/xcolor-patches-tmp-ltx.sty
+++ b/firstaid/xcolor-patches-tmp-ltx.sty
@@ -1,6 +1,6 @@
%% LaTeX2e file `xcolor-patches.sty'
%%
-\ProvidesPackage{xcolor-patches-tmp-ltx}[2021/02/22 v0.95b patch xcolor for l3color]
+\ProvidesPackage{xcolor-patches-tmp-ltx}[2021-02-22 v0.95b patch xcolor for l3color]
\@ifundefined{color_set:nn}{\RequirePackage{l3color}}{}
\ExplSyntaxOn
More information about the latex3-commits
mailing list.