From 76393cf85a2c947150af7adfe85204e2819ae763 Mon Sep 17 00:00:00 2001 From: hzy Date: Sun, 9 Oct 2022 13:32:46 +0800 Subject: [PATCH] We don't need `/lib/main.sh` anymore --- compile.sh | 9 +++++++-- lib/main.sh | 29 ----------------------------- 2 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 lib/main.sh diff --git a/compile.sh b/compile.sh index 2aa69370aa..7a3f847df3 100755 --- a/compile.sh +++ b/compile.sh @@ -297,5 +297,10 @@ while [[ "${1}" == *=* ]]; do done -# shellcheck source=lib/main.sh -source "${SRC}"/lib/main.sh +prepare_and_config_main_build_single + +if [[ -z $1 ]]; then + do_default +else + eval "$@" +fi diff --git a/lib/main.sh b/lib/main.sh deleted file mode 100644 index bc37edbf58..0000000000 --- a/lib/main.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com -# -# This file is licensed under the terms of the GNU General Public -# License version 2. This program is licensed "as is" without any -# warranty of any kind, whether express or implied. -# -# This file is a part of the Armbian build script -# https://github.com/armbian/build/ - -if [[ $(basename "$0") == main.sh ]]; then - - echo "Please use compile.sh to start the build process" - exit 255 - -fi - -# Libraries include -# shellcheck source=import-functions.sh -source "${SRC}/lib/import-functions.sh" - -prepare_and_config_main_build_single - -if [[ -z $1 ]]; then - do_default -else - eval "$@" -fi