Project

General

Profile

« Previous | Next » 

Revision 9962

lib/runscripts/datasrc_dir.run: extend import.run and provide an import() implementation that runs all the runscripts for import_order.txt subdirs

View differences:

lib/runscripts/datasrc_dir.run
1 1
#!/bin/bash -e
2 2
. "$(dirname "${BASH_SOURCE[0]}")"/util.run
3
. "$(dirname "${BASH_SOURCE[0]}")"/import.run
3 4
.rel ../sh/local.sh
4 5
.rel ../sh/db_make.sh
5 6

  
......
7 8

  
8 9
: "${schema="$(log+ 2 cd "$top_dir"; basename "$PWD")"}"; export schema
9 10

  
11
subdirs=($(cat "$top_dir"/import_order.txt))
12

  
13
import()
14
{
15
	echo_func
16
	fwd "$FUNCNAME" "$@"
17
}
18

  
10 19
fi

Also available in: Unified diff