From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/tex:main commit in: /
Date: Sun, 11 Feb 2024 10:31:50 +0000 (UTC) [thread overview]
Message-ID: <1703866700.fe14794aaebf35e37e205213f261953f4005339c.flow@gentoo> (raw)
commit: fe14794aaebf35e37e205213f261953f4005339c
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 29 16:18:20 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 16:18:20 2023 +0000
URL: https://gitweb.gentoo.org/proj/tex.git/commit/?id=fe14794a
diff-tex: add generic function to diff the ebuilds of a package
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
diff-tex | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/diff-tex b/diff-tex
index 7813947..e80934e 100755
--- a/diff-tex
+++ b/diff-tex
@@ -4,11 +4,30 @@ set -eu
GENTOO_REPO_DIR=$(portageq get_repo_path / gentoo)
TEX_REPO_DIR=$(portageq get_repo_path / tex-overlay)
+diff_package() {
+ local pkg="${1}"
+ local cat="${pkg%%/*}"
+
+ local max_gentoo_repo_version=$(pquery --max -r gentoo ${pkg})
+ max_gentoo_repo_version="${max_gentoo_repo_version##${cat}}"
+
+ local max_tex_repo_version=$(pquery --max -r tex-overlay ${pkg})
+ max_tex_repo_version="${max_tex_repo_version##${cat}}"
+
+ local max_gentoo_repo_ebuild="${GENTOO_REPO_DIR}/${pkg}/${max_gentoo_repo_version}.ebuild"
+ local max_tex_repo_ebuild="${TEX_REPO_DIR}/${pkg}/${max_tex_repo_version}.ebuild"
+
+ diff -u \
+ "${max_gentoo_repo_ebuild}" \
+ "${max_tex_repo_ebuild}"
+}
+
case "${1}" in
+ biblatex)
+ diff_package dev-tex/biblatex
+ ;;
core)
- diff -u \
- "${GENTOO_REPO_DIR}/app-text/texlive-core/texlive-core-2021-r7.ebuild" \
- "${TEX_REPO_DIR}/app-text/texlive-core/texlive-core-2023.ebuild"
+ diff_package app-text/texlive-core
;;
eclass)
diff -u \
next reply other threads:[~2024-02-11 10:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-11 10:31 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-21 17:55 [gentoo-commits] proj/tex:main commit in: / Florian Schmaus
2024-11-20 15:04 Florian Schmaus
2024-03-01 11:00 Florian Schmaus
2024-02-28 13:01 Florian Schmaus
2024-02-11 10:33 Florian Schmaus
2024-02-11 10:31 Florian Schmaus
2024-02-11 10:31 Florian Schmaus
2024-02-11 10:31 Florian Schmaus
2024-02-11 10:31 Florian Schmaus
2024-02-11 10:31 Florian Schmaus
2024-02-11 10:31 Florian Schmaus
2023-11-17 14:28 Florian Schmaus
2023-11-17 14:28 Florian Schmaus
2023-11-17 14:28 Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1703866700.fe14794aaebf35e37e205213f261953f4005339c.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox