summaryrefslogtreecommitdiffstats
path: root/scripts/oe-publish-sdk
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-21 18:14:07 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:13 +0000
commit9926425bbd28417a9d66aa6b52d8b6835366f176 (patch)
treeb4472597f1beaa883be2fb1064ab3c9a2d13383b /scripts/oe-publish-sdk
parent905286ce466f0d63221e99f4683aaef398ddaafb (diff)
downloadpoky-9926425bbd28417a9d66aa6b52d8b6835366f176.tar.gz
oe-publish-sdk: improve help output slightly
This was just copy-and-pasted from devtool - set a reasonable description and tweak the sdk parameter help text. Also add a copyright statement and drop the opening comment describing the command-line syntax that duplicated the help output (with at least one mistake in it). (From OE-Core rev: b18f9cb62e12d068fb840fd7ab9f35b4f039e649) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-publish-sdk')
-rwxr-xr-xscripts/oe-publish-sdk26
1 files changed, 16 insertions, 10 deletions
diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index e91888f8d8..5dbd1e50f2 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -2,13 +2,20 @@
2 2
3# OpenEmbedded SDK publishing tool 3# OpenEmbedded SDK publishing tool
4 4
5# oe-publish-sdk publish <ext-sdk> <destination> 5# Copyright (C) 2015-2016 Intel Corporation
6# <ext-sdk>: extensible SDK to publish (path to the installer shell script)
7# <destination>: local or remote location which servers as an SDK update server
8# e.g.
9# oe-publish-sdk /path/to/sdk-ext.sh /mnt/poky/sdk-ext
10# oe-publish-sdk /path/to/sdk-ext.sh user@host:/opt/poky/sdk-ext
11# 6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License version 2 as
9# published by the Free Software Foundation.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with this program; if not, write to the Free Software Foundation, Inc.,
18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
12 19
13import sys 20import sys
14import os 21import os
@@ -118,13 +125,12 @@ def publish(args):
118 125
119 126
120def main(): 127def main():
121 parser = argparse_oe.ArgumentParser(description="OpenEmbedded development tool", 128 parser = argparse_oe.ArgumentParser(description="OpenEmbedded extensible SDK publishing tool - writes server-side data to support the extensible SDK update process to a specified location")
122 epilog="Use %(prog)s <subcommand> --help to get help on a specific command")
123 parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') 129 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') 130 parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true')
125 131
126 parser.add_argument('sdk', help='Extensible SDK to publish') 132 parser.add_argument('sdk', help='Extensible SDK to publish (path to .sh installer file)')
127 parser.add_argument('dest', help='Destination to publish SDK to') 133 parser.add_argument('dest', help='Destination to publish SDK to; can be local path or remote in the form of user@host:/path (in the latter case ssh/scp will be used).')
128 134
129 parser.set_defaults(func=publish) 135 parser.set_defaults(func=publish)
130 136