infra/*.sh: apply shfmt
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
shfmt -w -i 2 -bn -ci -sr infra/*.sh
Change-Id: I970290b6f68735cf17643b52a5c29f54d3d34733
diff --git a/infra/compile.sh b/infra/compile.sh
index 45e0d91..493fa48 100755
--- a/infra/compile.sh
+++ b/infra/compile.sh
@@ -37,7 +37,7 @@
source "${LIBWEBM_ROOT}/infra/common.sh"
usage() {
- cat<< EOF
+ cat << EOF
Usage: compile.sh BUILD_TYPE TARGET
Options:
BUILD_TYPE supported build type (static, static-debug)
@@ -66,8 +66,14 @@
exit 1
fi
-BUILD_TYPE=${1:?"Build type not defined.$(echo; usage)"}
-TARGET=${2:?"Target not defined.$(echo; usage)"}
+BUILD_TYPE=${1:?"Build type not defined.$(
+ echo
+ usage
+)"}
+TARGET=${2:?"Target not defined.$(
+ echo
+ usage
+)"}
BUILD_DIR="${WORKSPACE}/build-${BUILD_TYPE}"
trap cleanup EXIT
diff --git a/infra/compile_android.sh b/infra/compile_android.sh
index 195f296..f96f111 100755
--- a/infra/compile_android.sh
+++ b/infra/compile_android.sh
@@ -37,7 +37,7 @@
source "${LIBWEBM_ROOT}/infra/common.sh"
usage() {
- cat<< EOF
+ cat << EOF
Usage: $(basename "$0") APP_OPTIM APP_ABI
Options:
APP_OPTIM supported build type (release, debug)
@@ -56,8 +56,14 @@
exit 1
fi
-APP_OPTIM=${1:?"not defined.$(echo; usage)"}
-APP_ABI=${2:?"Application Binary Interface not defined.$(echo; usage)"}
+APP_OPTIM=${1:?"not defined.$(
+ echo
+ usage
+)"}
+APP_ABI=${2:?"Application Binary Interface not defined.$(
+ echo
+ usage
+)"}
BUILD_DIR="${WORKSPACE}/build-${APP_OPTIM}"
if [[ ! -x "$(command -v ndk-build)" ]]; then