diff options
author | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-05-27 13:17:25 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-05-27 13:17:25 +0900 |
commit | 9d94da70bdec6aac1bcc9747e746f8afabbb962c (patch) | |
tree | cbff863d21c7fc25b2920f6e2c94ea756026ed6b /pdebuild | |
parent | 9b3c5e1f2116569d9e4ec8e7dcf00ed624873ae7 (diff) | |
download | pbuilder-9d94da70bdec6aac1bcc9747e746f8afabbb962c.tar pbuilder-9d94da70bdec6aac1bcc9747e746f8afabbb962c.tar.gz |
424717: improved log file support: pdebuild will create a log file per default
Diffstat (limited to 'pdebuild')
-rw-r--r-- | pdebuild | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -34,6 +34,13 @@ PKG_VERSION=$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p') ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH) CHANGES="${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" +if [ -z "${PBUILDER_BUILD_LOGFILE}" ]; then + PBUILDER_BUILD_LOGFILE="../${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.build" + exec > >(tee "${PBUILDER_BUILD_LOGFILE}"); + exec 2>&1 +fi + + export BUILDRESULTUID=$(id -u) export BUILDRESULTGID=$(id -g) |