mp-buildbot/install-port: print port contents in a file

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151259 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Mojca Miklavec
2016-08-11 04:52:30 +00:00
parent 87ac105999
commit a601e22456
+9
View File
@@ -10,13 +10,22 @@ install-port-help() {
}
install-port() {
local log_port_contents="${option_logdir}/port-contents.txt"
if [ -z "${option_port}" ]; then
errmsg "--port is required"
return 1
fi
# prepare the log file and make sure to start with an empty one
mkdir -p "${option_logdir}"
#log_port_contents="${option_logdir}/port-contents.txt"
if ! "${option_prefix}/bin/port" -d install "${option_port}"; then
echo "Build of '${option_port}' failed."
return 1
fi
"${option_prefix}/bin/port" contents "${option_port}" > "$log_port_contents"
}