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...
10 DIR=/usr/share/doc/gnuplot
12 # not a link but a directory?
13 if [ ! -L $DIR -a -d $DIR ] ; then
14 # should be empty because previous package was removed
16 # create the same symlink as this package already provides...
17 ln -s gnuplot-nox $DIR