~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý, Ondřej Surý, Michael Stapelberg
  • Date: 2012-06-28 12:14:15 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120628121415-w1b0076ixkarr1ml
[ Ondřej Surý ]
* Imported Upstream version 1.0.2
* Update Vcs fields to reflect new git repository location
* Kill get-orig-source, since 1.0.0, the tarballs can be downloaded
  from webpage

[ Michael Stapelberg ]
* golang-mode: use debian-pkg-add-load-path-item (Closes: #664802)
* Add manpages (Closes: #632964)
* Use updated pt.po from Pedro Ribeiro (Closes: #674958)

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
 
133
133
export GOROOT GOROOT_FINAL GOOS GOARCH GOARM GOBIN GOHOSTARCH GOHOSTOS
134
134
 
135
 
REPO = https://go.googlecode.com/hg/
136
 
GOLANG_ORIG_DIR = $(CURDIR)/../go
137
 
REV = release
138
 
get-orig-source:
139
 
        -set -e; \
140
 
        if [ ! -d $(GOLANG_ORIG_DIR) ]; then \
141
 
                hg clone -r"$(REV)" "$(REPO)" "$(GOLANG_ORIG_DIR)"; \
142
 
        fi
143
 
        cd "$(GOLANG_ORIG_DIR)"; \
144
 
        hg pull; \
145
 
        hg update "$(REV)"; \
146
 
        VERSION=$$(cat VERSION | perl -e '<> =~ /go([\d.]+)/; print "$$1"'); \
147
 
        hg archive -tfiles -r"$(REV)" -X'.hg*' -X'doc/talks/go_talk-20091030.pdf' "$(CURDIR)/../$(PACKAGE)-$$VERSION/"; \
148
 
        cd ..; \
149
 
        tar -czf "$(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz" "$(PACKAGE)-$$VERSION/"; \
150
 
        rm -rf "$(CURDIR)/../$(PACKAGE)-$$VERSION/"; \
151
 
        echo "Now run git-import-orig $(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz"
152
 
 
153
135
.PHONY: build clean install binary-arch binary-indep binary