File: postinst

package info (click to toggle)
locale-vi 1-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 192 kB
  • ctags: 7
  • sloc: makefile: 58; sh: 16
file content (25 lines) | stat: -rw-r--r-- 300 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
#!/bin/sh -e

#DEBHELPER#

LANG=C
umask 022

cd /etc

if [ -f locale.alias ]; then
	cp -a locale.alias locale.alias.new
	(
		set +e
		grep -v 'vi_VN.TCVN' locale.alias
		set -e
	) > locale.alias.new
fi

cat <<EOF >>locale.alias.new
vietnamese	vi_VN.TCVN
EOF

mv locale.alias.new locale.alias

exit 0