aboutsummaryrefslogtreecommitdiff
path: root/build/pgsql
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-12-13 21:57:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-01-23 21:20:44 +0300
commitfc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch)
tree6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /build/pgsql
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
Diffstat (limited to 'build/pgsql')
-rwxr-xr-xbuild/pgsql/configure63
-rwxr-xr-xbuild/pgsql/pgsql53
2 files changed, 0 insertions, 116 deletions
diff --git a/build/pgsql/configure b/build/pgsql/configure
deleted file mode 100755
index 9673c15..0000000
--- a/build/pgsql/configure
+++ /dev/null
@@ -1,63 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/pgsql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# dcf_root - dynamic configuration root
-#
-
-$echo
-$echo "Please enter the PostgreSQL client program path."
-$echo
-
-driver=`read_path --command psql`
-
-$echo
-$echo "Please enter the PostgreSQL database user. Note that the named"
-$echo "user must be allowed to connect to the database server without"
-$echo "specifying credentials."
-$echo
-
-user=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the PostgreSQL database name. Note that it WILL BE"
-$echo "MODIFIED by the tests."
-$echo
-
-db=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the PostgreSQL database host. Leaving this field"
-$echo "blank results in using Unix-domain sockets. Machines without"
-$echo "Unix-domain sockets will connect to localhost."
-$echo
-
-host=`read_value ""`
-
-$echo
-$echo "Please enter the PostgreSQL database port or the socket file name"
-$echo "extension for Unix-domain connections."
-$echo
-
-port=`read_value ""`
-
-opt=$dcf_root/pgsql.options
-drv=$dcf_root/pgsql-driver
-
-echo "--user '$user'" >$opt
-echo "--database '$db'" >>$opt
-
-if [ -n "$host" ]; then
-echo "--host '$host'" >>$opt
-fi
-
-if [ -n "$port" ]; then
-echo "--port '$port'" >>$opt
-fi
-
-echo "#!/bin/sh" >$drv
-echo "opt=\`cat $opt\`" >>$drv
-echo "eval $scf_root/pgsql/pgsql --driver $driver \$opt \$*" >>$drv
-chmod 755 $drv
diff --git a/build/pgsql/pgsql b/build/pgsql/pgsql
deleted file mode 100755
index d30a102..0000000
--- a/build/pgsql/pgsql
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/pgsql/pgsql
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# PostgreSQL driver wrapper.
-#
-
-driver=
-opt=
-
-while [ $# -gt 0 ]; do
- case $1 in
- --driver)
- driver=$2
- shift 2
- ;;
- --user)
- opt="$opt --user=$2"
- shift 2
- ;;
- --database)
- opt="$opt --dbname=$2"
- shift 2
- ;;
- --host)
- opt="$opt --host=$2"
- shift 2
- ;;
- --port)
- opt="$opt --port=$2"
- shift 2
- ;;
- *)
- break
- ;;
- esac
-done
-
-if [ -z "$driver" ]; then
- driver=psql
-fi
-
-opt="--quiet $opt"
-
-export PGOPTIONS=--client-min-messages=warning
-
-if [ -n "$1" ]; then
- exec $driver $opt --set ON_ERROR_STOP=1 -f $1
-else
- exec $driver $opt
-fi