Your IP : 216.73.216.170


Current Path : /var/lib/dpkg/info/
Upload File :
Current File : /var/lib/dpkg/info/locales-all.postinst

#!/bin/sh
set -e
export LC_ALL=C

if [ "$1" = "configure" ]; then
	[ -d /usr/lib/locale ] || mkdir /usr/lib/locale
	#  Remove existing locales, otherwise localedef does not
	#  overwrite them and exits with a non-null value
	rm -f /usr/lib/locale/locale-archive 2>/dev/null || true
	tmpdir=$(mktemp -d -t locales.XXXXXXXXXX)
	trap 'rm -rf "$tmpdir" > /dev/null 2>&1' exit
	tar --use-compress-program /usr/bin/lzma -xf /usr/lib/locales-all/supported.tar.lzma -C "$tmpdir"
	localedef --quiet --add-to-archive "$tmpdir"/*
fi



exit 0