[debian-edu-commits] debian-edu/ 01/02: Add postinst and postrm files for the Japanese binary package.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Wed Jun 15 21:56:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-doc.

commit 1feae0737e3d10e5eef8efaeb24d60d6d5f91bc5
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Wed Jun 15 23:52:57 2016 +0200

    Add postinst and postrm files for the Japanese binary package.
---
 debian/debian-edu-doc-ja.postinst |  8 ++++++++
 debian/debian-edu-doc-ja.postrm   | 12 ++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/debian-edu-doc-ja.postinst b/debian/debian-edu-doc-ja.postinst
new file mode 100644
index 0000000..3ad0000
--- /dev/null
+++ b/debian/debian-edu-doc-ja.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+mkdir -p /usr/share/doc/debian-edu-doc 
+ln -sf /usr/share/doc/debian-edu-doc-ja /usr/share/doc/debian-edu-doc/ja
diff --git a/debian/debian-edu-doc-ja.postrm b/debian/debian-edu-doc-ja.postrm
new file mode 100644
index 0000000..607fe91
--- /dev/null
+++ b/debian/debian-edu-doc-ja.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+# remove link we created at installation via postinst
+rm -f /usr/share/doc/debian-edu-doc/ja
+
+# cleanup. As debian-edu-doc is a transitional package now, it might have 
+# been removed, without this directory being removed, due to our link...
+rmdir --ignore-fail-on-non-empty /usr/share/doc/debian-edu-doc || true

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-doc.git



More information about the debian-edu-commits mailing list