forked from slopjong/OpenSpace
/
init
executable file
·39 lines (31 loc) · 1.14 KB
/
init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/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