Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F37961180
xptgen
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
xptgen
View Options
#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
## Wrapper script for creating xpt files from idl files
# Parameters
# 1 - python directory
# 2 - additional interfaces dir
# 3 - Directory of typelib.py
# 4 - DIST directory
# 4 .. n - idl file name
mkdir -p _xpidlgen
PYTHON
=
$1
SDK_DIR
=
$2
TYPELIB_DIR
=
$3
DIST
=
$4
shift
4
XPTFILES
=
""
while
[
$#
-gt
0
]
;
do
XPIFILE
=
$1
XPTFILE
=
`
basename
$1
|
sed s/.idl$/.xpt/
`
XPTFILES
=
"
$XPTFILES
_xpidlgen/
$XPTFILE
"
${
PYTHON
}
\
${
TYPELIB_DIR
}
/typelib.py
\
-I
${
SDK_DIR
}
\
-o _xpidlgen/
${
XPTFILE
}
\
${
XPIFILE
}
if
[
$?
-ne
0
]
;
then
echo
"** Could not create xpt file for
$XPIFILE
"
exit
1
fi
# ${PYTHON} -u ${TOPDIR}/mozilla/config/pythonpath.py \
# -I${TOPDIR}/mozilla/xpcom/typelib/xpt/tools \
# ${DEPTH}/mozilla/dist/sdk/bin/header.py \
# -I${TOPDIR}/mailnews/extensions/enigmail/public \
# -I../../../../mozilla/dist/idl \
# ${SRCDIR}/${XPTBASE}.idl \
# -d .deps/${XPTBASE}.pp \
# -o ${HDRFILE}
shift
done
mkdir -p
${
DIST
}
/components
${
PYTHON
}
\
${
TYPELIB_DIR
}
/xpt.py
\
link
\
${
DIST
}
/components/enigmail.xpt
\
$XPTFILES
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Mar 19, 9:04 PM (8 h, 15 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9f/bf/fc0862ffa1a96cc2630c1c8938ab
Attached To
rENIG Enigmail
Event Timeline
Log In to Comment