Revision 6067
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/.TNRS/tnrs/tnrs.make | ||
---|---|---|
2 | 2 |
# Runs tnrs_db on VegBIEN |
3 | 3 |
# Usage: env [log=] self |
4 | 4 |
|
5 |
selfDir="$(dirname -- "$0")" |
|
5 | 6 |
selfName="$(basename $0)" |
6 | 7 |
|
7 | 8 |
prefix=; . vegbien_dest |
8 | 9 |
|
9 | 10 |
if test -n "${log=1}"; then # $log defaults to 1 |
10 |
exec >>"logs/$selfName.log.sql" 2>&1 |
|
11 |
exec >>"$selfDir/logs/$selfName.log.sql" 2>&1
|
|
11 | 12 |
fi |
12 | 13 |
|
13 | 14 |
set -x |
Also available in: Unified diff
inputs/.TNRS/tnrs/tnrs.make: Fixed bug where need to reference the log file path relative to the make script itself, because otherwise the log file would go in inputs/.TNRS/logs/tnrs.make.log.sql