From 77965c614a0f794c711b7b9ed7d057ed06d95aa6 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 26 Oct 2018 21:54:34 +0200 Subject: [PATCH] Split build script --- zz-build/build-all.sh | 15 --------------- zz-build/install-toolchain.sh | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100755 zz-build/install-toolchain.sh diff --git a/zz-build/build-all.sh b/zz-build/build-all.sh index 8d8cb49..4d59a24 100755 --- a/zz-build/build-all.sh +++ b/zz-build/build-all.sh @@ -3,21 +3,6 @@ set -e cd $(realpath $(dirname "${0}")) -# Install Alpine SDK -apk update -apk add alpine-sdk - -# Prepare build toolchain -adduser root abuild -cp etc/abuild.conf /etc/abuild.conf -cp usr/bin/abuild /usr/bin/abuild -cp usr/bin/fix-apk /usr/bin/fix-apk -cp usr/bin/lxc-build /usr/bin/lxc-build -cp usr/bin/lxc-pack /usr/bin/lxc-pack -mkdir -p /srv/build/lxc -# Supply /srv/build/repokey.rsa -# Supply /srv/build/packages.key - # Build native apps cd ../app-acme-sh abuild -F diff --git a/zz-build/install-toolchain.sh b/zz-build/install-toolchain.sh new file mode 100755 index 0000000..3f6dfea --- /dev/null +++ b/zz-build/install-toolchain.sh @@ -0,0 +1,20 @@ +#!/bin/sh +set -e + +cd $(realpath $(dirname "${0}")) + +# Install Alpine SDK +apk update +apk add alpine-sdk + +# Prepare build toolchain +adduser root abuild +cp etc/abuild.conf /etc/abuild.conf +cp usr/bin/abuild /usr/bin/abuild +cp usr/bin/fix-apk /usr/bin/fix-apk +cp usr/bin/lxc-build /usr/bin/lxc-build +cp usr/bin/lxc-pack /usr/bin/lxc-pack +mkdir -p /srv/build/lxc + +# Supply /srv/build/repokey.rsa +# Supply /srv/build/packages.key