File: system

package info (click to toggle)
postgresql-common 134wheezy4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 772 kB
  • sloc: perl: 2,345; sh: 437; makefile: 36
file content (19 lines) | stat: -rwxr-xr-x 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

# install locales; this happens differently on Debian and Ubuntu
if [ -e /etc/locale.gen ]; then
    /bin/echo -e 'ru_RU ISO-8859-5\nru_RU.UTF-8 UTF-8' >> /etc/locale.gen
    locale-gen
else
    locale-gen ru_RU ru_RU.UTF-8
fi

# ensure that en_US.utf8 exists
if [ -n "`LANG=en_US.utf8 locale 2>&1 1>/dev/null`" ]; then
    echo "en_US.utf8 locale does not exist, aborting" >&2
    exit 1
fi

cd /usr/share/postgresql-common
env -u TMPDIR LANG=en_US.utf8 ./testsuite