]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian/postrm.in
Revamp build strategy
[cp210x.git] / debian / postrm.in
diff --git a/debian/postrm.in b/debian/postrm.in
new file mode 100755 (executable)
index 0000000..46325a0
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+PACKAGE=xxPACKAGExx
+VERSION=xxDEBVERxx
+
+set -e
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+      depmod
+      if [ -d "/usr/src/$PACKAGE-$VERSION" ]; then
+         echo "Removing old module source..."
+         rm -rf "/usr/src/$PACKAGE-$VERSION"
+      fi
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+