aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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." || \