#!/bin/sh

PATH_TO_WISH='%%WISH%%'
PGACCESS_HOME='%%PREFIX%%/share/postgresql/pgaccess'
PGLIB='%%LOCALBASE%%/lib'
PGPORT="${PGPORT:-5432}"

export PATH_TO_WISH
export PGACCESS_HOME
export PGLIB
export PGPORT

exec "${PATH_TO_WISH}" "${PGACCESS_HOME}/%%PROGRAM%%" "$@" > /dev/null
