Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 40 lines (31 sloc) 1.14 KB
#!/bin/bash
PROJECTNAME=$(pwd | grep -E -o "/[^/]*$" | sed "s/\///g")
mkdir -p chrome/content
touch chrome.manifest install.rdf chrome/content/sample.xul
cat > install.rdf <<EOF
<?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#">
<Description about="urn:mozilla:install-manifest">
<em:id>$RANDOM@${PROJECTNAME}.net</em:id>
<em:version>1.0</em:version>
<!-- 2=extension, 4=theme -->
<em:type>2</em:type>
<!-- Target Application this extension can install into,
with minimum and maximum supported versions. -->
<em:targetApplication>
<Description>
<!-- firefox -->
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>10.0.*</em:maxVersion>
</Description>
</em:targetApplication>
<!-- Front End MetaData -->
<em:name>OpenSpace</em:name>
<em:description>Shows if the hackerspace is open</em:description>
<em:creator>Slopjong</em:creator>
<em:homepageURL>http://slopjong.de/</em:homepageURL>
</Description>
</RDF>
EOF