From c66cae355c80acd0f5f3fbdbf3d440d0c283536c Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 11 Oct 2013 13:26:03 -0300 Subject: modify makefile to use template --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index 19eef87..9e2a530 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ RSA_FILE := META-INF/zigbert.rsa # the following variables are updated automatically COMMIT := $(shell git --no-pager log -1 --format=format:%h) -VERSION := $(shell grep \ $(PREFIX)/install.rdf | sed -e s/[^\>]\\\+\>// -e s/\<[^\>]\\\+\>//) +VERSION = $(shell head -n1 Changelog | sed -e 's/^.*(//' -e 's/).*$$//') PKGNAME := $(EXTNAME)-$(VERSION)-$(COMMIT).xpi TARGET := $(CURDIR)/build/$(PKGNAME) TEMPDIR := $(shell mktemp -d -u) @@ -33,6 +33,7 @@ endif endif endif + # main rule all: clean $(TARGET) @@ -55,9 +56,16 @@ signed: clean clean: rm -f $(TARGET) build/* + rm -f install.rdf upload: ssh downloads.leap.se rm -rf /var/www/leap-downloads/public/thunderbird_extension/* scp build/* downloads.leap.se:/var/www/leap-downloads/public/thunderbird_extension/ +debian-package: + git buildpackage -us -uc + +install.rdf: install.rdf.template Changelog + sed 's/__VERSION__/$(VERSION)/' < $< > $@ + .PHONY: all clean signed -- cgit v1.2.3