summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--gecko/install.rdf27
-rw-r--r--gecko/install.ttl17
3 files changed, 18 insertions, 28 deletions
diff --git a/Makefile b/Makefile
index cc9aff9..2e89928 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ xpi:
cp gecko/chrome/content/simplyread.xul gecko-build/chrome/content/
cp simplyread.js gecko-build/chrome/content/
rsvg gecko/chrome/content/icon.svg gecko-build/chrome/content/icon.png
- sed "s/VERSION/$(VERSION)/g" < gecko/install.rdf > gecko-build/install.rdf
+ sed "s/VERSION/$(VERSION)/g" < gecko/install.ttl | rapper -i turtle -o rdfxml /dev/stdin 2>/dev/null > gecko-build/install.rdf
cd gecko-build; zip -r ../$(NAME)-$(VERSION).xpi . 1>/dev/null
gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig
rm -rf gecko-build
diff --git a/gecko/install.rdf b/gecko/install.rdf
deleted file mode 100644
index c0eee1f..0000000
--- a/gecko/install.rdf
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-
-<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:em="http://www.mozilla.org/2004/em-rdf#"
- xmlns:doap="http://usefulinc.com/ns/doap#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-
- <Description about="urn:mozilla:install-manifest">
- <em:id>simplyread@njw.me.uk</em:id>
- <em:version>VERSION</em:version>
- <em:type>2</em:type>
-
- <em:targetApplication>
- <Description>
- <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
- <em:minVersion>3.0</em:minVersion>
- <em:maxVersion>4.0.*</em:maxVersion>
- </Description>
- </em:targetApplication>
-
- <em:name>SimplyRead</em:name>
- <em:description>Makes webpages more readable. Press Ctrl-Alt-r or click the 'sr' icon in the status bar to toggle SimplyRead.</em:description>
- <em:creator>Nick White</em:creator>
- <em:homepageURL>http://njw.me.uk/software/simplyread/</em:homepageURL>
- <doap:license rdf:resource="http://www.gnu.org/licenses/agpl.html"/>
- </Description>
-</RDF>
diff --git a/gecko/install.ttl b/gecko/install.ttl
new file mode 100644
index 0000000..cd10e86
--- /dev/null
+++ b/gecko/install.ttl
@@ -0,0 +1,17 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
+@prefix em: <http://www.mozilla.org/2004/em-rdf#>.
+
+<urn:mozilla:install-manifest>
+ em:id "simplyread@njw.me.uk";
+ em:version "VERSION";
+ em:type "2";
+ em:targetApplication [
+ em:id "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}";
+ em:minVersion "3.0";
+ em:maxVersion "4.0.*"
+ ] ;
+ em:name "SimplyRead";
+ em:description "Makes webpages more readable. Press Ctrl-Alt-r or click the 'sr' icon in the status bar to toggle SimplyRead.";
+ em:creator "Nick White";
+ em:homepageUrl "http://njw.me.uk/software/simplyread/";
+ <http://usefulinc.com/ns/doap#license> <http://www.gnu.org/licenses/agpl.html>.