File: installcheck

package info (click to toggle)
postgresql-multicorn 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,428 kB
  • sloc: ansic: 3,252; python: 2,227; sql: 755; makefile: 282; sh: 35
file content (28 lines) | stat: -rwxr-xr-x 632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -eu

export PYTHON_OVERRIDE=${1:-python2}

# Generate locale needed
. /usr/share/postgresql-common/pgcommon.sh
locale_gen en_US.UTF-8 UTF-8
export LC_ALL="en_US.UTF-8"

case $PYTHON_OVERRIDE in
	python3)
		PY3VER=$(python3 --version | sed -e 's/.* \([0-9]\.[0-9]\).*/\1/')
		if ! test -e test-$PY3VER; then
			trap "rm -f test-$PY3VER" 0 2 3 15
			ln -s test-3.3 test-$PY3VER
		fi
		;;
esac

for v in $(pg_buildext supported-versions); do
	case $v in
		9.[012]) usd="unix_socket_directory" ;;
		*)       usd="unix_socket_directories" ;;
	esac
	newnet pg_buildext -i '--auth=trust' -o "$usd=/tmp" installcheck-$v
done