aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Stokes <hackr@cypherbook.com>2012-03-06 12:19:48 -0500
committerJesse Jaggars <jjaggars@redhat.com>2012-03-08 09:43:00 -0600
commit2aa2b6f8ef985703d41be1c05e29adf127fecec8 (patch)
treee8f235c44af3fc827b6b5e0071899c7d02285d2c /Makefile
parentd0648a054aed7256f85f873893881c62b5869b48 (diff)
downloadsos-2aa2b6f8ef985703d41be1c05e29adf127fecec8.tar.gz
Makefile: helper routine for `make deb`
Signed-off-by: Adam Stokes <hackr@cypherbook.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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." || \