Project

General

Profile

1
#!/bin/bash
2
# Runs tnrs_db on VegBIEN
3
# Usage: make inputs/.TNRS/tnrs/tnrs-remake [log=]
4

    
5
# Handle being run as a .make script
6
exec >&2
7
unset MAKEFLAGS MFLAGS
8

    
9
selfDir="$(dirname -- "$0")"
10
selfName="$(basename $0)"
11

    
12
waitself "$0"
13

    
14
. vegbien_dest
15

    
16
if test -n "${log=1}"; then # $log defaults to 1
17
    exec >>"$selfDir/logs/$selfName.log.sql" 2>&1
18
fi
19

    
20
echo -n 'start time: '; date
21
(set -x; time tnrs_db "$@")
(3-3/3)