aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-10-21 15:43:37 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-10-30 10:33:43 +0100
commit55f294f450f8bde15176bd251a37c6a2a0b90123 (patch)
tree49c80f98c5701f7308043d520a7c7a34c15c3ff8 /Makefile
parent5633f921c92425ede58ee06f3ebbd060b00fea1d (diff)
downloadbugzilla-triage-55f294f450f8bde15176bd251a37c6a2a0b90123.tar.gz
Various cleanups.
- Also fix generation of XPI file. - Fix against missing RE keys
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index cc7d30d..118d74d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,32 @@
-VERNO=$(shell js -e 'print(JSON.parse(read("package.json")).version);')
+VERNO=$(shell rhino -e 'print(JSON.parse(readFile("package.json")).version);')
WEBDIR=/home/matej/Dokumenty/website/fedorahosted/
UPSTREAM_XPI_URL=https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-$(VERNO).xpi
UPDATE_URL=https://fedorahosted.org/released/bugzilla-triage-scripts/update.rdf
-all: install
+all: bugzilla-triage-$(VERNO).xpi update.rdf
install: local-install
- #make -C $(WEBDIR)
- #websync
+ make -C $(WEBDIR)
+ websync
-local-install: bugzilla-triage.xpi update.rdf
- rsync -av bugzilla-triage.xpi $(WEBDIR)
+local-install: bugzilla-triage-$(VERNO).xpi update.rdf
+ rsync -av bugzilla-triage*.xpi $(WEBDIR)
rsync -av jsons/Config_data.json $(WEBDIR)
-bugzilla-triage.xpi: package.json lib/*.js
+bugzilla-triage-$(VERNO).xpi: package.json lib/*.js
cfx xpi --update-link=$(UPSTREAM_XPI_URL) --update-url=$(UPDATE_URL)
tidy -i -xml -utf8 -m bugzilla-triage.update.rdf
+ unzip bugzilla-triage.xpi install.rdf
+ sed -i -e '/maxVer/s/[0-9]\+\./10./' \
+ -e '/minVer/s/[0-9]\+\./6./' install.rdf
+ sed -i -e '/maxVer/s/[0-9]\+\./10./' \
+ -e '/minVer/s/[0-9]\+\./6./' bugzilla-triage.update.rdf
+ zip -9mqT bugzilla-triage.xpi install.rdf
+ mv bugzilla-triage.xpi bugzilla-triage-$(VERNO).xpi
-update.rdf: bugzilla-triage.xpi
+update.rdf: bugzilla-triage-$(VERNO).xpi
tidy -i -xml -utf8 -m update.rdf
clean:
find . -name \*~ -print -delete
+ rm -f -v *.xpi bugzilla-triage.update.rdf