summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 7d413bdc1..73db5c752 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