[Pkg-javascript-commits] [leaflet-markercluster] 07/08: drop examples needing DFSG-nonfree or raw source files.

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 01462f8330f8cdfffbdca0562a1e2ee91ff30882
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sat Feb 1 15:45:56 2014 +0100

    drop examples needing DFSG-nonfree or raw source files.
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index fffc882..67488a8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,6 +51,7 @@ DEB_UPSTREAM_REPACKAGE_EXCLUDES += example/realworld.*.js
 
 js-destwebdir = /javascript/$(install-stem)
 js-destdir = /usr/share$(js-destwebdir)
+exampledir = $(cdbs_curdestdir)usr/share/doc/$(cdbs_curpkg)/examples
 
 # install files to the js-dest-dir as defined by javascript-common
 DEB_DH_INSTALL_ARGS_$(pkg) = dist/* $(js-destdir)
@@ -77,11 +78,15 @@ clean::
 	rm -f debian/stamp-jake
 	rm -f dist/*.js
 
+# drop examples needing DFSG-nonfree or raw source files
+binary-post-install/$(pkg)::
+	rm -rf $(exampledir)/old-bugs
+	rm -rf $(exampledir)/*-realworld-*
+
 # 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 -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)
+		$(exampledir)/*.html

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