aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-09-07 21:09:25 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-10-30 11:16:11 +0100
commit2eb7a75b8a7a5edbd350815bef678b1f67d2c7c1 (patch)
tree12fb32ce78de8512ea289f548b0caaa7830e0729
parent60f8e79f8e10788e63fca9dd36bf4e5234ec7491 (diff)
downloadbugzilla-triage-2eb7a75b8a7a5edbd350815bef678b1f67d2c7c1.tar.gz
Generate AMO copmatible .xpi
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 118d74d..a8b7dc4 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,16 @@ install: local-install
make -C $(WEBDIR)
websync
-local-install: bugzilla-triage-$(VERNO).xpi update.rdf
- rsync -av bugzilla-triage*.xpi $(WEBDIR)
+amo: bugzilla-triage.xpi
+ mv bugzilla-triage.xpi bugzilla-triage.zip
+ unzip -qp bugzilla-triage.zip install.rdf \
+ |grep -v 'em:updateURL' >temp-install.rdf
+ mv -f temp-install.rdf install.rdf
+ zip -9qmT bugzilla-triage.zip install.rdf
+ mv -f bugzilla-triage.zip bugzilla-triage.xpi
+
+local-install: bugzilla-triage.xpi update.rdf
+ rsync -av bugzilla-triage.xpi $(WEBDIR)
rsync -av jsons/Config_data.json $(WEBDIR)
bugzilla-triage-$(VERNO).xpi: package.json lib/*.js