From: Stephen Bates Date: Thu, 24 Dec 2015 17:00:34 +0000 (-0700) Subject: Fixed changelog for Ubuntu PPAs X-Git-Tag: v0.3~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9e86ef981c51752d2d8ff5b082ee25a07660f695;p=users%2Fsagi%2Fnvme-cli.git Fixed changelog for Ubuntu PPAs The changelog generated in the nvme-cli Makefile was not generic enough for PPAs which build for multiple versions of Ubuntu. This is controlled via the NVME_DPKG_VERSION variable that can be passed into the Makefile. --- diff --git a/Makefile b/Makefile index c20a4ecd..d0c0ce44 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,8 @@ NVME-VERSION-FILE: FORCE -include NVME-VERSION-FILE override CFLAGS += -DNVME_VERSION='"$(NVME_VERSION)"' +NVME_DPKG_VERSION=1~`lsb_release -sc` + nvme: nvme.c ./linux/nvme.h argconfig.o suffix.o common.o NVME-VERSION-FILE $(CC) $(CPPFLAGS) $(CFLAGS) nvme.c $(LDFLAGS) -o $(NVME) argconfig.o suffix.o common.o @@ -103,7 +105,7 @@ dist-orig: ../nvme-cli_$(NVME_VERSION).orig.tar.gz # 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" \ + "nvme-cli ($(NVME_VERSION)-$(NVME_DPKG_VERSION)) `lsb_release -sc`; urgency=low" \ "-- $(AUTHOR) `git log -1 --format=%cD`" \ > debian/changelog @@ -113,8 +115,9 @@ deb: deb-changelog dist-orig # 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 +# > make AUTHOR='First Last ' \ +# NVME_DPKG_VERSION='0ubuntu1' deb-ppa +# > debsign .changes # > dput ppa:/ppa .changes # # where lid is your launchpad.net ID.