Project

General

Profile

1
#!/bin/bash
2

    
3
vegbien_dest_main ()
4
{
5
    local self="${BASH_SOURCE[0]}"
6
    local selfDir="$(dirname -- "$self")"
7
    
8
    if test "${BASH_LINENO[1]}" = 0; then # was run without initial "."
9
        echo "Usage: . $self (note initial \".\")"|fold -s >&2
10
        return 2
11
    fi
12
    
13
    : ${prefix=out_}
14
    
15
    export \
16
    ${prefix}engine=PostgreSQL \
17
    ${prefix}host=localhost \
18
    ${prefix}user=bien \
19
    ${prefix}password="$(cat "$selfDir/../config/bien_password")" \
20
    ${prefix}database=vegbien
21
}
22
vegbien_dest_main "$@"
(44-44/47)