From: Frantisek Hrbata Date: Mon, 4 Jan 2021 17:16:41 +0000 (+0100) Subject: make: sed VER/REL in deb control file X-Git-Tag: v0.4~3 X-Git-Url: http://www.hrbata.com/gitweb/?a=commitdiff_plain;h=2107a1df944cadb197301db022306c750359454d;p=gimrr.git make: sed VER/REL in deb control file Signed-off-by: Frantisek Hrbata --- diff --git a/Makefile b/Makefile index d22eda9..b14282f 100644 --- 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