diff --git a/.gitignore b/.gitignore index d12c03ec..bf1f70e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /Makefile.in .DS_Store -*.xpi \ No newline at end of file +*-fx.xpi +install.rdf diff --git a/Makefile b/Makefile index 95d18fea..53b92cae 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,26 @@ all: Makefile.in -include Makefile.in -RELEASE:=$(shell grep em:version install.rdf | head -n 1 | sed -e 's/ *//' -e 's/<\/em:version>//') +RELEASE:=$(shell xsltproc version.xsl install.xml) -zotfile.xpi: FORCE +zotfile-fx.xpi: FORCE rm -rf $@ + xsltproc removeupdateurl.xsl install.xml > install.rdf zip -r $@ chrome chrome.manifest defaults install.rdf -x \*.DS_Store -zotfile-%-fx.xpi: zotfile.xpi +zotfile-github.xpi: FORCE + rm -rf $@ + cp install.xml install.rdf + xsltproc -stringparam release ${RELEASE} update.xsl install.xml > update.rdf + zip -r $@ chrome chrome.manifest defaults install.rdf + +zotfile-%-fx.xpi: zotfile-fx.xpi + mv $< $@ + +zotfile-%-github.xpi: zotfile-github.xpi mv $< $@ -Makefile.in: install.rdf - echo "all: zotfile-${RELEASE}-fx.xpi" > Makefile.in +Makefile.in: install.xml + echo "all: zotfile-${RELEASE}-fx.xpi zotfile-${RELEASE}-github.xpi" > Makefile.in FORCE: diff --git a/install.rdf b/install.xml similarity index 95% rename from install.rdf rename to install.xml index 645e5604..57dbc3ab 100644 --- a/install.rdf +++ b/install.xml @@ -63,5 +63,6 @@ Joscha Legewie http://www.zotfile.com chrome://zotfile/content/options.xul + https://raw.githubusercontent.com/jlegewie/zotfile/master/update.rdf diff --git a/removeupdateurl.xsl b/removeupdateurl.xsl new file mode 100644 index 00000000..95c93181 --- /dev/null +++ b/removeupdateurl.xsl @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/update.rdf b/update.rdf new file mode 100644 index 00000000..5299cceb --- /dev/null +++ b/update.rdf @@ -0,0 +1,32 @@ + + + + + + + + 3.3 + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + 18.* + 28.* + https://raw.githubusercontent.com/jlegewie/zotfile/master/zotfile-3.3-github.xpi + https://github.com/jlegewie/zotfile + + + + + zotero@chnm.gmu.edu + 3.0b1 + 4.* + https://raw.githubusercontent.com/jlegewie/zotfile/master/zotfile-3.3-github.xpi + https://github.com/jlegewie/zotfile + + + + + + + + diff --git a/update.xsl b/update.xsl new file mode 100644 index 00000000..816aebf7 --- /dev/null +++ b/update.xsl @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + https://raw.githubusercontent.com/jlegewie/zotfile/master/zotfile--github.xpi + + https://github.com/jlegewie/zotfile + + + + + + + + + + + + diff --git a/version.xsl b/version.xsl new file mode 100644 index 00000000..9718facd --- /dev/null +++ b/version.xsl @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file