Revision 7083
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
# Adds scrubbed taxondeterminations to VegBIEN |
|
3 |
# Usage: make inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub-remake |
|
4 |
|
|
5 |
selfDir="$(dirname -- "$0")" |
|
6 |
selfDirName="$(basename -- "$selfDir")" |
|
7 |
|
|
8 |
cd "$selfDir/.." # needed by make |
|
9 |
|
|
10 |
make () { env make --makefile=../input.Makefile "$@"; } |
|
11 |
|
|
12 |
log_="$(make -s "$selfDirName"/log_file)" |
|
13 |
exec >>"$log_" 2>&1 |
|
14 |
|
|
15 |
while true; do |
|
16 |
make "$selfDirName"/import |
|
17 |
|
|
18 |
# Stop if no new rows added |
|
19 |
tail -10 "$log_"|grep -E '^Inserted [1-9][0-9]* new rows into database$' \ |
|
20 |
>/dev/null || break |
|
21 |
done |
|
0 | 22 |
Also available in: Unified diff
Added inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make, which adds scrubbed taxondeterminations to VegBIEN