summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@futeisha.org>2013-10-11 13:26:03 -0300
committerKali Kaneko <kali@futeisha.org>2013-10-11 13:26:03 -0300
commit82be59decc9fd3a03013f397b12b52a3101a51b0 (patch)
tree89e4e05d2e82950bd4fc3bb57d7ac2ad3de77a70
parentbbe8242af641a91a0c8452c68fd5faa74ef1953d (diff)
modify makefile to use template
-rw-r--r--Changelog5
-rwxr-xr-x[-rw-r--r--]Makefile10
-rw-r--r--install.rdf.template (renamed from install.rdf)22
3 files changed, 35 insertions, 2 deletions
diff --git a/Changelog b/Changelog
new file mode 100644
index 0000000..820d3e4
--- /dev/null
+++ b/Changelog
@@ -0,0 +1,5 @@
+xul-ext-bitmask (0.0.1); upstream;
+
+ * first release.
+
+ -- drebs <drebs@leap.se> Fri, 11 Oct 2013 12:49:30 -0300
diff --git a/Makefile b/Makefile
index 7d23b14..205e59f 100644..100755
--- 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 \<em:version\> $(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,8 +56,15 @@ signed: clean
clean:
rm -f $(TARGET) build/*
+ rm -f install.rdf
upload:
scp build/* downloads.leap.se:~/public/thunderbird_extension/
+debian-package:
+ git buildpackage -us -uc
+
+install.rdf: install.rdf.template Changelog
+ sed 's/__VERSION__/$(VERSION)/' < $< > $@
+
.PHONY: all clean signed
diff --git a/install.rdf b/install.rdf.template
index 3da4a74..378b212 100644
--- a/install.rdf
+++ b/install.rdf.template
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<Description about="urn:mozilla:install-manifest">
<em:id>bitmask-thunderbird@leap.se</em:id>
<em:name>Bitmask Thunderbird Extension</em:name>
- <em:version>0.0.1</em:version>
+ <em:version>__VERSION__</em:version>
<em:creator>LEAP developers</em:creator>
<em:targetApplication>
@@ -34,6 +34,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<em:maxVersion>24.0.*</em:maxVersion>
</Description>
</em:targetApplication>
+ <!-- here is an example for future localizations ;
+ em: name, em:description, em:creator
+ should probably be overridden -->
+ <em:localized>
+ <Description>
+ <em:locale>en-US</em:locale>
+ <em:name>Bitmask</em:name>
+ <em:description>Configure Bitmask encrypted mail accounts.
+ </em:description>
+ <em:creator>The LEAP Encryption Access Project</em:creator>
+ </Description>
+ <em:localized>
+ <Description>
+ <em:locale>es-ES</em:locale>
+ <em:name>Bitmask</em:name>
+ <em:description>Configura cuentas Bitmask de correo cifrado.
+ </em:description>
+ <em:creator>El projecto LEAP, Encryption Access Project</em:creator>
+ </Description>
+ </em:localized>
</Description>
</RDF>