Skip to content

Commit

Permalink
abuild: Make help text into a heredoc
Browse files Browse the repository at this point in the history
This simplifies editing.

Change-Id: Iff7f0cb7e52788836adcc0813a7bfb6d69009eed
Signed-off-by: Patrick Georgi <[email protected]>
Reviewed-on: http://review.coreboot.org/11091
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <[email protected]>
  • Loading branch information
pgeorgi committed Aug 8, 2015
1 parent 8a83b8b commit 86980bb
Showing 1 changed file with 35 additions and 32 deletions.
67 changes: 35 additions & 32 deletions util/abuild/abuild
Original file line number Diff line number Diff line change
Expand Up @@ -383,38 +383,41 @@ function remove_target

function myhelp
{
printf "Usage: $0 [-v] [-a] [-b] [-r] [-t <vendor/board>] [-p <dir>] [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 <vendor/board>] attempt to build target vendor/board only\n"
printf " [-p|--payloads <dir>] use payloads in <dir> 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 <numcpus>] build on <numcpus> 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 <num>] set loglevel\n"
printf " [-u|--update] update existing image\n"
printf " [-P|--prefix <name>] 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 <path>] 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 <vendor/board>] [-p <dir>] [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 <vendor/board>] attempt to build target vendor/board only
[-p|--payloads <dir>] use payloads in <dir> 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 <numcpus>] build on <numcpus> at the same time
[-s|--silent] omit compiler calls in logs
[-y|--ccache] use ccache
[-C|--config] configure-only mode
[-l|--loglevel <num>] set loglevel
[-u|--update] update existing image
[-P|--prefix <name>] file name prefix in CBFS
[-B|--blobs] Allow using binary files
[-z|--clean] Remove build results when finished
[-o|--outdir <path>] 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
Expand Down

0 comments on commit 86980bb

Please sign in to comment.