From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:elfix-0.9.x commit in: scripts/
Date: Mon, 18 Nov 2019 18:21:36 +0000 (UTC) [thread overview]
Message-ID: <1574101283.23c756701fff52a60bf7efb841824998a0752073.blueness@gentoo> (raw)
commit: 23c756701fff52a60bf7efb841824998a0752073
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 18 18:20:14 2019 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Nov 18 18:21:23 2019 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=23c75670
scripts/paxmark.sh: source the profiles for PAX_MARKINGS
Thanks chutzpah <AT> gentoo.org
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
scripts/paxmark.sh | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/scripts/paxmark.sh b/scripts/paxmark.sh
index 6491af1..7fb0ead 100755
--- a/scripts/paxmark.sh
+++ b/scripts/paxmark.sh
@@ -86,15 +86,21 @@ paxmarksh() {
return ${ret}
}
-MAKE_CONF="/etc/portage/make.conf"
-
-if [[ -d $MAKE_CONF ]]; then
- for MC in $MAKE_CONF/*; do
- source $MC
- done
-elif [[ -e $MAKE_CONF ]]; then
- source $MAKE_CONF
+if command -v portageq >/dev/null; then
+ PAX_MARKINGS="$(portageq envvar PAX_MARKINGS)"
fi
-PAX_MARKINGS=${PAX_MARKINGS:="none"}
+if [[ -z ${PAX_MARKINGS} ]]; then
+ MAKE_CONF="/etc/portage/make.conf"
+
+ if [[ -d ${MAKE_CONF} ]]; then
+ for MC in "${MAKE_CONF}"/*; do
+ source "${MC}"
+ done
+ elif [[ -r ${MAKE_CONF} ]]; then
+ source "${MAKE_CONF}"
+ fi
+fi
+
+: "${PAX_MARKINGS:="none"}"
paxmarksh "$@"
next reply other threads:[~2019-11-18 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-18 18:21 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-04-22 21:26 [gentoo-commits] proj/elfix:elfix-0.9.x commit in: scripts/ Anthony G. Basile
2015-10-27 19:36 Anthony G. Basile
2015-09-03 23:08 Anthony G. Basile
2015-09-03 23:08 Anthony G. Basile
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=1574101283.23c756701fff52a60bf7efb841824998a0752073.blueness@gentoo \
--to=blueness@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