Project

General

Profile

« Previous | Next » 

Revision 266

Moved map to util

View differences:

bien_map
2 2
# Runs map with BIEN defaults
3 3

  
4 4
selfDir="$(dirname -- "$0")"
5
utilDir="$selfDir/util"
5 6

  
6 7
shopt -s nullglob
7 8

  
8
bien_password="$(cat "$selfDir/util/bien_password")"
9
bien_password="$(cat "$utilDir/bien_password")"
9 10

  
10 11
# Defaults
11 12
if test -n "$in_engine"; then
......
13 14
    if test -z "$in_user"; then
14 15
        if test _"$(hostname)" = _nimoy -a _"$in_engine" = _MySQL; then
15 16
            test -n "${mysql_password+t}" || \
16
                . "$selfDir/util/env_password" mysql_password "your MySQL"
17
                . "$utilDir/env_password" mysql_password "your MySQL"
17 18
            export in_user="$USER" in_password="$mysql_password"
18 19
        else
19 20
            export in_user=bien in_password="$bien_password"
20 21
        fi
21 22
    fi
22 23
fi
23
test _"$out_database" = _vegbien && . "$selfDir/util/vegbien_dest"
24
test _"$out_database" = _vegbien && . "$utilDir/vegbien_dest"
24 25

  
25
"$selfDir/map" "$@"
26
"$utilDir/map" "$@"

Also available in: Unified diff