Project

General

Profile

1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/import.run
3
.rel ../../../lib/runscripts/subdir.run
4
.rel ../../../lib/sh/db_make.sh
5

    
6
if self_not_included; then
7

    
8
: "${exports_dir:="$top_dir"}"
9

    
10
exports/make()
11
{
12
	echo_func
13
	(schema=public.$schema
14
		cols=(taxonverbatim_id taxonlabel_id taxonname); \
15
pg_export_tables_to_dir taxonverbatim
16
		cols=(taxonlabel_id taxonomicname); pg_export_tables_to_dir taxonlabel
17
	)
18
	(schema=TNRS
19
		cols=(Name_number Name_submitted Family_matched Genus_matched
20
Specific_epithet_matched Taxonomic_status Accepted_scientific_name); \
21
pg_export_tables_to_dir tnrs
22
	)
23
}
24

    
25
export_()
26
{
27
	echo_func
28
	exports/make
29
}
30

    
31
fi
(3-3/6)