calendar/lightning/build/get-platform.py
author tbirdbld
Mon, 18 Nov 2013 08:14:03 -0800
changeset 13699 3663d7c37d88a54c8b02d3a91fb2b76113c59fe0
parent 12286 84ac3c71109811da751f0ef2d72108075938f094
permissions -rw-r--r--
Automated checkin: version bump for thunderbird 17.0.11esr release. DONTBUILD CLOSED TREE a=release

#!/usr/bin/python
# 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/.

# Get the target platform from a set an install.rdf file

import sys
from xml.dom.minidom import parse

doc = parse(sys.argv[1] + "/install.rdf")
elem = doc.getElementsByTagName("em:targetPlatform")[0]
print elem.firstChild.nodeValue