Project

General

Profile

« Previous | Next » 

Revision 359

Generate VegX-VegBIEN.organisms.csv from VegBank-VegBIEN.map.csv, which is generated from VegBank-VegBIEN.map_only.csv

View differences:

mappings/VegBank-VegBIEN.map.csv
1
VegBank,VegBIEN,Comments
2
,,table renames
3
observation,plotevent,
4
taxonobservation,taxonoccurrence,
5
taxoninterpretation,taxondetermination,
6
stemlocation,individual,
7
taxonimportance,collectiveobs,
8
stratum,taxonbin,
9
,,column moves
mappings/VegBank-VegBIEN.map_only.csv
1
"VegBank","VegBIEN","Comments"
2
,,"column moves"
mappings/Makefile
31 31
.PRECIOUS: $(misc)
32 32

  
33 33
bin = ../bin
34
in_place = $(bin)/in_place
35
cat_csv = $(bin)/cat_csv
36 34
repl = $(bin)/repl
37 35
sort = $(bin)/sort 1 0
38 36
chRoot = $(bin)/ch_root <$< >$@
......
43 41
	$(bin)/cat_csv <$+ >$@
44 42
.PRECIOUS: VegBank-VegBIEN.%.csv
45 43

  
46
schemas/vegbien.sql: schemas/vegbank.sql
47
	$(repl) <$< VegBank-VegBIEN.schema.csv >$@
44
schemas/vegbien.sql: schemas/vegbank.sql VegBank-VegBIEN.schema.csv
45
	$(repl) <$+ >$@
48 46

  
49 47
schemas/vegbien_empty.sql: schemas/vegbien.sql
50 48
	$(empty)
51 49

  
52 50
VegX-VegBank.organisms.csv: _not_file
53
	$(in_place) $@ $(sort)
51
	$(bin)/in_place $@ $(sort)
54 52

  
55
VegX-VegBIEN.organisms.csv: VegX-VegBank.organisms.csv
56
	$(repl) <$< VegBank-VegBIEN.csv 1|$(sort) >$@
53
VegX-VegBIEN.organisms.csv: VegX-VegBank.organisms.csv VegBank-VegBIEN.map.csv
54
	$(repl) <$+ 1|$(sort) >$@
57 55

  
58 56
#####
59 57

  

Also available in: Unified diff