summaryrefslogtreecommitdiffstats
path: root/dilos/tdetoys/debian/kworldclock-trinity.postinst
blob: b40f4edbd2dbc43f408006b41982ad2b4ff06adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

if [ "${BASEDIR:=/}" = "/" ]; then
	BASEDIR=""
fi

# Link /usr/share/apps/kworldwatch to /usr/share/apps/kworldclock.
if [ "$1" = "configure" ]; then
	if [ -d ${BASEDIR}/usr/share/apps -a ! -e ${BASEDIR}/usr/share/apps/kworldwatch -a -d ${BASEDIR}/usr/share/apps/kworldclock ]; then
		ln -sf kworldclock ${BASEDIR}/usr/share/apps/kworldwatch
	fi
fi

#DEBHELPER#
exit 0