[Pkg-javascript-commits] [pdf.js] 49/56: Handle compatibility symlinks manually
David Prévot
taffit at moszumanska.debian.org
Thu May 15 15:17:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit d9218e7a1edd7589eae01fed56c0de26d60e263d
Author: David Prévot <taffit at debian.org>
Date: Thu May 15 09:39:13 2014 -0400
Handle compatibility symlinks manually
It will allow direct use on Wheezy, and make backporting more
straightforward.
---
debian/control | 2 +-
debian/maintscript | 3 ---
debian/postinst | 8 ++++++++
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index b98d277..a9aa306 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.deb
Uploaders: David Prévot <taffit at debian.org>,
ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>,
Debian Mozilla Extension Maintainers <pkg-mozext-maintainers at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9.20131213~), mozilla-devscripts, nodejs
+Build-Depends: debhelper (>= 9), mozilla-devscripts, 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 d812c61..0000000
--- a/debian/maintscript
+++ /dev/null
@@ -1,3 +0,0 @@
-dir_to_symlink /usr/share/javascript/pdf/web/cmaps ../../../pdf.js/cmaps 1.0.21+dfsg-2~
-dir_to_symlink /usr/share/javascript/pdf/web/images ../../../pdf.js/images 1.0.21+dfsg-2~
-dir_to_symlink /usr/share/javascript/pdf/web/locale ../../../pdf.js/locale 1.0.21+dfsg-2~
diff --git a/debian/postinst b/debian/postinst
index db3ad9a..00e2ec7 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -13,3 +13,11 @@ for i in locale images; do
fi
fi
done
+subdir="/usr/share/javascript/pdf/web/"
+for i in cmaps images locale; do
+ if [ -d ${subdir}$i ] && [ ! -L ${subdir}$i ]; then
+ if rmdir ${subdir}$i 2>/dev/null; then
+ ln -sf ../../../pdf.js/$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