[152126] contrib/mp-buildbot/mpbb
larryv at macports.org
larryv at macports.org
Mon Aug 29 08:42:54 PDT 2016
Revision: 152126
https://trac.macports.org/changeset/152126
Author: larryv at macports.org
Date: 2016-08-29 08:42:54 -0700 (Mon, 29 Aug 2016)
Log Message:
-----------
mpbb: Add "msg" function that prints all its args
Useful for printing messages that aren't necessarily errors.
Modified Paths:
--------------
contrib/mp-buildbot/mpbb
Modified: contrib/mp-buildbot/mpbb
===================================================================
--- contrib/mp-buildbot/mpbb 2016-08-29 15:42:51 UTC (rev 152125)
+++ contrib/mp-buildbot/mpbb 2016-08-29 15:42:54 UTC (rev 152126)
@@ -28,6 +28,9 @@
option_workdir=$option_default_workdir
option_logdir="${option_workdir}/logs"
+# Print $0 and arguments to standard error.
+# Unset IFS to ensure "$*" uses spaces as separators.
+msg() (unset IFS; printf >&2 '%s: %s\n' "$0" "$*")
errmsg() {
printf >&2 "Error: %s\n" "$1"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160829/3b113158/attachment.html>
More information about the macports-changes
mailing list