aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 1a23f0b..b383e1e 100755
--- a/build.sh
+++ b/build.sh
@@ -1,8 +1,10 @@
#!/bin/sh -e
+[ $# -ne 1 ] && echo "usage: build.sh debug|release" && exit 1
+
script_dir=$(dirname "$0")
cd "$script_dir"
-sibs build --release video_player
-sibs build --release
+sibs build --"$1" video_player
+sibs build --"$1"
echo "Successfully built the video player and QuickMedia"