Project

General

Profile

1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/in_datasrc_dir.run
3
.rel import.run
4

    
5
if self_not_included; then
6

    
7
table_subdirs=($(cat "$top_dir"/import_order.txt))
8
subdirs=("${table_subdirs[@]}")
9

    
10
postprocess()
11
{
12
	echo_func
13
	local subdirs=("${table_subdirs[@]}")
14
	fwd "$FUNCNAME" "$@"
15
}
16

    
17
import()
18
{
19
	echo_func; set_make_vars
20
	if remaking; then datasrc_make uninstall; fi
21
	datasrc_make schema
22
	datasrc_make sql/install </dev/null
23
		# </dev/null because for datasources w/o SQL files, cat will try to read
24
		# from stdin
25
	fwd "$FUNCNAME" "$@"
26
}
27

    
28
fi
(2-2/15)