Project

General

Profile

1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/table.run
3

    
4
if self_not_included; then
5

    
6
table.tsv.md5/make()
7
{
8
	echo_func; set_make_vars; check_target_exists
9
	table_make "$target_filename"
10
}
11

    
12
table.tsv.gz/make()
13
{
14
	echo_func; set_make_vars
15
	table_make "$target_filename"
16
}
17

    
18
table.tsv*/upload()
19
{
20
	echo_func; set_make_vars
21
	inplace=1 sync_upload "$target"
22
}
23

    
24
table.tsv/make() # usage: [remake=1] [limit=...] .../run table.tsv/make
25
{
26
	echo_func; set_make_vars; check_target_exists
27
	(set_large_table; to_target mysql_export_local) || return
28
	remake=1 bg_cmd "$target_filename".gz/make; sleep 6 # wait for log msgs
29
	remake=1 "$target_filename".md5/make
30
}
31

    
32
export_mysql()
33
{
34
	echo_func
35
	table.tsv/make
36
}
37

    
38
func_override import__table_run
39
import()
40
{
41
	echo_func
42
	export_mysql
43
	self_make import__table_run "$@"
44
}
45

    
46
fi
(9-9/10)