diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-10-19 17:25:30 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-10-19 17:25:30 +0300 |
commit | ad9b4f0587a52b1973b77a51183d8c1f2d4b26ac (patch) | |
tree | f29532bc9fd91e1b88db020f5cc83bf55a3e267a /uts | |
parent | 385c0c6b58cc9e4db434ea5e3017e51acebdd73b (diff) | |
download | illumos-packaging-ad9b4f0587a52b1973b77a51183d8c1f2d4b26ac.tar.gz |
Added test-orig
Diffstat (limited to 'uts')
-rwxr-xr-x | uts/debian/rules | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/uts/debian/rules b/uts/debian/rules index 6c67097..9bfcfaf 100755 --- a/uts/debian/rules +++ b/uts/debian/rules @@ -1,6 +1,8 @@ #!/usr/bin/make -f include /usr/share/dpkg/architecture.mk +export DH_VERBOSE = 1 +VERSION := $(shell dpkg-parsechangelog | perl -ne '/Version:\s+(.+)-[^-]+/ && print $$1') %: dh $@ @@ -13,8 +15,8 @@ ILLUMOS_GATE = illumos-gate $(ILLUMOS_GATE): dh_illumos_gate --checkout --destdir=$(ILLUMOS_GATE) -.PHONY: create-orig -create-orig: +.PHONY: create-orig test-orig +create-orig: $(ILLUMOS_GATE) dh_illumos_gate --create-orig --build \ -X /doc/ \ $(ILLUMOS_GATE)/usr/src/uts \ @@ -24,6 +26,14 @@ create-orig: $(ILLUMOS_GATE)/usr/src/lib/gss_mechs/mech_krb5/include/autoconf.h \ $(ILLUMOS_GATE)/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/int-proto.h +test-orig: create-orig + ./debian/rules clean + rm -rf usr .pc + tar xf ../uts_$(VERSION).orig.tar.xz --strip=1 + quilt push -a + ./debian/rules build + fakeroot ./debian/rules binary + ifeq (illumos-amd64,$(DEB_HOST_ARCH)) libarch := amd64 kernelarch := amd64 |