File: muttprint.config

package info (click to toggle)
muttprint 0.72d-8etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,184 kB
  • ctags: 1
  • sloc: makefile: 73; sh: 67
file content (38 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# config script for muttprint

# source debconf module
. /usr/share/debconf/confmodule

OLDLCALL=$LC_ALL
LC_ALL="C"

if [ "$DEBIAN_FRONTEND" != "noninteractive" ]; then

	# determine if we are upgrading from am older version than 0.63a-6, ...
	OLD_VER=$2

	if [ "$OLD_VER" != "" ]; then
		if dpkg --compare-versions $OLD_VER lt 0.63a-6; then
			# ... if yes, show debconf note about the moved pictures
			db_input high muttprint/moved_pics
			db_go
		fi
	fi

	PERL=`dpkg -l perl | grep perl | awk '{ print $3 }'`
	if dpkg --compare-versions $PERL lt 5.8.0-16; then
		BADPERL="true"
	fi
	if grep -q -s -i UTF /etc/locale.gen || echo $LANG | grep -q -i UTF;
	then
		UTF="true"
	fi
	
	if [ -n "$UTF" ] && [ -n "$BADPERL" ]; then
		db_input medium muttprint/utf8
		db_go
	fi
fi

LC_ALL=$OLDLCALL