File: libmcs1.preinst

package info (click to toggle)
mcs 0.7.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 784 kB
  • sloc: sh: 3,466; ansic: 1,401; cpp: 210; makefile: 103
file content (22 lines) | stat: -rw-r--r-- 632 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
#!/bin/sh

set -e

case "$1" in
	upgrade)
		if dpkg --compare-versions "$2" '<<' 0.7.2-2.1~ ; then
		# libmcs-doc installs symlinks in /usr/share/doc/libmcs-dev.
		# If the old libmcs-dev -> libmcs1 symlink exists, the links
		# end up in the wrong directory and prevent removal of
		# /usr/share/doc/libmcs1 on purging libmcs1. - This is the
		# reason for removing them here instead of in libmcs-doc
		# maintainerscripts.
		test ! -L /usr/share/doc/libmcs1/html || \
			rm /usr/share/doc/libmcs1/html
		test ! -L /usr/share/doc/libmcs1/refman.pdf.gz ||
		       rm /usr/share/doc/libmcs1/refman.pdf.gz
		fi
	;;
esac

#DEBHELPER#