4
# this script is used to create a language-specifi XPI for Enigmail
6
# if you want to debug this script, set DEBUG to something >0
10
echo "Usage: $0 xx-YY version"
11
echo " where: xx-YY is the language and country code representing the"
12
echo " translated language"
13
echo " version is the Enigmail version, e.g. 0.84.1"
23
LANGDIR=${ENIGLANG}/chrome/locale/${ENIGLANG}/enigmail
24
HELPDIR=${LANGDIR}/help
26
rm -rf ${LANGDIR} >/dev/null 2>&1
30
LANGHASH=`echo "${ENIGLANG}" | md5sum | awk '{ print substr($0,1,2)}'`
33
# create chrome.manifest for Thunderbird 3.1 and newer
34
cat > ${ENIGLANG}/chrome.manifest <<EOT
35
locale enigmail ${ENIGLANG} jar:chrome/enigmail-${ENIGLANG}.jar!/locale/${ENIGLANG}/enigmail/
38
# create install.rdf for Thunderbird 1.0 and newer
39
cat > ${ENIGLANG}/install.rdf <<EOT
42
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
45
<Description about="urn:mozilla:install-manifest">
46
<em:id>enigmail-${ENIGLANG}@www.enigmail.net</em:id>
47
<em:version>${ENIGVERSION}</em:version>
49
<!-- Target Application (Thunderbird) this extension can install into,
50
with minimum and maximum supported versions. -->
51
<em:targetApplication>
53
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
54
<em:minVersion>3.1</em:minVersion>
55
<em:maxVersion>3.1.*</em:maxVersion>
59
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
60
<em:minVersion>2.0</em:minVersion>
61
<em:maxVersion>2.1.*</em:maxVersion>
63
</em:targetApplication>
65
<!-- Front End MetaData -->
66
<em:name>Enigmail ${ENIGLANG}</em:name>
67
<em:description>Enigmail ${ENIGLANG} language package</em:description>
69
<!-- Author of the package, replace with your name if you like -->
70
<em:creator>Enigmail Team</em:creator>
72
<em:homepageURL>http://www.enigmail.net/langpack.html</em:homepageURL>
74
<!-- Front End Integration Hooks (used by Extension Manager)-->
75
<em:optionsURL>chrome://enigmail/content/pref-enigmail.xul</em:optionsURL>
76
<em:aboutURL>chrome://enigmail/content/enigmailAbout.xul</em:aboutURL>
77
<em:iconURL>chrome://enigmail/skin/enigmail-about.png</em:iconURL>
83
for f in enigmail.dtd enigmail.properties am-enigprefs.properties upgrade_080.html ; do
92
for f in compose.html messenger.html rulesEditor.html editRcptRule.html initError.html ; do
93
cp ${f} ${cwd}/${HELPDIR}
96
cd ${cwd}/${ENIGLANG}/chrome
97
zip -r -D enigmail-${ENIGLANG}.jar locale
99
zip ../enigmail-${ENIGLANG}-${ENIGVERSION}.xpi install.rdf chrome.manifest chrome/enigmail-${ENIGLANG}.jar
102
test $DEBUG -eq 0 && rm -rf ${ENIGLANG}