abuild: Make help text into a heredoc
This simplifies editing. Change-Id: Iff7f0cb7e52788836adcc0813a7bfb6d69009eed Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/11091 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -383,38 +383,41 @@ function remove_target
|
|||||||
|
|
||||||
function myhelp
|
function myhelp
|
||||||
{
|
{
|
||||||
printf "Usage: $0 [-v] [-a] [-b] [-r] [-t <vendor/board>] [-p <dir>] [lbroot]\n"
|
cat << __END_OF_HELP
|
||||||
printf " $0 [-V|--version]\n"
|
Usage: $0 [-v] [-a] [-b] [-r] [-t <vendor/board>] [-p <dir>] [lbroot]
|
||||||
printf " $0 [-h|--help]\n\n"
|
$0 [-V|--version]
|
||||||
|
$0 [-h|--help]
|
||||||
|
|
||||||
printf "Options:\n"
|
Options:\n"
|
||||||
printf " [-v|--verbose] print more messages\n"
|
[-v|--verbose] print more messages
|
||||||
printf " [-q|--quiet] print fewer messages\n"
|
[-q|--quiet] print fewer messages
|
||||||
printf " [-a|--all] build previously succeeded ports as well\n"
|
[-a|--all] build previously succeeded ports as well
|
||||||
printf " [-r|--remove] remove output dir after build\n"
|
[-r|--remove] remove output dir after build
|
||||||
printf " [-t|--target <vendor/board>] attempt to build target vendor/board only\n"
|
[-t|--target <vendor/board>] attempt to build target vendor/board only
|
||||||
printf " [-p|--payloads <dir>] use payloads in <dir> to build images\n"
|
[-p|--payloads <dir>] use payloads in <dir> to build images
|
||||||
printf " [-V|--version] print version number and exit\n"
|
[-V|--version] print version number and exit
|
||||||
printf " [-h|--help] print this help and exit\n"
|
[-h|--help] print this help and exit
|
||||||
printf " [-J|--junit] write JUnit formatted xml log file \n"
|
[-J|--junit] write JUnit formatted xml log file
|
||||||
printf " (defaults to $XMLFILE)\n"
|
(defaults to $XMLFILE)
|
||||||
printf " [-T|--test] submit image(s) to automated test system\n"
|
[-T|--test] submit image(s) to automated test system
|
||||||
printf " [-c|--cpus <numcpus>] build on <numcpus> at the same time\n"
|
[-c|--cpus <numcpus>] build on <numcpus> at the same time
|
||||||
printf " [-s|--silent] omit compiler calls in logs\n"
|
[-s|--silent] omit compiler calls in logs
|
||||||
printf " [-y|--ccache] use ccache\n"
|
[-y|--ccache] use ccache
|
||||||
printf " [-C|--config] configure-only mode\n"
|
[-C|--config] configure-only mode
|
||||||
printf " [-l|--loglevel <num>] set loglevel\n"
|
[-l|--loglevel <num>] set loglevel
|
||||||
printf " [-u|--update] update existing image\n"
|
[-u|--update] update existing image
|
||||||
printf " [-P|--prefix <name>] file name prefix in CBFS\n"
|
[-P|--prefix <name>] file name prefix in CBFS
|
||||||
printf " [-B|--blobs] Allow using binary files\n"
|
[-B|--blobs] Allow using binary files
|
||||||
printf " [-z|--clean] Remove build results when finished\n"
|
[-z|--clean] Remove build results when finished
|
||||||
printf " [-o|--outdir <path>] store build results in path\n"
|
[-o|--outdir <path>] store build results in path
|
||||||
printf " (defaults to $TARGET)\n"
|
(defaults to $TARGET)
|
||||||
printf " [-L|--clang] Use clang\n"
|
[-L|--clang] Use clang
|
||||||
printf " [-x|--chromeos] Build with CHROMEOS enabled\n"
|
[-x|--chromeos] Build with CHROMEOS enabled
|
||||||
printf " [--scan-build] use clang's static analyzer\n"
|
[--scan-build] use clang's static analyzer
|
||||||
printf " [cbroot] absolute path to coreboot sources\n"
|
[cbroot] absolute path to coreboot sources
|
||||||
printf " (defaults to $ROOT)\n\n"
|
(defaults to $ROOT)
|
||||||
|
|
||||||
|
__END_OF_HELP
|
||||||
}
|
}
|
||||||
|
|
||||||
function myversion
|
function myversion
|
||||||
|
Reference in New Issue
Block a user