Project

General

Profile

« Previous | Next » 

Revision 4663

input.Makefile: Maps validation: $(newTerms): Fixed bug where header needed to be removed before running filter_out_ci because filter_out_ci only removes the header if it matches the vocabulary's header. Removing the header afterward can cause the first row to be removed instead if the header was already removed.

View differences:

input.Makefile
279 279

  
280 280
##### Maps validation
281 281

  
282
# `tail -n +2`: Remove header before running filter_out_ci because filter_out_ci
283
# only removes the header if it matches the vocabulary's header.
282 284
define newTerms
283
$(bin)/filter_out_ci <$< $(1) $(word 2,$+)|$(bin)/cols $(1)$(2)|tail -n +2 >$@
285
tail -n +2 $<|$(bin)/filter_out_ci $(1) $(word 2,$+)|$(bin)/cols $(1)$(2) >$@
284 286
$(bin)/autoremove $@
285 287
endef
286 288

  

Also available in: Unified diff