Revision 11437
Added by Aaron Marcuse-Kubitza about 11 years ago
2013-10-18.Brian_Enquist.Canadensys.csv.run | ||
---|---|---|
1 | 1 |
#!/bin/bash -e |
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../lib/runscripts/util.run "$@" |
|
3 |
.rel ../lib/sh/local.sh |
|
2 |
. "$(dirname "${BASH_SOURCE[0]}")"/../lib/runscripts/import_subset.run "$@" |
|
4 | 3 |
|
5 |
export version="${top_filename%.csv}" |
|
6 |
export public="$version" |
|
4 |
inputs=(inputs/{ACAD,HIBG,JBM,MT,QFA,TRT,TRTE,UBC,VASCAN,WIN}/) |
|
7 | 5 |
|
8 |
export_() |
|
9 |
{ |
|
10 |
echo_func; set_make_vars; deferred_check_target_exists |
|
11 |
table=analytical_stem to_top_file pg_export |
|
12 |
} |
|
6 |
func_override export___extract_run |
|
7 |
export_() { echo_func; table=analytical_stem export___extract_run "$@"; } |
|
13 | 8 |
|
14 |
all() |
|
15 |
{ |
|
16 |
echo_func; require_dot_script || return |
|
17 |
|
|
18 |
local inputs; inputs=(inputs/{ACAD,HIBG,JBM,MT,QFA,TRT,TRTE,UBC,VASCAN,WIN}/) |
|
19 |
backup= . "$bin_dir"/import_all |
|
20 |
unset inputs |
|
21 |
|
|
22 |
local jobs="$(jobs -p)" |
|
23 |
(waitpid $jobs; remake=1 export_) & |
|
24 |
} |
|
25 |
|
|
26 | 9 |
on_exit |
Also available in: Unified diff
exports/2013-10-18.Brian_Enquist.Canadensys.csv.run: inherit from new import_subset.run (which uses extract.run)