From: Stephen Bates Date: Tue, 15 Dec 2015 16:19:35 +0000 (-0700) Subject: Added ubuntu PPA make target. X-Git-Tag: v0.3~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=690d8d62828f20649d698b50c298964a9a3be85a;p=users%2Fsagi%2Fnvme-cli.git Added ubuntu PPA make target. As we move toward deploying nvme-cli (aka nvme-utils) via the ubuntu distro we need a make target that builds the correct sources for a PPA. For now this is a presonal PPA and can be tracked at: https://launchpad.net/~sbates/+archive/ubuntu/ppa Here we refactor the changelog creation and add a new make target (deb-ppa). --- diff --git a/Makefile b/Makefile index 2f5953b8..c20a4ecd 100644 --- a/Makefile +++ b/Makefile @@ -99,14 +99,27 @@ pkg: control nvme.control.in dist-orig: ../nvme-cli_$(NVME_VERSION).orig.tar.gz -deb: dist-orig - # Create a throw-away changelog, which dpkg-buildpackage uses to - # determine the package version. +# Create a throw-away changelog, which dpkg-buildpackage uses to +# determine the package version. +deb-changelog: printf '%s\n\n * Auto-release.\n\n %s\n' \ "nvme-cli ($(NVME_VERSION)-1~`lsb_release -sc`) `lsb_release -sc`; urgency=low" \ "-- $(AUTHOR) `git log -1 --format=%cD`" \ > debian/changelog - dpkg-buildpackage -uc -us -sa # from dpkg-dev package + +deb: deb-changelog dist-orig + dpkg-buildpackage -uc -us -sa + +# After this target is build you need to do a debsign and dput on the +# ../.changes file to upload onto the relevant PPA. For example: +# +# > make AUTHOR='First Last ' deb-ppa +# > debsign /changes +# > dput ppa:/ppa .changes +# +# where lid is your launchpad.net ID. +deb-ppa: deb-changelog dist-orig + debuild -uc -us -S deb-light: $(NVME) pkg nvme.control.in dpkg-deb --build nvme-$(NVME_VERSION)