Project

General

Profile

« Previous | Next » 

Revision 11592

inputs/.geoscrub/geoscrub_output/geoscrub.csv.run: also run geoscrub.sh. added export_() target to run just the export of the result table separately.

View differences:

inputs/.geoscrub/geoscrub_output/geoscrub.csv.run
1 1
#!/bin/bash -e
2 2
# exports the geoscrub table
3
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/util.run
3
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/import.run
4 4
.rel ../../../lib/sh/local.sh
5 5

  
6 6
if self_not_included; then
7 7

  
8
make() # usage: rm=1 .../self.run make
8
export_() # usage: rm=1 .../self.run export_
9 9
{
10 10
	echo_func; require_remote
11 11
	local_export database=geoscrub table=geoscrub \
......
15 15
	to_top_file pg_as_root pg_export # runtime: 30 s ("0m30.352s")
16 16
}
17 17

  
18
make() # usage: rm=1 .../self.run make
19
{
20
	echo_func
21
	DATAFILE="$(canon_rel_path "$top_dir/../../../exports/geoscrub_input.csv")" \
22
command "$top_dir/../../../derived/biengeo/geoscrub.sh"
23
	export_
24
}
25

  
18 26
# upload time: 1.5 min ("0:01:17")
19 27

  
20 28
all() # usage: rm=1 .../self.run

Also available in: Unified diff