[Pkg-javascript-commits] [highlight.js] 04/07: Refresh modify_build_dir.patch

Cédric Boutillier boutil at alioth.debian.org
Thu Nov 7 10:07:27 UTC 2013


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

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

commit 5717294435cc6e2e81be23f3cdff641f96a39748
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Nov 7 10:23:42 2013 +0100

    Refresh modify_build_dir.patch
---
 debian/patches/modify_build_dir.patch |   26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/debian/patches/modify_build_dir.patch b/debian/patches/modify_build_dir.patch
index f4c1088..233e844 100644
--- a/debian/patches/modify_build_dir.patch
+++ b/debian/patches/modify_build_dir.patch
@@ -1,29 +1,25 @@
 Description: modify build_dir according to the target
  We do not want the prepared files to be wiped out before they get installed
 Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2012-12-11
+Last-Update: 2013-11-07
 
 --- a/tools/build.py
 +++ b/tools/build.py
-@@ -270,8 +270,10 @@
+@@ -267,8 +267,8 @@
          content = compress_content(tools_path, open(filename).read(), 'css')
-         open(os.path.join(build_style_path, '%s.min.css' % style), 'w').write(content)
+         open(os.path.join(build_style_path, '%s.min.css' % style), 'w', encoding='utf-8').write(content)
  
--def build(buildfunc, root, languages, options):
+-def build(buildfunc, root, args):
 -    build_path = os.path.join(root, 'build')
-+def build(buildfunc, root, languages, options, build_path):
++def build(buildfunc, root, build_path, args):
 +    #build_path = os.path.join(root, 'build')
-+    print build_path
-+    print "--------"
      if os.path.exists(build_path):
          shutil.rmtree(build_path)
      os.mkdir(build_path)
-@@ -302,4 +304,7 @@
-         print 'Unknown target:', options.target
-         sys.exit(1)
+@@ -295,4 +295,5 @@
+     args = parser.parse_args()
+     buildfunc = locals()['build_%s' % args.target]
      root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
--    build(buildfunc, root, args, options)
-+    bpath = os.path.join(root, 'build_'+options.target)
-+    print bpath
-+    print "==========="
-+    build(buildfunc, root, args, options, bpath)
+-    build(buildfunc, root, args)
++    bpath = os.path.join(root, 'build_%s' % args.target)
++    build(buildfunc, root, bpath, args)

-- 
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