[Pkg-javascript-commits] [pdf.js] 03/04: Handle compatibility symlinks manually

David Prévot taffit at moszumanska.debian.org
Tue Apr 29 17:38:19 UTC 2014


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

taffit pushed a commit to branch sid
in repository pdf.js.

commit f3a9b6b5524e414eb75db8e059e977e32fe94beb
Author: David Prévot <taffit at debian.org>
Date:   Thu Apr 24 17:48:28 2014 -0400

    Handle compatibility symlinks manually
    
    It will allow direct use on Wheezy, and make backporting more
    straightforward.
---
 debian/control     |  2 +-
 debian/maintscript |  2 --
 debian/postinst    | 15 +++++++++++++++
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 6a7d71e..fd1eef0 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: David Prévot <taffit at debian.org>,
            ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9.20131213~), nodejs
+Build-Depends: debhelper (>= 9), nodejs
 Standards-Version: 3.9.5
 Homepage: http://mozilla.github.io/pdf.js/
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/pdf.js.git
diff --git a/debian/maintscript b/debian/maintscript
deleted file mode 100644
index 46c8114..0000000
--- a/debian/maintscript
+++ /dev/null
@@ -1,2 +0,0 @@
-dir_to_symlink /usr/share/javascript/pdf/locale web/locale 1.0.21+dfsg-1~
-dir_to_symlink /usr/share/javascript/pdf/images web/images 1.0.21+dfsg-1~
diff --git a/debian/postinst b/debian/postinst
new file mode 100755
index 0000000..db3ad9a
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+# Replace directory with symlink [ Can be removed before Jessie ]
+subdir="/usr/share/javascript/pdf/"
+for i in locale images; do
+	if [ -d ${subdir}$i ] && [ ! -L ${subdir}$i ]; then
+		if rmdir ${subdir}$i 2>/dev/null; then
+			ln -sf web/$i ${subdir}$i
+		fi
+	fi
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list