File: postinst

package info (click to toggle)
ghostview 1.5-19
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 660 kB
  • ctags: 958
  • sloc: ansic: 8,747; makefile: 305; sh: 42
file content (16 lines) | stat: -rw-r--r-- 527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ "`cat /etc/papersize | egrep a4`" = "a4" ]; then
	echo "*paperMedia: A4 " >> /usr/X11R6/lib/X11/app-defaults/Ghostview
fi

if [ -x /usr/sbin/install-mime ]; then
   install-mime --install --package=ghostview --content=application/postscript --test="test \"\$DISPLAY\" != \"\"" --view="ghostview %s" 
   install-mime --install --package=ghostview --content=application/ghostview --test="test \"\$DISPLAY\" != \"\"" --view="ghostview %s" 
fi

if [ -x /usr/bin/update-menus ] ; then
    update-menus -f
fi