aboutsummaryrefslogtreecommitdiff
path: root/debian/prerm.libivy-java
diff options
context:
space:
mode:
Diffstat (limited to 'debian/prerm.libivy-java')
-rw-r--r--debian/prerm.libivy-java20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/prerm.libivy-java b/debian/prerm.libivy-java
new file mode 100644
index 0000000..8927c6d
--- /dev/null
+++ b/debian/prerm.libivy-java
@@ -0,0 +1,20 @@
+#!/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