# HG changeset patch # User Volker Grabsch # Date 1260713844 -3600 # Node ID 9de8f34905c0207f96fa170c0873698bc01dbdf0 # Parent f4b50cf506c66c67a877d1a51154e8315186f726 keep old log files with timestamp using symlinks to refer to the latest ones diff -r f4b50cf506c6 -r 9de8f34905c0 Makefile --- 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)!'; \