aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRyan S. Arnold <ryan.arnold@linaro.org>2016-07-01 13:12:47 -0500
committerRyan Arnold <ryan.arnold@linaro.org>2016-07-01 18:33:00 +0000
commit43c2210253a47e0eeb3d883924d3aaff132126ce (patch)
tree0d6f30cf3705e8eb54b1029b22a4959954b76ce6 /scripts
parentb81759d939e93f85d2d631f39fd04e97cb2049f9 (diff)
Add usage() output for MakeRelease.job.
Change-Id: Ibcd0f74e624e749b3aac3cc6deaa9573449f75cb
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/MakeRelease.job25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/MakeRelease.job b/scripts/MakeRelease.job
index 63c808fc..b0ba2bff 100755
--- a/scripts/MakeRelease.job
+++ b/scripts/MakeRelease.job
@@ -1,5 +1,30 @@
#!/bin/bash
+usage() {
+ echo "MakeRelease: [options]"
+ echo " --workspace - Specify an alternate workspace"
+ echo " --tarbin - Build a binary tarball"
+ echo " --target XXX - Specify the target triplet to build"
+ echo " --date XXX - Specify a date, which becmes part pf the release name"
+ echo " --ref XXX - Specify a Git reference directory"
+ echo " --toolchainconfig XXX - [Optional] Explicitly define which toolchain"
+ echo " to build, e.g., 'default', 'gcc5', 'gcc6'. "
+ echo " If not specified, 'default' is the default"
+ echo " --fileserver XXX - Specify the fileserver for tarballs"
+ echo " --manifest XXX - Optionally use a manifest as input"
+ echo " --glibc XXX - Specify Glibc version to build"
+ echo " --gcc XXX - Specify GCC version to build"
+ echo " --binutils XXX - Specify Binutils version to build"
+ echo " --help"
+ exit
+}
+
+# Jenkins may run only using environment variables, a user needs to always
+# supply some command line arguments.
+if test $# -eq 0 -a x"${JENKINS_SERVER_COOKIE}" = x; then
+ usage
+fi
+
# Set defaults
if test x"${debug}" = x"true"; then
export CONFIG_SHELL="/bin/bash -x"