[sagemath] 41/44: Add get-orig-source rules target.

Tobias Hansen thansen at moszumanska.debian.org
Tue Feb 3 21:20:59 UTC 2015


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

thansen pushed a commit to branch master
in repository sagemath.

commit b096825f9a7224c25c3a59d6affc99fbabe4b502
Author: Tobias Hansen <tobias.han at gmx.de>
Date:   Tue Feb 3 21:29:59 2015 +0100

    Add get-orig-source rules target.
---
 debian/changelog     | 2 +-
 debian/rules         | 5 +++++
 debian/source/format | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8c17bcc..dd99a8b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-sagemath (6.5.rc0-1) UNRELEASED; urgency=low
+sagemath (6.5~rc0-1) UNRELEASED; urgency=low
 
   * Initial package.
 
diff --git a/debian/rules b/debian/rules
index 645bedb..4291f1c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
 
+VERSION := $(shell dpkg-parsechangelog | grep -x "Version:.*" | sed 's at Version: \(.\+\)-.\+@\1@')
+
 %:
 	dh $@
 
 override_dh_auto_build:
 
 override_dh_auto_install:
+
+get-orig-source:
+	cd sage && git archive --prefix=sagemath_$(VERSION)/sage/ --format=tar HEAD | xz -zf > ../../sagemath_$(VERSION).orig.tar.xz
diff --git a/debian/source/format b/debian/source/format
index 89ae9db..163aaf8 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-3.0 (native)
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list