[SCM] Mumudvb packaging branch, master, updated. 2a2471638bf47e1469168c0a95c50de552fa6392
Stephane Glondu
steph at glondu.net
Sun Jun 29 22:25:18 UTC 2008
The following commit has been merged in the master branch:
commit 2a2471638bf47e1469168c0a95c50de552fa6392
Author: Stephane Glondu <steph at glondu.net>
Date: Mon Jun 30 00:21:46 2008 +0200
Add get-orig-source target
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..dfe3fbe
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,12 @@
+Mumudvb packaging
+
+There is no upstream tarball. Upstream sources are available as a git
+repository, which is mirrored on the Debian packaging repository (on
+git.debian.org).
+
+To get a snapshot of the latest development version from upstream
+gitweb, run:
+
+ debian/rules get-orig-source
+
+ -- Stephane Glondu <steph at glondu.net> Mon, 30 Jun 2008 00:19:01 +0200
diff --git a/debian/rules b/debian/rules
index 6d35cb5..6bb3607 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,9 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+GITWEB_URL=http://gitweb.braice.net/gitweb?p=mumudvb.git
+GITWEB_RE=<a href="\/gitweb\?p=mumudvb\.git;a=snapshot;h=([0-9a-f]+)">
+
build:
dh $@
@@ -24,4 +27,11 @@ binary-arch: install
dh $@
binary: binary-indep binary-arch
+
+get-orig-source:
+ HEAD=$$(wget -O - "$(GITWEB_URL)" | perl -ne 'if (/$(GITWEB_RE)/) { print $$1; exit }'); \
+ VERSION=$$(perl -ne 'if (/^[^(]+\(([0-9.]+)/) { print $$1; exit }' debian/changelog); \
+ wget -O "../mumudvb_$$VERSION+git$$(date +'%Y%m%d').$$(echo $$HEAD|head -c7).orig.tar.gz" \
+ "$(GITWEB_URL);a=snapshot;h=$$HEAD"
+
.PHONY: build clean binary-indep binary-arch binary install
--
Mumudvb packaging
More information about the pkg-vdr-dvb-changes
mailing list