~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to extensions/enigmail/lang/make-lang.sh

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# make-lang.sh v1.0.10
4
 
# this script is used to create a language-specifi XPI for Enigmail
5
 
 
6
 
# if you want to debug this script, set DEBUG to something >0
7
 
DEBUG=0
8
 
 
9
 
if [ $# -ne 2 ]; then
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"
14
 
  exit 1
15
 
fi
16
 
 
17
 
ENIGLANG=$1
18
 
export ENIGLANG
19
 
 
20
 
ENIGVERSION=$2
21
 
export ENIGVERSION
22
 
 
23
 
LANGDIR=${ENIGLANG}/chrome/locale/${ENIGLANG}/enigmail
24
 
HELPDIR=${LANGDIR}/help
25
 
cwd=`pwd`
26
 
rm -rf ${LANGDIR} >/dev/null 2>&1
27
 
mkdir -p ${LANGDIR}
28
 
mkdir -p ${HELPDIR}
29
 
 
30
 
LANGHASH=`echo "${ENIGLANG}" | md5sum | awk '{ print substr($0,1,2)}'`
31
 
export LANGHASH
32
 
 
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/
36
 
EOT
37
 
 
38
 
# create install.rdf for Thunderbird 1.0 and newer
39
 
cat > ${ENIGLANG}/install.rdf <<EOT
40
 
<?xml version="1.0"?>
41
 
 
42
 
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43
 
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">
44
 
 
45
 
  <Description about="urn:mozilla:install-manifest">
46
 
    <em:id>enigmail-${ENIGLANG}@www.enigmail.net</em:id>
47
 
    <em:version>${ENIGVERSION}</em:version>
48
 
 
49
 
    <!-- Target Application (Thunderbird) this extension can install into,
50
 
        with minimum and maximum supported versions. -->
51
 
    <em:targetApplication>
52
 
      <Description>
53
 
        <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
54
 
        <em:minVersion>3.1</em:minVersion>
55
 
        <em:maxVersion>3.1.*</em:maxVersion>
56
 
      </Description>
57
 
      <Description>
58
 
        <!-- Seamonkey -->
59
 
        <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
60
 
        <em:minVersion>2.0</em:minVersion>
61
 
        <em:maxVersion>2.1.*</em:maxVersion>
62
 
      </Description>
63
 
    </em:targetApplication>
64
 
 
65
 
    <!-- Front End MetaData -->
66
 
    <em:name>Enigmail ${ENIGLANG}</em:name>
67
 
    <em:description>Enigmail ${ENIGLANG} language package</em:description>
68
 
 
69
 
    <!-- Author of the package, replace with your name if you like -->
70
 
    <em:creator>Enigmail Team</em:creator>
71
 
 
72
 
    <em:homepageURL>http://www.enigmail.net/langpack.html</em:homepageURL>
73
 
 
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>
78
 
 
79
 
  </Description>
80
 
</RDF>
81
 
EOT
82
 
 
83
 
for f in enigmail.dtd enigmail.properties am-enigprefs.properties upgrade_080.html ; do
84
 
  cp ${f} ${LANGDIR}
85
 
done
86
 
 
87
 
if [ -d help ]; then
88
 
  cd help
89
 
fi
90
 
pwd
91
 
 
92
 
for f in compose.html messenger.html rulesEditor.html editRcptRule.html initError.html ; do
93
 
  cp ${f} ${cwd}/${HELPDIR}
94
 
done
95
 
 
96
 
cd ${cwd}/${ENIGLANG}/chrome
97
 
zip -r -D enigmail-${ENIGLANG}.jar locale
98
 
cd ..
99
 
zip ../enigmail-${ENIGLANG}-${ENIGVERSION}.xpi install.rdf chrome.manifest chrome/enigmail-${ENIGLANG}.jar
100
 
cd ..
101
 
 
102
 
test $DEBUG -eq 0 && rm -rf ${ENIGLANG}