Project

General

Profile

1 1975 aaronmk
#!/bin/bash
2 243 aaronmk
3 1973 aaronmk
vegbien_dest_main ()
4
{
5
    local self="${BASH_SOURCE[0]}"
6
    local selfDir="$(dirname -- "$self")"
7
8 1977 aaronmk
    # Was run without initial "."
9
    if test "${BASH_LINENO[1]}" = 0 -a "${BASH_ARGV[0]}" != "$self"; then
10 1973 aaronmk
        echo "Usage: . $self (note initial \".\")"|fold -s >&2
11
        return 2
12
    fi
13
14
    : ${prefix=out_}
15
16
    export \
17
    ${prefix}engine=PostgreSQL \
18
    ${prefix}host=localhost \
19
    ${prefix}user=bien \
20
    ${prefix}password="$(cat "$selfDir/../config/bien_password")" \
21 2102 aaronmk
    ${prefix}database=vegbien \
22 5054 aaronmk
    ${prefix}schemas=temp,public,TNRS,functions,py_functions
23 1973 aaronmk
}
24
vegbien_dest_main "$@"