Project

General

Profile

« Previous | Next » 

Revision 893

input.Makefile: Fixed bug where no log file was being created, even when nolog was off

View differences:

inputs/input.Makefile
106 106
import: _always import-all verify ;
107 107

  
108 108
log = $(@:-all=)$(if $(n),.n=$(n),).$(date).log
109
import = -(set -x; "time" env commit=1 $(map2db)) \
110
$(if nolog,,$(if $(n),,>>$(log))) 2>&1$(if nolog,,$(if $(n),|tee -a $(log)))
109
import = -(set -x; "time" env commit=1 $(map2db)) $(if $(nolog),,\
110
$(if $(n),,>>$(log))) 2>&1$(if $(nolog),,$(if $(n),|tee -a $(log)))
111 111
# ignore import errors, which are often benign (e.g. invalid date format)
112 112

  
113 113
ifneq ($(inputFiles),)

Also available in: Unified diff