From 548dbd4dd1a7c755caa30d480f2ba07cce517730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 22 Feb 2018 10:32:42 +0100 Subject: Few fixes for myrepo --- build_deploy.sh | 10 +++++++--- build_repo.sh | 4 ++-- updater-ng/Makefile | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build_deploy.sh b/build_deploy.sh index 80572d0..d179d76 100755 --- a/build_deploy.sh +++ b/build_deploy.sh @@ -2,7 +2,7 @@ cd "$(dirname "$0")" -./build_repo.sh "$@" +./build_repo.sh "$@" || exit $? deploy() { local TARGET="cynerd.cz:/var/www/myrepo" @@ -16,5 +16,9 @@ deploy() { rm $1.lua.sig } -[ ! -d repo/omnia ] || deploy omnia -[ ! -d repo/turris ] || deploy turris +if [ -d repo/omnia -a -d .omnia-sdk ]; then + deploy omnia +fi +if [ -d repo/turris -a -d .turris-sdk ]; then + deploy omnia +fi diff --git a/build_repo.sh b/build_repo.sh index 52e3bab..c4bcf42 100755 --- a/build_repo.sh +++ b/build_repo.sh @@ -106,11 +106,11 @@ fi if [ "$BOARD" = "omnia" ] || [ "$BOARD" = "all" ]; then echo -e "\e[1;34mBuilding omnia\e[0m" - (cd .omnia-sdk; make $@) + (cd .omnia-sdk; make "$@") fi if [ "$BOARD" = "turris" ] || [ "$BOARD" = "all" ]; then echo -e "\e[1;34mBuilding turris\e[0m" - (cd .turris-sdk; make $@) + (cd .turris-sdk; make "$@") fi diff --git a/updater-ng/Makefile b/updater-ng/Makefile index 984d4bf..8eea0ee 100644 --- a/updater-ng/Makefile +++ b/updater-ng/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=updater-ng PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/updater.git -PKG_SOURCE_BRANCH:=supervisor +PKG_SOURCE_BRANCH:=master PKG_MAINTAINER:=CZ.NIC HOST_BUILD_DEPENDS:=curl/host libevent2/host lua/host -- cgit v1.2.3