From 9d94da70bdec6aac1bcc9747e746f8afabbb962c Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Sun, 27 May 2007 13:17:25 +0900 Subject: 424717: improved log file support: pdebuild will create a log file per default --- pdebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pdebuild') 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) -- cgit v1.2.3