1
|
#!/bin/bash -e
|
2
|
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run
|
3
|
|
4
|
if self_not_included; then
|
5
|
|
6
|
table.tsv.md5/make()
|
7
|
{
|
8
|
echo_func; set_make_vars
|
9
|
silent=1 input_make "$target_filename.md5"
|
10
|
}
|
11
|
|
12
|
func_override table.tsv/make__src_table_run
|
13
|
table.tsv/make() # usage: [remake=1] [limit=...] .../run table.tsv/make
|
14
|
{
|
15
|
echo_func; set_make_vars
|
16
|
|
17
|
cols='
|
18
|
id, institution_code, collection_code, catalogue_number,
|
19
|
scientific_name,
|
20
|
family, genus, species, subspecies/*helps TNRS to resolve species*/,
|
21
|
latitude, longitude, country, state_province, county, locality' \
|
22
|
filter="
|
23
|
institution_code IN ($(cat "$top_dir"/herbaria.sql))"
|
24
|
table.tsv/make__src_table_run
|
25
|
|
26
|
table.tsv.md5/make
|
27
|
}
|
28
|
|
29
|
fi
|