~ubuntu-branches/ubuntu/trusty/enigmail/trusty

« back to all changes in this revision

Viewing changes to toolkit/xre/make-platformini.py

  • 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-mpeaob8bhtk42aun
Tags: 2:1.5.2-0ubuntu1
* 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
 
#!/usr/bin/python
2
 
# This Source Code Form is subject to the terms of the Mozilla Public
3
 
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
 
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
 
 
6
 
 
7
 
from optparse import OptionParser
8
 
from datetime import datetime
9
 
import sys
10
 
import os
11
 
 
12
 
o = OptionParser()
13
 
o.add_option("--buildid", dest="buildid")
14
 
o.add_option("--print-buildid", action="store_true", dest="print_buildid")
15
 
o.add_option("--sourcestamp", dest="sourcestamp")
16
 
o.add_option("--sourcerepo", dest="sourcerepo")
17
 
 
18
 
(options, args) = o.parse_args()
19
 
 
20
 
if options.print_buildid:
21
 
    print datetime.now().strftime('%Y%m%d%H%M%S')
22
 
    sys.exit(0)
23
 
 
24
 
if not options.buildid:
25
 
    print >>sys.stderr, "--buildid is required"
26
 
    sys.exit(1)
27
 
 
28
 
(milestoneFile,) = args
29
 
for line in open(milestoneFile, 'r'):
30
 
    if line[0] == '#':
31
 
        continue
32
 
 
33
 
    line = line.strip()
34
 
    if line == '':
35
 
        continue
36
 
 
37
 
    milestone = line
38
 
 
39
 
print """[Build]
40
 
BuildID=%s
41
 
Milestone=%s""" % (options.buildid, milestone)
42
 
if options.sourcestamp:
43
 
    print "SourceStamp=%s" % options.sourcestamp
44
 
if options.sourcerepo:
45
 
    print "SourceRepository=%s" % options.sourcerepo