diff options
author | Adam Stokes <hackr@cypherbook.com> | 2012-03-06 12:19:48 -0500 |
---|---|---|
committer | Jesse Jaggars <jjaggars@redhat.com> | 2012-03-08 09:43:00 -0600 |
commit | 2aa2b6f8ef985703d41be1c05e29adf127fecec8 (patch) | |
tree | e8f235c44af3fc827b6b5e0071899c7d02285d2c | |
parent | d0648a054aed7256f85f873893881c62b5869b48 (diff) | |
download | sos-2aa2b6f8ef985703d41be1c05e29adf127fecec8.tar.gz |
Makefile: helper routine for `make deb`
Signed-off-by: Adam Stokes <hackr@cypherbook.com>
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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." || \ |