Revision 11374
Added by Aaron Marcuse-Kubitza about 11 years ago
bin/with_all | ||
---|---|---|
10 | 10 |
|
11 | 11 |
# Was run without initial ".", or with insufficient parameters |
12 | 12 |
if test "${BASH_LINENO[1]}" = 0 -o "$#" -lt 1; then |
13 |
echo "Usage: [all=1] [inputs=(inputs/src/ ...)]; . $self make_target \
|
|
14 |
[vars...] (note initial \".\")"|fold -s >&2 |
|
13 |
echo "Usage: [hidden_srcs=1] [inputs=(inputs/src/ ...)]; . $self \
|
|
14 |
make_target [vars...] (note initial \".\")"|fold -s >&2
|
|
15 | 15 |
return 2 |
16 | 16 |
fi |
17 | 17 |
if test ! "${inputs+isset}"; then inputs=(inputs/*/); fi |
18 |
if test "$all"; then inputs=(inputs/.[^as.]*/ "${inputs[@]}"); fi
|
|
18 |
if test "$hidden_srcs"; then inputs=(inputs/.[^as.]*/ "${inputs[@]}"); fi
|
|
19 | 19 |
# not . .. .svn .archive |
20 | 20 |
|
21 | 21 |
for input in "${inputs[@]}"; do |
bin/import_all | ||
---|---|---|
22 | 22 |
|
23 | 23 |
make schemas/$version/install |
24 | 24 |
|
25 |
local all=1; . "$selfDir/with_all" Source/import by_col=1 "$@"
|
|
25 |
local hidden_srcs=1; . "$selfDir/with_all" Source/import by_col=1 "$@"
|
|
26 | 26 |
# note that this isn't affected by $import_source |
27 | 27 |
wait # wait for asynchronous commands |
28 |
unset all
|
|
28 |
unset hidden_srcs
|
|
29 | 29 |
|
30 | 30 |
local import_source= # Source tables have already been imported |
31 | 31 |
export import_source # must come after local |
bin/reinstall_all | ||
---|---|---|
11 | 11 |
return 2 |
12 | 12 |
fi |
13 | 13 |
|
14 |
all=1; . "$selfDir/with_all" 'reinstall quiet=1'
|
|
14 |
hidden_srcs=1; . "$selfDir/with_all" 'reinstall quiet=1'
|
|
15 | 15 |
} |
16 | 16 |
reinstall_all_main "$@" |
Also available in: Unified diff
bin/with_all: $all: renamed to $hidden_srcs for clarity, since this now just adds the hidden (.*) datasources, rather than always using all datasources