Project

General

Profile

« Previous | Next » 

Revision 365

input.Makefile: Only output to log if importing all rows

View differences:

input.Makefile
52 52
log = $*$(if $(n),.n=$(n),).log
53 53

  
54 54
import-%: map.VegBIEN.%.csv _not_file
55
	@(set -x; "time" env commit=1 $(mapEnv) $(map) $<) 2>&1 | tee -a $(log)
55
	$(importCmd)
56
importCmd = (set -x; "time" env commit=1 $(mapEnv) $(map) $<) \
57
$(if $(n),,>>$(log)) 2>&1 $(if $(n),| tee -a $(log))
56 58

  
57 59
##
58 60

  
......
71 73
rm_db: _not_file
72 74
	-echo "REVOKE ALL ON $(db).* FROM 'bien'@'localhost';"|$(mysql)
73 75
	echo "DROP DATABASE IF EXISTS $(db);"|$(mysql)
74
# ignore errors about no such grant being defined
76
# ignore errors if grant not defined
75 77

  
76 78
#####
77 79

  

Also available in: Unified diff