Icons are changed
[gnuplot] / debian / gnuplot.postinst
1 #!/bin/sh
2
3 set -e
4
5 # hack around bug #156463 in dpkg: on the upgrade from old packages
6 # versions we want to replace /usr/share/doc/gnuplot with a symlink to
7 # the gnuplot-nox-docs (as gnuplot depends on gnuplot-nox, the docs
8 # exist). However, on upgrade the directory survives overwriting...
9
10 DIR=/usr/share/doc/gnuplot
11
12 # not a link but a directory?
13 if [ ! -L $DIR -a -d $DIR ] ; then
14   # should be empty because previous package was removed
15   rmdir $DIR
16   # create the same symlink as this package already provides...
17   ln -s gnuplot-nox $DIR
18 fi
19
20 #DEBHELPER#