aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:17:25 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:17:25 +0900
commit9d94da70bdec6aac1bcc9747e746f8afabbb962c (patch)
treecbff863d21c7fc25b2920f6e2c94ea756026ed6b /pdebuild
parent9b3c5e1f2116569d9e4ec8e7dcf00ed624873ae7 (diff)
downloadpbuilder-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--pdebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/pdebuild b/pdebuild
index c29e61f..882ad2b 100644
--- a/pdebuild
+++ b/pdebuild
@@ -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)