summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d564ba5)
raw | patch | inline | side by side (parent: d564ba5)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 29 Oct 2012 13:40:39 +0000 (14:40 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 29 Oct 2012 13:40:39 +0000 (14:40 +0100) |
pgtest.sh | patch | blob | history |
diff --git a/pgtest.sh b/pgtest.sh
index be58830da8698a5cbff396fb327c79e50e8b583a..8cbb27cacddcca65b173a74ea5d5adbc272442b3 100755 (executable)
--- a/pgtest.sh
+++ b/pgtest.sh
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PG_CONFIG=`which pg_config`
+if test -z "$PG_CONFIG"; then
+ PG_CONFIG=`which pg_config`
+fi
if test -z "$PG_CONFIG"; then
echo "pg_config not found!" >&2
exit 1
fi
if test -z "$PG_CONFIG"; then
echo "pg_config not found!" >&2
exit 1
fi
-BIN_DIR=`pg_config --bindir`
+BIN_DIR=`$PG_CONFIG --bindir`
if test -z "$TARGET"; then
TARGET=`pwd`/target
fi
if test -z "$TARGET"; then
TARGET=`pwd`/target
fi