Skip to content
Snippets Groups Projects
Commit 6f4c9cdd authored by Tim Niemeyer's avatar Tim Niemeyer
Browse files

buildscript: buildrelease: fix parameter handling


Signed-off-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
parent 1b7babb2
No related branches found
No related tags found
No related merge requests found
......@@ -279,14 +279,23 @@ cp_firmware() {
buildrelease() {
if [ "$1" = "all" ];then
buildall
all=true
elif [ "$1" = "fast" ];then
build fast
elif [ "$1" = "all" ] && [ "$2" = "fast" ];then
buildall fast
fast=fast
fi
if [ "$2" = "all" ];then
all=true
elif [ "$2" = "fast" ];then
fast=fast
fi
if [ $all ]; then
buildall $fast
else
build
build $fast
fi
cd bin
for binary in *.bin; do
md5sum "$binary" > ./"$binary".md5
......@@ -458,7 +467,7 @@ case "$1" in
echo "Usage: $0 $1 [all] [fast]"
echo
else
buildrelease "$2"
buildrelease "$2" "$3"
fi
;;
*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment