util/lint: Add support for FreeBSD
Change-Id: I9f7ceb2233d5d68b6e6f57faeaa0253390e0e003 Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86768 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
This commit is contained in:
parent
8fb1f6513e
commit
30c4e79294
1 changed files with 6 additions and 5 deletions
|
|
@ -30,11 +30,12 @@ junit_write () {
|
|||
}
|
||||
|
||||
# Look if we have getopt. If not, build it.
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
GETOPT="getopt hIJ"
|
||||
else
|
||||
GETOPT="getopt -l help,junit,invert -o hIJ"
|
||||
fi
|
||||
case "$(uname)" in
|
||||
Darwin|FreeBSD)
|
||||
GETOPT="getopt hIJ" ;;
|
||||
*)
|
||||
GETOPT="getopt -l help,junit,invert -o hIJ" ;;
|
||||
esac
|
||||
|
||||
if ! cmd_args="$($GETOPT -- "$@")"; then
|
||||
usage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue