source: debian/i2p-doc.preinst @ b7a3b7b

Last change on this file since b7a3b7b was 93d41be, checked in by kytv <kytv@…>, 9 years ago

As of -3 (debian revision 3) the javadocs are installed to
/usr/share/i2p/docs/javadoc and /usr/share/doc/i2p-doc/api is a symbolic link
to this location. To ensure the link can be created, we check to see if
/usr/share/doc/i2p-doc/api is a folder. If it is, it gets removed.

  • Property mode set to 100644
File size: 404 bytes
Line 
1#!/bin/sh -e
2exit 0
3
4if [ ! -z $2 ]; then
5        if dpkg --compare-versions $2 lt 0.8.6-5; then
6                test -d /usr/share/doc/i2p-doc \
7                        && rm -rf /usr/share/doc/i2p-doc
8        fi
9        if dpkg --compare-versions $2 lt 0.8.7-3; then
10                test -d /usr/share/doc/i2p-doc/api \
11                        && rm -rf /usr/share/doc/i2p-doc/api
12        fi
13fi
14
15#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.