[Pkg-javascript-commits] [leaflet-markercluster] 05/08: Tidy rules file: merge perl calls.

Jonas Smedegaard js at moszumanska.debian.org
Sat Feb 1 14:56:36 UTC 2014


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

js pushed a commit to branch master
in repository leaflet-markercluster.

commit fd48e1770fce44c3e046767e208d18d7b6064456
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sat Feb 1 14:47:03 2014 +0100

    Tidy rules file: merge perl calls.
---
 debian/rules | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 22dafc0..3b719ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -77,5 +77,8 @@ clean::
 # use common Debian relative paths (not CDN or source-relative)
 html-examples = $(cdbs_curdestdir)usr/share/doc/$(cdbs_curpkg)/examples/*.html
 binary-fixup/$(pkg)::
-	perl -i -pe 's,(href|src)="\Khttp://cdn.leafletjs.com/leaflet-[^/]*,$(js-destwebdir),g' $(html-examples)
-	perl -i -pe 's,(href|src)="\K../dist,$(js-destwebdir),g' $(html-examples)
+	perl -pi \
+		-e '$$cdn=qr!http://cdn.leafletjs.com/leaflet-[^/]*!;' \
+		-e '$$src=qr!\.\./dist!;' \
+		-e 's,(href|src)="\K($$cdn|$$src),$(js-destwebdir),g' \
+		$(html-examples)

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



More information about the Pkg-javascript-commits mailing list