1
|
#!/bin/bash
|
2
|
# Perform post-normalized-import actions
|
3
|
# usage: version=... self [wait_for_pids...]
|
4
|
|
5
|
cd "$(dirname -- "${BASH_SOURCE[0]}")/.."
|
6
|
|
7
|
: "${backup=1}"
|
8
|
|
9
|
set -x
|
10
|
|
11
|
bin/waitpid "$@"
|
12
|
|
13
|
bin/make_analytical_db
|
14
|
|
15
|
if test "$backup"; then
|
16
|
make backups/TNRS.backup-remake &
|
17
|
dump_opts=${dump_opts---exclude-schema=public} \
|
18
|
make backups/vegbien.$version.backup/test &
|
19
|
sleep 10 # wait for backup files to be created
|
20
|
backups/fix_perms
|
21
|
wait # wait for asynchronous commands
|
22
|
fi
|