From 86980bb46afd6576a5f6bfbdf37555fb0ce5cd08 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 31 Jul 2015 16:14:43 +0200 Subject: abuild: Make help text into a heredoc This simplifies editing. Change-Id: Iff7f0cb7e52788836adcc0813a7bfb6d69009eed Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/11091 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/abuild/abuild | 67 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 32 deletions(-) (limited to 'util') diff --git a/util/abuild/abuild b/util/abuild/abuild index ddf916a673..a14ebcadaa 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -383,38 +383,41 @@ function remove_target function myhelp { - printf "Usage: $0 [-v] [-a] [-b] [-r] [-t ] [-p ] [lbroot]\n" - printf " $0 [-V|--version]\n" - printf " $0 [-h|--help]\n\n" - - printf "Options:\n" - printf " [-v|--verbose] print more messages\n" - printf " [-q|--quiet] print fewer messages\n" - printf " [-a|--all] build previously succeeded ports as well\n" - printf " [-r|--remove] remove output dir after build\n" - printf " [-t|--target ] attempt to build target vendor/board only\n" - printf " [-p|--payloads ] use payloads in to build images\n" - printf " [-V|--version] print version number and exit\n" - printf " [-h|--help] print this help and exit\n" - printf " [-J|--junit] write JUnit formatted xml log file \n" - printf " (defaults to $XMLFILE)\n" - printf " [-T|--test] submit image(s) to automated test system\n" - printf " [-c|--cpus ] build on at the same time\n" - printf " [-s|--silent] omit compiler calls in logs\n" - printf " [-y|--ccache] use ccache\n" - printf " [-C|--config] configure-only mode\n" - printf " [-l|--loglevel ] set loglevel\n" - printf " [-u|--update] update existing image\n" - printf " [-P|--prefix ] file name prefix in CBFS\n" - printf " [-B|--blobs] Allow using binary files\n" - printf " [-z|--clean] Remove build results when finished\n" - printf " [-o|--outdir ] store build results in path\n" - printf " (defaults to $TARGET)\n" - printf " [-L|--clang] Use clang\n" - printf " [-x|--chromeos] Build with CHROMEOS enabled\n" - printf " [--scan-build] use clang's static analyzer\n" - printf " [cbroot] absolute path to coreboot sources\n" - printf " (defaults to $ROOT)\n\n" +cat << __END_OF_HELP +Usage: $0 [-v] [-a] [-b] [-r] [-t ] [-p ] [lbroot] + $0 [-V|--version] + $0 [-h|--help] + +Options:\n" + [-v|--verbose] print more messages + [-q|--quiet] print fewer messages + [-a|--all] build previously succeeded ports as well + [-r|--remove] remove output dir after build + [-t|--target ] attempt to build target vendor/board only + [-p|--payloads ] use payloads in to build images + [-V|--version] print version number and exit + [-h|--help] print this help and exit + [-J|--junit] write JUnit formatted xml log file + (defaults to $XMLFILE) + [-T|--test] submit image(s) to automated test system + [-c|--cpus ] build on at the same time + [-s|--silent] omit compiler calls in logs + [-y|--ccache] use ccache + [-C|--config] configure-only mode + [-l|--loglevel ] set loglevel + [-u|--update] update existing image + [-P|--prefix ] file name prefix in CBFS + [-B|--blobs] Allow using binary files + [-z|--clean] Remove build results when finished + [-o|--outdir ] store build results in path + (defaults to $TARGET) + [-L|--clang] Use clang + [-x|--chromeos] Build with CHROMEOS enabled + [--scan-build] use clang's static analyzer + [cbroot] absolute path to coreboot sources + (defaults to $ROOT) + +__END_OF_HELP } function myversion -- cgit v1.2.3