From 2aa2b6f8ef985703d41be1c05e29adf127fecec8 Mon Sep 17 00:00:00 2001 From: Adam Stokes Date: Tue, 6 Mar 2012 12:19:48 -0500 Subject: Makefile: helper routine for `make deb` Signed-off-by: Adam Stokes --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index def04279..ead90f52 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ NAME = sos VERSION = $(shell echo `awk '/^Version:/ {print $$2}' sos.spec`) +MAJOR = $(shell echo $(VERSION) | cut -f 1 -d '.') +MINOR = $(shell echo $(VERSION) | cut -f 2 -d '.') RELEASE = $(shell echo `awk '/^Release:/ {gsub(/\%.*/,""); print $2}' sos.spec`) REPO = http://github.com/sosreport @@ -75,6 +77,10 @@ srpm: clean $(NAME)-$(VERSION).tar.gz rpm: clean $(NAME)-$(VERSION).tar.gz $(RPM_WITH_DIRS) -tb $(DIST_BUILD_DIR)/$(NAME)-$(VERSION).tar.gz +deb-unsign: clean $(NAME)-$(VERSION).tar.gz + @mv $(DIST_BUILD_DIR)/$(NAME)-$(VERSION).tar.gz ../$(NAME)-$(MAJOR)_$(MINOR).orig.tar.gz + @debuild -us -uc -i + gpgkey: @echo "Building gpg key" @test -f gpgkeys/$(GPG_TPL)support.pub && echo "GPG key already exists." || \ -- cgit