[Pkg-javascript-commits] [leaflet-markercluster] 45/49: Improve example files path fixing (i.e. Debian relative paths instead of CDN) to be version-agnostic.
Jonas Smedegaard
js at moszumanska.debian.org
Tue Jan 28 17:54:48 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 925717bb2a59abdd20b738cdc57b8f4f79b7315c
Author: Jonas Smedegaard <dr at jones.dk>
Date: Tue Jan 28 17:24:45 2014 +0100
Improve example files path fixing (i.e. Debian relative paths instead of CDN) to be version-agnostic.
---
debian/rules | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index b43a1d6..278c5f7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -69,8 +69,8 @@ DEB_INSTALL_CHANGELOGS_$(pkg) = CHANGELOG.md
build/$(pkg)::
jake
-# Fix paths in example files
+# 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-0.4.4,/javascript/leaflet,g' $(html-examples)
+ perl -i -pe 's,(href|src)="\Khttp://cdn.leafletjs.com/leaflet-[^/]*,/javascript/leaflet,g' $(html-examples)
perl -i -pe 's,(href|src)="\K../dist,/javascript/leaflet-markercluster,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