From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: files/hooks/
Date: Fri, 6 Sep 2013 11:10:58 +0000 (UTC) [thread overview]
Message-ID: <1378465672.c33afbec6517198fa9b8d076546c296ec6162cc3.dywi@gentoo> (raw)
commit: c33afbec6517198fa9b8d076546c296ec6162cc3
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Sep 6 11:07:52 2013 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Sep 6 11:07:52 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=c33afbec
files/hooks/mux.sh: preload extra function files
---
files/hooks/mux.sh | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/files/hooks/mux.sh b/files/hooks/mux.sh
index c78d9e8..7789b99 100755
--- a/files/hooks/mux.sh
+++ b/files/hooks/mux.sh
@@ -30,9 +30,17 @@ for hookfile in \
${FILESDIR}/hooks/?*.${ROVERLAY_PHASE}
do
if [ -f "${hookfile}" ]; then
+ # preload function files
+ hookfile_name="${hookfile##*/}"
+ case "${hookfile_name}" in
+ *git*)
+ $lf git
+ ;;
+ esac
+
# subshell: don't leak hook vars/functions
(
- readonly hookfile_name="${hookfile##*/}"
+ readonly hookfile_name
this="${hookfile_name#[0-9]*-}"; this="${this%.*}"
if [ -n "${this}" ]; then
@@ -47,6 +55,8 @@ do
# initial directory should always be $S
cd "${S}" && . "${hookfile}"
) || die "errors occured while running hook '${hookfile}'"
+
+ unset -v hookfile_name
fi
done
next reply other threads:[~2013-09-06 11:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 11:10 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-04-01 16:38 [gentoo-commits] proj/R_overlay:master commit in: files/hooks/ André Erdmann
2014-01-25 18:14 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-06 11:10 André Erdmann
2013-09-06 10:22 André Erdmann
2013-09-06 10:22 André Erdmann
2013-09-06 10:22 André Erdmann
2013-09-04 13:13 André Erdmann
2013-09-04 12:50 André Erdmann
2013-09-04 10:16 André Erdmann
2013-08-02 10:34 André Erdmann
2013-06-22 15:24 André Erdmann
2013-06-22 15:24 André Erdmann
2013-06-21 18:41 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-06-22 15:24 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
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=1378465672.c33afbec6517198fa9b8d076546c296ec6162cc3.dywi@gentoo \
--to=dywi@mailerd.de \
--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