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 Name_matched
|
20
|
Taxonomic_status Accepted_scientific_name); pg_export_tables_to_dir tnrs
|
21
|
)
|
22
|
}
|
23
|
|
24
|
export_()
|
25
|
{
|
26
|
echo_func
|
27
|
exports/make
|
28
|
}
|
29
|
|
30
|
fi
|