diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-08-24 13:57:33 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-08-24 15:35:52 +0200 |
commit | d0da9f7f1e1297d64ec12882d16594497d7b2ac8 (patch) | |
tree | 0a436d02680bd99861a55c95b942d3ff11e05087 | |
parent | 90339ed01ae36a6521fcaa8ef1518a73b02dc90e (diff) | |
download | golang-d0da9f7f1e1297d64ec12882d16594497d7b2ac8.tar.gz |
Save upstream VERSION to the archive
-rwxr-xr-x | debian/rules | 7 |
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 |