summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2012-04-11 22:12:00 +0200
committerOndřej Surý <ondrej@sury.org>2012-04-11 22:58:04 +0200
commitf062dead1c3a26721adf8fdd0916a0324c673b83 (patch)
tree9b23b8af8b2fcc3a51063b6b0a741f3475e01493
parentedc97e2486445e0baedbccbe08ba618638c16c10 (diff)
downloadgolang-f062dead1c3a26721adf8fdd0916a0324c673b83.tar.gz
Install sources without testdata and *_test.go
-rwxr-xr-xdebian/rules10
1 files changed, 4 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index 927bb77e7..ad2bc6732 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,18 +12,14 @@ build clean install binary-arch binary-indep binary: debian/control
+dh --parallel $(opt_no_act) $@
override_dh_auto_clean:
- rm -rf bin
+ rm -rf bin pkg
rm -f debian/*+
rm -f debian/build.stamp
- : NEEDSWORK: update src/pkg/Makefile.
- #cd src/pkg && $(GOBIN)/gomake exp/ogle.clean
- rm -f src/pkg/Make.deps
rm -f test/pass.out test/run.out test/times.out
override_dh_auto_build: debian/build.stamp
override_dh_auto_test:
- :
$(no_check) || { cd $(CURDIR)/src && $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH); }
override_dh_compress:
@@ -31,7 +27,9 @@ override_dh_compress:
override_dh_install:
dh_install --fail-missing
- rm -r $(CURDIR)/debian/golang-src/usr/share/go/src/pkg/debug/
+ # Remove testdata and tests from installed src directory
+ find $(CURDIR)/debian/golang-src/usr/share/go/src -type d -name testdata -prune -execdir rm -rf {} \;
+ find $(CURDIR)/debian/golang-src/usr/share/go/src -type f -name '*_test.go' -delete
override_dh_strip:
dh_strip -X".a" -Xgoinstall -Xgodoc -Xgoyacc -Xbin/cgo -Xebnflint -Xgofix -Xgofmt -Xgovet -Xgotest --dbg-package=$(PACKAGE)-dbg