#!/bin/sh
set -e
package=ivy-java
docs="ivy-java"
# FHS transition
if [ -L /usr/doc/$package ]; then
rm -f /usr/doc/$package
fi
if [ "$1" = remove -o "$1" = upgrade ]; then
if command -v install-docs >/dev/null 2>&1; then
for doc in $docs
do
install-docs -r $doc
done
fi
fi