[Pkg-javascript-commits] [highlight.js] 01/05: Get rid of embedded minfied js

Ximin Luo infinity0 at debian.org
Tue May 16 13:29:45 UTC 2017


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

infinity0 pushed a commit to branch master
in repository highlight.js.

commit ced65356d9920bcfaa6cdde0b012ea477841beaf
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue May 16 15:21:07 2017 +0200

    Get rid of embedded minfied js
---
 debian/copyright                                         | 1 +
 debian/jquery.min.js                                     | 1 +
 debian/patches/python-buildsystem-modify-build-dir.patch | 6 ++++--
 debian/watch                                             | 2 +-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/copyright b/debian/copyright
index 5f1b913..989bd8a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,6 +2,7 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: highlight.js
 Source: https://github.com/isagalaev/highlight.js
  The upstream tarball has been repacked to exclude tools/yuicompressor.jar
+Files-Excluded: demo
 
 Files: *
 Copyright: 2006 Ivan Sagalaev <maniac at softwaremaniacs.org>
diff --git a/debian/jquery.min.js b/debian/jquery.min.js
new file mode 120000
index 0000000..7fff887
--- /dev/null
+++ b/debian/jquery.min.js
@@ -0,0 +1 @@
+/usr/share/javascript/jquery/jquery.min.js
\ No newline at end of file
diff --git a/debian/patches/python-buildsystem-modify-build-dir.patch b/debian/patches/python-buildsystem-modify-build-dir.patch
index d07d33c..861739e 100644
--- a/debian/patches/python-buildsystem-modify-build-dir.patch
+++ b/debian/patches/python-buildsystem-modify-build-dir.patch
@@ -7,15 +7,17 @@ Index: highlight.js/tools/developer.html
 ===================================================================
 --- highlight.js.orig/tools/developer.html
 +++ highlight.js/tools/developer.html
-@@ -49,7 +49,7 @@
+@@ -49,8 +49,8 @@
      </div>
    </div>
  
 -  <script src="../build/highlight.pack.js"></script>
+-  <script src="../demo/jquery-2.1.1.min.js"></script>
 +  <script src="../build_browser/highlight.js"></script>
-   <script src="../demo/jquery-2.1.1.min.js"></script>
++  <script src="../debian/jquery.min.js"></script>
  
    <script>
+     $(document).ready(function() {
 Index: highlight.js/tools/build.py
 ===================================================================
 --- highlight.js.orig/tools/build.py
diff --git a/debian/watch b/debian/watch
index 32fe509..5c3e3c0 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
-opts=dversionmangle=s/\+ds// \
+opts=dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg1 \
 https://github.com/isagalaev/highlight.js/tags .*/highlight\.js/archive/(.*[^a]).tar.gz

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



More information about the Pkg-javascript-commits mailing list