summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2021-11-17 15:11:28 +0100
committerLinus Färnstrand <linus@mullvad.net>2021-11-18 13:48:13 +0100
commitd42e3ad1b5a978da5a6e464e2d644f846ca2e7f3 (patch)
tree3414d69ac484deb3f7724e6065e45511de290910
parentfb7fc81fb29e21727a3f54f3ce7a6073876dba9b (diff)
downloadmullvadvpn-d42e3ad1b5a978da5a6e464e2d644f846ca2e7f3.tar.xz
mullvadvpn-d42e3ad1b5a978da5a6e464e2d644f846ca2e7f3.zip
Less verbose case branches
-rwxr-xr-xbuild_windows_modules.sh20
1 files changed, 5 insertions, 15 deletions
diff --git a/build_windows_modules.sh b/build_windows_modules.sh
index 832da7a45c..cc003f8007 100755
--- a/build_windows_modules.sh
+++ b/build_windows_modules.sh
@@ -70,12 +70,8 @@ function get_solution_output_path {
local build_mode=$3
case $build_target in
- "x86")
- echo "$solution_root/bin/Win32-$build_mode"
- ;;
- "x64")
- echo "$solution_root/bin/x64-$build_mode"
- ;;
+ "x86") echo "$solution_root/bin/Win32-$build_mode";;
+ "x64") echo "$solution_root/bin/x64-$build_mode";;
*)
echo Unkown build target $build_target
exit 1
@@ -125,15 +121,9 @@ function arch_from_build_target {
local build_target=$1
case $build_target in
- "x86")
- echo "i686"
- ;;
- "x64")
- echo "x86_64"
- ;;
- *)
- echo $build_target
- ;;
+ "x86") echo "i686";;
+ "x64") echo "x86_64";;
+ *) echo $build_target;;
esac
}