From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elt-patches:master commit in: /
Date: Thu, 4 Nov 2021 10:33:41 +0000 (UTC) [thread overview]
Message-ID: <1636021176.c4ea896a322a84876a92bc530ef506c098f40c2c.vapier@gentoo> (raw)
commit: c4ea896a322a84876a92bc530ef506c098f40c2c
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 4 10:19:36 2021 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Nov 4 10:19:36 2021 +0000
URL: https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=c4ea896a
eltpatch: allow ELT_patchdir to be overridden via env
This will allow for local testing.
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
eltpatch.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/eltpatch.in b/eltpatch.in
index 887fc6f..7d3980e 100644
--- a/eltpatch.in
+++ b/eltpatch.in
@@ -7,6 +7,8 @@ type -P gfind &>/dev/null && FIND=gfind || FIND=find
type -P gpatch &>/dev/null && PATCH=gpatch || PATCH=patch
type -P gsed &>/dev/null && SED=gsed || SED=sed
+: "${ELT_patchdir:=@ELT_patchdir@}"
+
source "@ELT_gentoofuncs@" || exit 1
die() {
@@ -74,7 +76,7 @@ ELT_walk_patches() {
local ret=1
local file=$1
local patch_set=$2
- local patch_dir="@ELT_patchdir@/${patch_set}"
+ local patch_dir="${ELT_patchdir}/${patch_set}"
local rem_int_dep=$3
[[ -z ${patch_set} ]] && return 1
@@ -88,7 +90,7 @@ ELT_walk_patches() {
sed_args+=( -e "s|@REM_INT_DEP@|${rem_int_dep}|g" )
fi
- pushd "@ELT_patchdir@" >/dev/null || die "pushd to elt-patch dir failed"
+ pushd "${ELT_patchdir}" >/dev/null || die "pushd to elt-patch dir failed"
# Go through the patches in reverse order (newer version to older)
for patch in $(${FIND} "${patch_set}" -maxdepth 1 -type f | LC_ALL=C sort -r) ; do
next reply other threads:[~2021-11-04 10:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 10:33 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-19 9:20 [gentoo-commits] proj/elt-patches:master commit in: / Sam James
2024-10-19 9:17 Sam James
2024-05-12 15:38 Sam James
2024-01-14 18:35 Sam James
2021-11-04 10:33 Mike Frysinger
2020-03-13 14:37 Michael Haubenwallner
2017-08-26 11:38 Michał Górny
2017-08-26 7:10 Michał Górny
2017-08-15 11:40 Michał Górny
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=1636021176.c4ea896a322a84876a92bc530ef506c098f40c2c.vapier@gentoo \
--to=vapier@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