mirror of
https://github.com/macports/mpbb.git
synced 2026-07-12 18:18:44 -07:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user