changeset 596:9de8f34905c0

keep old log files with timestamp using symlinks to refer to the latest ones
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 13 Dec 2009 15:17:24 +0100
parents f4b50cf506c6
children e3fe50a527d3
files Makefile
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Dec 13 15:07:05 2009 +0100
+++ b/Makefile	Sun Dec 13 15:17:24 2009 +0100
@@ -120,6 +120,8 @@
 	@[ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
 	@if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
 	    echo '[download] $(1)'; \
+	    rm -f '$(LOG_DIR)/$(1)-download'; \
+	    ln -s `date +%Y%m%d%H%M%S`'-$(1)-download' '$(LOG_DIR)/$(1)-download'; \
 	    ($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(1)-download'; \
 	    if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
 	        echo; \
@@ -135,6 +137,8 @@
 	$(if $(value $(1)_BUILD),
 	    @echo '[build]    $(1)'
 	    ,)
+	@rm -f '$(LOG_DIR)/$(1)'
+	@ln -s `date +%Y%m%d%H%M%S`'-$(1)' '$(LOG_DIR)/$(1)'
 	@if ! (time $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)') &> '$(LOG_DIR)/$(1)'; then \
 	    echo; \
 	    echo 'Failed to build package $(1)!'; \