#!/usr/bin/python # This file is part of the LibreOffice project. # # 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/. from __future__ import print_function from optparse import OptionParser from os import path from sys import stderr try: from subprocess import check_output except ImportError: from subprocess import Popen, PIPE def check_output(*cmd): return Popen(*cmd, stdout=PIPE).communicate()[0] opts = OptionParser() opts.add_option('--repository', help='maven repository id') opts.add_option('--url', help='maven repository url') opts.add_option('-a', help='action (valid actions are: install,deploy)') opts.add_option('-v', help='libreoffice version') opts.add_option('-s', action='append', help='triplet of artifactId:type:path') args, ctx = opts.parse_args() if not args.v: print('version is empty', file=stderr) exit(1) common = [ '-DgroupId=org.libreoffice', '-Dversion=%s' % args.v, ] self = path.dirname(path.abspath(__file__)) mvn = ['mvn', '--file', path.join(self, 'fake_pom.xml')] if 'install' == args.a: cmd = mvn + ['install:install-file'] + common elif 'deploy' == args.a: cmd = mvn + [ 'deploy:deploy-file', '-DrepositoryId=%s' % args.repository, '-Durl=%s' % args.url, ] + common else: print("unknown action -a %s" % args.a, file=stderr) exit(1) for spec in args.s: artifact, packaging_type, src = spec.split(':') try: check_output(cmd + [ '-DartifactId=%s' % artifact, '-Dpackaging=%s' % packaging_type, '-Dfile=%s' % src, ]) except Exception as e: print('%s command failed: %s' % (args.a, e), file=stderr) exit(1) distro/cib/libreoffice-6-1'>distro/cib/libreoffice-6-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/o3tl
AgeCommit message (Collapse)Author
2014-10-14need explicit bool conversions hereNoel Grandin
to make some tinderboxes happy Change-Id: I136895674cec8eda874acda0bf5c7a96b3a22778
2014-10-14fixes and tests for o3tl::typed_flagsNoel Grandin
create test suite for typed_flags template. fix the operator&= and operator|= definitions Signed-off-by: Stephan Bergmann <sbergman@redhat.com> Conflicts: include/o3tl/typed_flags_set.hxx Change-Id: I1df9ae197889af98a2fd76ff2bc07756c7b14ced
2014-10-08We should know what our name isTor Lillqvist
Change-Id: I4e4d9c9aea5bb9387dbb2e69d94c48f4988c3346
2014-10-06It is "template library", not "tools"Tor Lillqvist
Change-Id: I5ca7b0a0374a9ed0090413e8c6045e5d13097301
2014-10-06Add guess at what o3tl meansTor Lillqvist
Change-Id: I69c8ce10140e92714e9d5c4b4173ade59d36be08
2014-09-24Remove o3tl/heap_ptr.hxx, use std::unique_ptr insteadStephan Bergmann
Change-Id: Iac70c9be13892a36bfb5975f62e5345b88d4f144
2014-09-15Mark o3tl::heap_ptr as SAL_WARN_UNUSEDStephan Bergmann
...to make it more straightforward to fix blunder as in a88b2d841856026ea1a0539d670e07fafd296c6e "Resolves: fdo#81039 crash on adding new macro library." Conceivably, instances of heap_ptr could legitimately be created only for ctor/ dtor effect, but then again uses of heap_ptr should arguably be replaced with std::unique_ptr anyway. Change-Id: I9c765b8d265f3c26d459ec276e335eeebc8fee91