File: xine-ui.postinst.in

package info (click to toggle)
xine-ui 0.99.6-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,480 kB
  • ctags: 6,532
  • sloc: ansic: 71,071; sh: 6,881; makefile: 636; perl: 18; sed: 16; xml: 9
file content (22 lines) | stat: -rw-r--r-- 457 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
#! /bin/sh

set -e

case "$1" in
  triggered|configure)
    if test -x @XINE_LIST@; then
      {
	sed -e '/^MimeType=/ d' </var/lib/xine/xine.desktop
	echo -n 'MimeType='
	@XINE_LIST@
	echo
      } >/var/lib/xine/xine.desktop.new
      echo "Updated the MIME types in xine's menu file."
      mv /var/lib/xine/xine.desktop.new /var/lib/xine/xine.desktop
    else
      echo "Not updating the MIME types in xine's menu file."
    fi
    ;;
esac

#DEBHELPER#