1
|
#!/bin/bash -e
|
2
|
auto_fwd=1
|
3
|
. "$(dirname "${BASH_SOURCE[0]}")"/in_datasrc_dir.run
|
4
|
.rel import.run
|
5
|
|
6
|
if self_not_included; then
|
7
|
|
8
|
subdirs=($(cat "$top_dir"/import_order.txt))
|
9
|
|
10
|
import()
|
11
|
{
|
12
|
echo_func; set_make_vars
|
13
|
if remaking; then datasrc_make uninstall; fi
|
14
|
if ! pg_schema_exists; then # uses $schema
|
15
|
datasrc_make schema
|
16
|
datasrc_make sql/install </dev/null
|
17
|
# </dev/null because for datasources w/o SQL files, cat will try to
|
18
|
# read from stdin
|
19
|
fi
|
20
|
fwd_self
|
21
|
}
|
22
|
|
23
|
fi
|