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

« back to all changes in this revision

Viewing changes to mailnews/extensions/enigmail/util/xptgen

  • 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
# This Source Code Form is subject to the terms of the Mozilla Public
 
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
6
 
 
7
 
 
8
## Wrapper script for creating xpt files from idl files
 
9
 
 
10
# Parameters
 
11
# 1 - mozilla top directory
 
12
# 2 - source dir
 
13
# 3 - depth (relative path to top level dir)
 
14
# 4 .. n - idl file name
 
15
 
 
16
 
 
17
mkdir -p .deps _xpidlgen
 
18
 
 
19
PYTHON=$1
 
20
TOPDIR=$2
 
21
SRCDIR=$3
 
22
DEPTH=$4
 
23
 
 
24
shift 4
 
25
 
 
26
while [ $# -gt 0 ]; do
 
27
  XPTFILE=$1
 
28
  XPTBASE=`basename $1 | sed s/.xpt$//`
 
29
  HDRFILE=`echo $1 | sed s/.xpt$/.h/`
 
30
 
 
31
  ${PYTHON} -u ${TOPDIR}/mozilla/config/pythonpath.py \
 
32
    -I${TOPDIR}/mozilla/xpcom/typelib/xpt/tools \
 
33
    ${DEPTH}/mozilla/dist/sdk/bin/typelib.py \
 
34
    -I${TOPDIR}/mailnews/extensions/enigmail/public \
 
35
    -I../../../../mozilla/dist/idl \
 
36
    ${SRCDIR}/${XPTBASE}.idl \
 
37
    -d .deps/${XPTBASE}.pp \
 
38
    -o ${XPTFILE}
 
39
 
 
40
  ${PYTHON} -u ${TOPDIR}/mozilla/config/pythonpath.py \
 
41
    -I${TOPDIR}/mozilla/xpcom/typelib/xpt/tools \
 
42
    ${DEPTH}/mozilla/dist/sdk/bin/header.py \
 
43
    -I${TOPDIR}/mailnews/extensions/enigmail/public \
 
44
    -I../../../../mozilla/dist/idl \
 
45
    ${SRCDIR}/${XPTBASE}.idl \
 
46
    -d .deps/${XPTBASE}.pp \
 
47
    -o ${HDRFILE}
 
48
 
 
49
  shift
 
50
done