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