[Pkg-javascript-commits] [SCM] flot branch, master, updated. debian/0.6-1-35-g824a8a7

Marcelo Jorge Vieira metal at alucinados.com
Fri May 31 04:50:47 UTC 2013


The following commit has been merged in the master branch:
commit d29f8e7402a4c2144f046795b11dc5472d63c8c6
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Fri May 31 00:42:12 2013 -0300

    Added compatibility symlink (Closes: #710451)
    
    Aded compatibility symlink from /usr/share/javascript/flot
    to /usr/share/javascript/jquery-flot

diff --git a/debian/libjs-jquery-flot.postinst b/debian/libjs-jquery-flot.postinst
new file mode 100644
index 0000000..d7dd04e
--- /dev/null
+++ b/debian/libjs-jquery-flot.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+js_path="/usr/share/javascript"
+if [ ! -d $js_path/flot ] && [ ! -L $js_path/flot ]; then
+    ln -sf $js_path/jquery-flot $js_path/flot;
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/libjs-jquery-flot.postrm b/debian/libjs-jquery-flot.postrm
new file mode 100644
index 0000000..10407b1
--- /dev/null
+++ b/debian/libjs-jquery-flot.postrm
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e
+
+js_path="/usr/share/javascript"
+if [ -L $js_path/flot ]; then
+    symlink=$(readlink -f $js_path/flot)
+    if [ $symlink = $js_path/jquery-flot ]; then
+        rm -f $js_path/flot;
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0

-- 
flot



More information about the Pkg-javascript-commits mailing list