[Pkg-javascript-commits] [mathjax] 01/01: Escape the build directory in the replacement regex in packMJfile.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Fri Dec 29 07:55:46 UTC 2017


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

mitya57 pushed a commit to branch master
in repository mathjax.

commit 0ea0a326b30ccf53afb48d250bcb8e260e6b7954
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Fri Dec 29 01:28:41 2017 +0300

    Escape the build directory in the replacement regex in packMJfile.
---
 debian/changelog         | 1 +
 debian/packer/packMJfile | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2eb2fba..091c181 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ mathjax (2.7.2+dfsg-1) UNRELEASED; urgency=medium
   * Change section of libjs-mathjax to javascript.
   * Add a patch to fix invalid usage of ‘let’ as variable name in JS
     (variable_names.diff).
+  * Escape the build directory in the replacement regex in packMJfile.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Thu, 29 Jun 2017 17:03:24 +0300
 
diff --git a/debian/packer/packMJfile b/debian/packer/packMJfile
index 4697a00..f8200a7 100755
--- a/debian/packer/packMJfile
+++ b/debian/packer/packMJfile
@@ -44,7 +44,7 @@ close(MJX);
 $lines = join("", at lines);
 
 $dstname = $dst; $dstname =~ s!.*/(dpvc-)?MathJax!/MathJax!;
-$cwd = getcwd; $dstname =~ s/$cwd/\/MathJax/;
+$cwd = getcwd; $dstname =~ s/\Q$cwd\E/\/MathJax/;
 $lines =~ s/%%%NAME%%%/$dstname/;
 $lines =~ s/%%%DATA%%%/$compressed/;
 

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



More information about the Pkg-javascript-commits mailing list