[debian-edu-commits] debian-edu/ 02/03: Add postinst and postrm files for the new binary packages d-e-doc-(pl|sv|zh).

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Tue Aug 22 22:20:52 UTC 2017


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 7a01e1a57a285a8a13d65501b229cf98e8def759
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Tue Aug 22 23:52:16 2017 +0200

    Add postinst and postrm files for the new binary packages d-e-doc-(pl|sv|zh).
---
 debian/debian-edu-doc-pl.postinst |  8 ++++++++
 debian/debian-edu-doc-pl.postrm   | 12 ++++++++++++
 debian/debian-edu-doc-sv.postinst |  8 ++++++++
 debian/debian-edu-doc-sv.postrm   | 12 ++++++++++++
 debian/debian-edu-doc-zh.postinst |  8 ++++++++
 debian/debian-edu-doc-zh.postrm   | 12 ++++++++++++
 6 files changed, 60 insertions(+)

diff --git a/debian/debian-edu-doc-pl.postinst b/debian/debian-edu-doc-pl.postinst
new file mode 100644
index 0000000..542a63e
--- /dev/null
+++ b/debian/debian-edu-doc-pl.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-pl /usr/share/doc/debian-edu-doc/pl
diff --git a/debian/debian-edu-doc-pl.postrm b/debian/debian-edu-doc-pl.postrm
new file mode 100644
index 0000000..12a0a8a
--- /dev/null
+++ b/debian/debian-edu-doc-pl.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/pl
+
+# 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
diff --git a/debian/debian-edu-doc-sv.postinst b/debian/debian-edu-doc-sv.postinst
new file mode 100644
index 0000000..66eb8be
--- /dev/null
+++ b/debian/debian-edu-doc-sv.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-sv /usr/share/doc/debian-edu-doc/sv
diff --git a/debian/debian-edu-doc-sv.postrm b/debian/debian-edu-doc-sv.postrm
new file mode 100644
index 0000000..a9f0890
--- /dev/null
+++ b/debian/debian-edu-doc-sv.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/sv
+
+# 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
diff --git a/debian/debian-edu-doc-zh.postinst b/debian/debian-edu-doc-zh.postinst
new file mode 100644
index 0000000..38a66a0
--- /dev/null
+++ b/debian/debian-edu-doc-zh.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-zh /usr/share/doc/debian-edu-doc/zh
diff --git a/debian/debian-edu-doc-zh.postrm b/debian/debian-edu-doc-zh.postrm
new file mode 100644
index 0000000..d735e08
--- /dev/null
+++ b/debian/debian-edu-doc-zh.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/zh
+
+# 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