The following commit has been merged in the master branch:
commit 8f5d414234bdd7c9186e6fb86464043021767152
Author: Gerfried Fuchs <[email protected]>
Date:   Wed Aug 18 21:30:41 2010 +0200

    postinst scripts for doc dir symlink fixing

diff --git a/debian/changelog b/debian/changelog
index c3926bd..69c0577 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,9 @@ wesnoth-1.8 (1:1.8.3-4) unstable; urgency=low
 
   * Ship default file for the server init script and adapt the init script to
     use the script name instead of the binary name for the default file.
-  * Fix debian/branchcheck helper script, noticed by Julien Cristau.
+  * Fix debian/branchcheck helper script. Noticed by Julien Cristau, thanks.
+  * Add postinst scripts for wesnoth and wesnoth-core packages that turn the
+    doc directory into symlinks. Also noticed by Julien Cristau, thanks!
 
  -- 
 
diff --git a/debian/wesnoth-core.postinst b/debian/wesnoth-core.postinst
new file mode 100644
index 0000000..dcaea5f
--- /dev/null
+++ b/debian/wesnoth-core.postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+# postinst script for wesnoth-core
+# copyright 2010 by Gerfried Fuchs <[email protected]>
+# Licenced under WTFPLv2
+
+set -e
+
+case "$1" in
+    configure|reconfigure)
+       if dpkg --compare-versions "$2" le-nl "1:1.8.3-4"; then
+               if [ -d /usr/share/doc/wesnoth-core ]; then
+                       if rmdir /usr/share/doc/wesnoth-core; then
+                               ln -s wesnoth-data /usr/share/doc/wesnoth-core
+                       fi
+               fi
+       fi
+    ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/wesnoth.postinst b/debian/wesnoth.postinst
new file mode 100644
index 0000000..c589212
--- /dev/null
+++ b/debian/wesnoth.postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+# postinst script for wesnoth
+# copyright 2010 by Gerfried Fuchs <[email protected]>
+# Licenced under WTFPLv2
+
+set -e
+
+case "$1" in
+    configure|reconfigure)
+       if dpkg --compare-versions "$2" le-nl "1:1.8.3-4"; then
+               if [ -d /usr/share/doc/wesnoth ]; then
+                       if rmdir /usr/share/doc/wesnoth; then
+                               ln -s wesnoth-data /usr/share/doc/wesnoth
+                       fi
+               fi
+       fi
+    ;;
+esac
+
+#DEBHELPER#

-- 
Debian packaging of wesnoth

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to