Skip to content
Snippets Groups Projects
Commit fa8c26da authored by Alexandre Detiste's avatar Alexandre Detiste
Browse files

use the standard /usr/share/dpkg/pkg-info.mk

parent 0afb459e
No related branches found
No related tags found
No related merge requests found
Pipeline #672988 skipped
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=kubernetes
DEB_PKGNAME := $(shell dpkg-parsechangelog -SSource)
DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
GIT_TAG := $(shell echo '$(DEB_UPSTREAM_VERSION)' | sed -e 's/~/_/')
......@@ -29,12 +29,12 @@ gen-orig-xz:
cd client-python ; \
git reset --hard v$(GIT_TAG) ; \
git tag $(GIT_TAG) v$(GIT_TAG) ; \
git archive --prefix=$(DEB_PKGNAME)-$(GIT_TAG)/ --format=tar $(GIT_TAG) >../$(DEB_PKGNAME)_$(GIT_TAG).orig.tar ; \
git archive --prefix=$(DEB_SOURCE)-$(GIT_TAG)/ --format=tar $(GIT_TAG) >../$(DEB_SOURCE)_$(GIT_TAG).orig.tar ; \
git submodule update --init ; \
cd kubernetes/base ; \
git archive --prefix=$(DEB_PKGNAME)-$(GIT_TAG)/kubernetes/base/ --format=tar master > ../../../base.tar ; \
git archive --prefix=$(DEB_SOURCE)-$(GIT_TAG)/kubernetes/base/ --format=tar master > ../../../base.tar ; \
cd ../../.. ; \
tar -Af $(DEB_PKGNAME)_$(GIT_TAG).orig.tar base.tar ; \
tar -Af $(DEB_SOURCE)_$(GIT_TAG).orig.tar base.tar ; \
rm -rf base.tar client-python ; \
cat $(DEB_PKGNAME)_$(GIT_TAG).orig.tar | xz >$(DEB_PKGNAME)_$(GIT_TAG).orig.tar.xz ; \
rm $(DEB_PKGNAME)_$(GIT_TAG).orig.tar
cat $(DEB_SOURCE)_$(GIT_TAG).orig.tar | xz >$(DEB_SOURCE)_$(GIT_TAG).orig.tar.xz ; \
rm $(DEB_SOURCE)_$(GIT_TAG).orig.tar
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment