aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-06 01:28:47 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-06 01:28:47 +0000
commitde54f744804bc9ba9ba73bf1cabfcdfdd3a9e6c3 (patch)
tree91fbc341a419ee554a0f86d9e614eff85f73b64c
parent0561427bdfa084eaae025f657e1b44ac58607f4d (diff)
downloadpaludis-de54f744804bc9ba9ba73bf1cabfcdfdd3a9e6c3.tar.gz
paludis-de54f744804bc9ba9ba73bf1cabfcdfdd3a9e6c3.tar.xz
Handle date in log code, global scope
-rwxr-xr-xebuild/ebuild.bash2
-rw-r--r--ebuild/echo_functions.bash.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/ebuild/ebuild.bash b/ebuild/ebuild.bash
index 02ad324..51728db 100755
--- a/ebuild/ebuild.bash
+++ b/ebuild/ebuild.bash
@@ -201,7 +201,7 @@ ebuild_main()
done
if [[ $1 == metadata ]] ; then
- for f in cut tr ; do
+ for f in cut tr date ; do
eval "export ebuild_real_${f}=\"$(which $f )\""
eval "${f}() { ebuild_notice qa 'global scope ${f}' ; $(which $f ) \"\$@\" ; }"
done
diff --git a/ebuild/echo_functions.bash.in b/ebuild/echo_functions.bash.in
index bd0f4f6..521631e 100644
--- a/ebuild/echo_functions.bash.in
+++ b/ebuild/echo_functions.bash.in
@@ -169,7 +169,7 @@ ebuild_notice()
if [[ "${level_num}" -ge "${min_level_num}" ]] ; then
local upper_level=$(echo ${level} | ${ebuild_real_tr:-tr} '[:lower:]' '[:upper:]' )
- echo -n "${EBUILD_PROGRAM_NAME:-ebuild.bash}@$(date +%s ): " 1>&2
+ echo -n "${EBUILD_PROGRAM_NAME:-ebuild.bash}@$(${ebuild_real_date:-date} +%s ): " 1>&2
echo "[${upper_level}.EBUILD] $* (from ${EBUILD:-?})" 1>&2
fi
true