Project

General

Profile

« Previous | Next » 

Revision 9434

inputs/GBIF/raw_occurrence_record/run: dynamically generate herbaria_filter.csv_ from herbaria.ih in new target herbaria_filter.csv_/make()

View differences:

inputs/GBIF/raw_occurrence_record/run
3 3

  
4 4
if self_not_included; then
5 5

  
6
herbaria_filter.csv_/make()
7
{
8
	echo_func; set_make_vars; check_target_exists
9
	
10
	use_local
11
	query='SELECT DISTINCT acronym FROM herbaria.ih ORDER BY acronym' \
12
to_target pg_export
13
}
14

  
6 15
herbaria_filter.table/make()
7 16
{
8 17
	echo_func; set_make_vars
9 18
	
19
	"$target_stem".csv_/make
20
	
10 21
	use_local_remote
11 22
	local table="$target_stem"
12 23
	mysql <<'EOF'

Also available in: Unified diff