Project

General

Profile

1 11436 aaronmk
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/import.run "$@"
3
.rel ../sh/local.sh
4
5
if self_not_included; then
6
7 11461 aaronmk
export extract_view="${top_filename%.csv}"
8
9 11436 aaronmk
export_()
10
{
11 12779 aaronmk
	begin_target; deferred_check_target_exists
12 13821 aaronmk
	umask ug=rwx,o= # prevent files from becoming web-accessible
13 11461 aaronmk
	table="$extract_view" to_top_file pg_export
14 11436 aaronmk
}
15
16 12968 aaronmk
export_sample() { begin_target; n=100 with_rm export_; }
17 11574 aaronmk
18 11436 aaronmk
fi