File: libltdl3-dev.preinst

package info (click to toggle)
libtool 1.5.6-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,444 kB
  • ctags: 896
  • sloc: sh: 10,215; ansic: 4,323; makefile: 804; cpp: 91; fortran: 19
file content (33 lines) | stat: -rw-r--r-- 440 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
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh

set -e

old_docdirs()
{
	# For some reason the old libltdl3-dev document directories don't
	# get removed which means we'll error when we try to make our symlink.
	# Get rid of them.
	rm -rf /usr/share/doc/libltdl0-dev
	rm -rf /usr/share/doc/libltdl3-dev
}

case "$1" in
install)
	;;

upgrade)
	old_docdirs
	;;

abort-upgrade)
	;;

*)
	echo "preinst called with unknown argument \`$1'" >&2
	exit 1
	;;
esac

#DEBHELPER#

exit 0