From 4aacc65c8e173866c847d8aab1e20d7fb09e733c Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Thu, 8 Mar 2018 08:10:36 +0100 Subject: [PATCH] For convenience, pick a default build target if none has been set. --- l2ork_addons/tar_em_up.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index 744dc9b04..2f630e738 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -106,12 +106,22 @@ if [[ $os == "darwin" ]]; then os=osx fi +# Pick a default build target if none has been set. +if [ $core -eq 0 -a $full -eq 0 -a $deb -eq 0 -a $inno -eq 0 -a $dmg -eq 0 ] +then + if [[ $os == "osx" ]]; then + dmg=1 + elif [[ $os == "win" ]]; then + inno=2 + else + deb=2 + fi +fi + # Automagically disable Debian packaging when the Debian packaging tools are # not available. test $deb -eq 0 || test -x /usr/bin/dpkg-deb || pkg=0 -# XXXTODO: If no build target has been set, we should pick one by default. - # Fetch the nw.js binary if we haven't already. We want to fetch it even # for building with no libs, so we do it regardless of the options #echo nwjs-sdk-v0.16.0-`uname | tr '[:upper:]' '[:lower:]'` -- GitLab