[SCM] Packaging for Google Go branch, weekly-debian-sid, updated. debian-weekly/2011.06.09-2-34-g606569c

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


The following commit has been merged in the weekly-debian-sid branch:
commit 9c8188dfc8eaeb4d1ba83f2cb571895d3a31beb6
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 87e4cc6..e7271f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -132,7 +132,13 @@ get-orig-source:
 	hg pull; \
 	hg update "weekly"; \
 	VERSION=$$(hg identify -t -r"weekly" | perl -e '<> =~ /weekly\.(\d+)-(\d+)-(\d+)([\.\d]*)/; print "$$1.$$2.$$3$$4"'); \
-	hg archive -ttgz -p"$(PACKAGE)-$$VERSION/" -r"weekly" -X'.hg*' -X'doc/talks/go_talk-20091030.pdf' "$(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz"; \
+	rm -rf "$(CURDIR)/../$(PACKAGE)-$$VERSION/"; \
+	hg archive -tfiles -r"weekly" -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