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: <1703936828.36bef437c3c22334aac5eeb6074a5aee48d00e0b.flow@gentoo> (raw)
commit: 36bef437c3c22334aac5eeb6074a5aee48d00e0b
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 30 11:47:03 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Dec 30 11:47:08 2023 +0000
URL: https://gitweb.gentoo.org/proj/tex.git/commit/?id=36bef437
diff-tex: use "pquery --one-attr path"
Thanks to Arthur Zamarin for pointing this out.
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
diff-tex | 33 +++++++++++++++------------------
1 file changed, 15 insertions(+), 18 deletions(-)
diff --git a/diff-tex b/diff-tex
index e80934e..f77898f 100755
--- a/diff-tex
+++ b/diff-tex
@@ -1,27 +1,29 @@
#!/usr/bin/env bash
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"
+ local max_gentoo_repo_ebuild=$(pquery --max --one-attr path -r gentoo ${pkg})
+ local max_tex_repo_ebuild=$(pquery --max --one-attr path -r tex-overlay ${pkg})
diff -u \
"${max_gentoo_repo_ebuild}" \
"${max_tex_repo_ebuild}"
}
+diff_eclass() {
+ local gentoo_repo_dir=$(portageq get_repo_path / gentoo)
+ local tex_repo_dir=$(portageq get_repo_path / tex-overlay)
+
+ diff -u \
+ "${gentoo_repo_dir}/eclass/texlive-common.eclass" \
+ "${tex_repo_dir}/eclass/texlive-common.eclass"
+ diff -u \
+ "${gentoo_repo_dir}/eclass/texlive-module.eclass" \
+ "${tex_repo_dir}/eclass/texlive-module.eclass"
+}
+
case "${1}" in
biblatex)
diff_package dev-tex/biblatex
@@ -30,11 +32,6 @@ case "${1}" in
diff_package app-text/texlive-core
;;
eclass)
- diff -u \
- "${GENTOO_REPO_DIR}/eclass/texlive-common.eclass" \
- "${TEX_REPO_DIR}/eclass/texlive-common.eclass"
- diff -u \
- "${GENTOO_REPO_DIR}/eclass/texlive-module.eclass" \
- "${TEX_REPO_DIR}/eclass/texlive-module.eclass"
+ diff_eclass
;;
esac
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=1703936828.36bef437c3c22334aac5eeb6074a5aee48d00e0b.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