Project

General

Profile

1 8291 aaronmk
#!/bin/bash -e
2 8774 aaronmk
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/table.run
3 8286 aaronmk
4 8705 aaronmk
if self_not_included; then
5
6 9391 aaronmk
table.tsv.md5/make()
7
{
8
	echo_func; set_make_vars; check_target_exists
9 9746 aaronmk
	table_make "$target_filename"
10 9391 aaronmk
}
11
12 9748 aaronmk
table.tsv.gz/make()
13
{
14
	echo_func; set_make_vars
15
	table_make "$target_filename"
16
}
17
18 9348 aaronmk
table.tsv/make() # usage: [remake=1] [limit=...] .../run table.tsv/make
19 8286 aaronmk
{
20 8990 aaronmk
	echo_func; set_make_vars; check_target_exists
21 9699 aaronmk
	(set_large_table; to_target mysql_export_local) || return
22 9749 aaronmk
	remake=1 bg_cmd "$target_filename".gz/make; sleep 6 # wait for log msgs
23 9675 aaronmk
	remake=1 "$target_filename".md5/make
24 8286 aaronmk
}
25
26 9074 aaronmk
export_mysql()
27 8961 aaronmk
{
28
	echo_func
29
	table.tsv/make
30
}
31
32 9039 aaronmk
func_override import__table_run
33 9074 aaronmk
import()
34 8286 aaronmk
{
35 8881 aaronmk
	echo_func
36 8950 aaronmk
	export_mysql
37 9681 aaronmk
	self_make import__table_run "$@"
38 8286 aaronmk
}
39 8705 aaronmk
40
fi