File: preinst

package info (click to toggle)
viewmol 2.4.1-18
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 7,300 kB
  • sloc: ansic: 30,727; python: 1,846; sh: 1,282; awk: 433; makefile: 374
file content (14 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

# rename locale/en_US to en (from 2.4.1-12)
if [ "$1" = "upgrade" ]; then
    if dpkg --compare-versions "$2" lt-nl 2.4.1-12; then
	if [ -d /etc/viewmol/locale/en_US/ ] && [ ! -d /etc/viewmol/locale/en/ ]; then
		echo "Moving /etc/viewmol/locale/en_US/ to .../en"
		mv /etc/viewmol/locale/en_US /etc/viewmol/locale/en
	fi
    fi
fi


#DEBHELPER#