comparison rc/bashrc @ 440:abbdb936a36a

Automated pgsql yum version detect.
author Edho Arief <edho@myconan.net>
date Sun, 06 Jan 2013 13:52:11 +0300
parents cb2d444253f4
children c3bfb45757e9
comparison
equal deleted inserted replaced
439:cb2d444253f4 440:abbdb936a36a
27 fi 27 fi
28 fi 28 fi
29 # OpenBSD X11 29 # OpenBSD X11
30 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" 30 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin"
31 # PostgreSQL Yum 31 # PostgreSQL Yum
32 test -d /usr/pgsql-8.4 && PATH="/usr/pgsql-8.4/bin:${PATH}" 32 # Defaults to last version available.
33 test -d /usr/pgsql-9.1 && PATH="/usr/pgsql-9.1/bin:${PATH}" 33 _pgbindir=(/usr/pgsql-*/bin)
34 test -d /usr/pgsql-9.2 && PATH="/usr/pgsql-9.2/bin:${PATH}" 34 _pgbindir="${_pgbindir[@]:(-1)}"
35 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}"
36 unset _pgbindir
35 37
36 # PostgreSQL EnterpriseDB 38 # PostgreSQL EnterpriseDB
37 # Defaults to last version available. 39 # Defaults to last version available.
38 _pgbindir=(/opt/PostgreSQL/*/bin) 40 _pgbindir=(/opt/PostgreSQL/*/bin)
39 _pgbindir="${_pgbindir[@]:(-1)}" 41 _pgbindir="${_pgbindir[@]:(-1)}"