[SCM] Packaging for Google Go branch, debian-sid, updated. debian/1%58.1-2-7-ge0fc37f

Ondřej Surý ondrej at sury.org
Wed Aug 24 13:36:30 UTC 2011


The following commit has been merged in the debian-sid branch:
commit d0da9f7f1e1297d64ec12882d16594497d7b2ac8
Author: Ondřej Surý <ondrej at sury.org>
Date:   Wed Aug 24 13:57:33 2011 +0200

    Save upstream VERSION to the archive

diff --git a/debian/rules b/debian/rules
index 7d413bd..73db5c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -133,7 +133,12 @@ get-orig-source:
 	hg pull; \
 	hg update "$(REV)"; \
 	VERSION=$$(hg identify -t -r"$(REV)" | perl -e '<> =~ /$(REV)\.r([\d.]+)/; print "$$1"'); \
-	hg archive -ttgz -p"$(PACKAGE)-$$VERSION/" -r"$(REV)" -X'.hg*' -X'doc/talks/go_talk-20091030.pdf' "$(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz"; \
+	hg archive -tfiles -r"$(REV)" -X'.hg*' -X'doc/talks/go_talk-20091030.pdf' "$(CURDIR)/../$(PACKAGE)_$$VERSION/"; \
+	src/version.bash -save; \
+	cp VERSION "$(CURDIR)/../$(PACKAGE)-$$VERSION/"; \
+	cd ..; \
+	tar -czf "$(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz" "$(PACKAGE)-$$VERSION/"; \
+	rm -rf "$(CURDIR)/../$(PACKAGE)-$$VERSION/"; \
 	echo "Now run git-import-orig $(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz"
 
 .PHONY: build clean install binary-arch binary-indep binary

-- 
Packaging for Google Go



More information about the Pkg-google-commits mailing list