forked from I2P_Developers/i2p.i2p

/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.
16 lines
404 B
Bash
16 lines
404 B
Bash
#!/bin/sh -e
|
|
exit 0
|
|
|
|
if [ ! -z $2 ]; then
|
|
if dpkg --compare-versions $2 lt 0.8.6-5; then
|
|
test -d /usr/share/doc/i2p-doc \
|
|
&& rm -rf /usr/share/doc/i2p-doc
|
|
fi
|
|
if dpkg --compare-versions $2 lt 0.8.7-3; then
|
|
test -d /usr/share/doc/i2p-doc/api \
|
|
&& rm -rf /usr/share/doc/i2p-doc/api
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|