Lines Matching +full:- +full:- +full:destination
5 # Copyright (C) 2015-2016 Intel Corporation
7 # SPDX-License-Identifier: GPL-2.0-only
37 destination = args.dest
38 logger.debug("target_sdk = %s, update_server = %s" % (target_sdk, destination))
44 return -1
46 logger.error("%s is a directory - expected path to SDK installer file" % target_sdk)
47 return -1
49 if ':' in destination:
51 host, destdir = destination.split(':')
55 dest_sdk = os.path.join(destination, sdk_basename)
56 destdir = destination
59 logger.debug("Making sure the destination directory exists")
61 mkdir(destination)
63 cmd = "ssh %s 'mkdir -p %s'" % (host, destdir)
69 # Copying the SDK to the destination
70 logger.info("Copying the SDK to destination")
74 if (os.stat(target_sdk).st_dev == os.stat(destination).st_dev):
79 cmd = "scp %s %s" % (target_sdk, destination)
82 logger.error("scp %s %s failed" % (target_sdk, destination))
88 cmd = "sh %s -p -y -d %s" % (dest_sdk, destination)
91 logger.info('Successfully unpacked %s to %s' % (dest_sdk, destination))
94 logger.error('Failed to unpack %s to %s' % (dest_sdk, destination))
97 rm_or_not = " && rm -f %s" % dest_sdk
100 cmd = "ssh %s 'sh %s -p -y -d %s%s'" % (host, dest_sdk, destdir, rm_or_not)
110 …-e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; cp .git/hooks/post-update…
112 …-e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; cp .git/hooks/post-update…
122 …mentParser(description="OpenEmbedded extensible SDK publishing tool - writes server-side data to s…
123 parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true')
124 parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true')
125 …parser.add_argument('-k', '--keep-orig', help='When published to a remote host, the eSDK installer…
128 …parser.add_argument('dest', help='Destination to publish SDK to; can be local path or remote in th…