make: sed VER/REL in deb control file
authorFrantisek Hrbata <frantisek@hrbata.com>
Mon, 4 Jan 2021 17:16:41 +0000 (18:16 +0100)
committerFrantisek Hrbata <frantisek@hrbata.com>
Mon, 4 Jan 2021 18:28:32 +0000 (19:28 +0100)
Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
Makefile

index d22eda988f304f6457b63c2e70e926aae9036394..b14282f20c6520fe466d4bbb72a49722bebaede0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,7 @@ deb:
        make install DESTDIR=$(DEB_TOP_DIR)/build bindir="/usr/bin" mandir="/usr/share/man"
        $(INSTALL) -d -m 755 $(DEB_TOP_DIR)/build/DEBIAN
        $(INSTALL) -m 644 gimrr.control $(DEB_TOP_DIR)/build/DEBIAN/control
+       sed -i s'/%%VERSION%%/$(VERSION)/;s/%%RELEASE%%/$(RELEASE)/' $(DEB_TOP_DIR)/build/DEBIAN/control
        dpkg-deb --build $(DEB_TOP_DIR)/build  $(DEB_TOP_DIR)/gimrr_$(VERSION)-$(RELEASE)_all.deb
 
 doc: man html