Project

General

Profile

1 10585 aaronmk
#!/bin/bash
2
# Perform post-normalized-import actions
3 10589 aaronmk
# usage: version=... self [wait_for_pids...]
4 10585 aaronmk
5
cd "$(dirname -- "${BASH_SOURCE[0]}")/.."
6
7 11429 aaronmk
: "${backup=1}"
8
9 10585 aaronmk
set -x
10
11
bin/waitpid "$@"
12
13
bin/make_analytical_db
14
15 11429 aaronmk
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