From 6ae2ec95ecaf7dd5f7627cd63612bc3a8fda0089 Mon Sep 17 00:00:00 2001 From: Mark Ferrell Date: Tue, 15 Apr 2014 07:52:40 -0700 Subject: Do not cleanup ${S} or ${D} when debugging --- libexec/build-make-compile | 4 +++- libexec/build-make-package | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libexec/build-make-compile b/libexec/build-make-compile index c0ff684..8d0e59b 100755 --- a/libexec/build-make-compile +++ b/libexec/build-make-compile @@ -63,7 +63,9 @@ build_make_compile() # for build, so we might as well gut it now. About the best option we # could do would be to avoid gutting this when being run in --debug # mode. - find "${S}" -delete & + if test "${BUILDER_DEBUG:-0}" -eq '0'; then + find "${S}" -delete & + fi ## # Generate the file index. This is done as a 0 delimited file stored diff --git a/libexec/build-make-package b/libexec/build-make-package index 87cf024..1a97c31 100755 --- a/libexec/build-make-package +++ b/libexec/build-make-package @@ -53,7 +53,9 @@ build_make_archive() fi mv -v "${BUILD_MAKE_ARCHIVE_TMP2}" "${BUILDER_ATFDIR}/${CATEGORY}/${NAME}-${VERSION}-${RELEASE}.${ARCHIVE_FORMAT}" >> "${PKG_LOGFILE}" 2>&1 cd "${W}" - find "${D}" -delete & + if test "${BUILDER_DEBUG:-0}" -eq '0'; then + find "${D}" -delete & + fi ## # Technically everything should be done but we did throw a number of -- cgit v1.2.3-18-g5258