summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2015-09-03 22:23:29 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-09-03 19:11:39 -0400
commit9db91c6b743c212b74dece02b92a71c839808e4b (patch)
tree5327c32783b2ba3a2005c632da3ca334519e4b91
parentmisc/install-xattr: update ChangeLog (diff)
downloadelfix-9db91c6b743c212b74dece02b92a71c839808e4b.tar.gz
elfix-9db91c6b743c212b74dece02b92a71c839808e4b.tar.bz2
elfix-9db91c6b743c212b74dece02b92a71c839808e4b.zip
scripts/paxmark.sh: make.conf can be a directory
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--ChangeLog4
-rwxr-xr-xscripts/paxmark.sh10
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d9993b1..f602585 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-03
+
+ * scripts/paxmark.sh: make.conf can be a directory
+
2014-12-22
* scripts/paxmark.sh: remove erroneous elog functions
diff --git a/scripts/paxmark.sh b/scripts/paxmark.sh
index 408e6aa..9d151f0 100755
--- a/scripts/paxmark.sh
+++ b/scripts/paxmark.sh
@@ -87,6 +87,14 @@ paxmarksh() {
}
MAKE_CONF="/etc/portage/make.conf"
-[[ -e $MAKE_CONF ]] && source $MAKE_CONF
+
+if [[ -d $MAKE_CONF ]]; then
+ for MC in $MAKE_CONF/*; do
+ source $MC
+ done
+elif [[ -e $MAKE_CONF ]]; then
+ source $MAKE_CONF
+fi
+
PAX_MARKINGS=${PAX_MARKINGS:="PT"}
paxmarksh "$@"