From 56aa265033d476eedf42f07c072f195a9630127b Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Fri, 7 Apr 2023 19:58:41 +0000 Subject: [PATCH] add option to disable tests during compilation (helpful to save time when testing build script) --- build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build.sh b/build.sh index 7ea1d64..5120444 100755 --- a/build.sh +++ b/build.sh @@ -114,6 +114,22 @@ PACKAGES_BUILD="${BASE}/packages_build" PATCHES="${BASE}/patches" SOURCES="${BASE}/sources" PACKAGE_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH) +DEB_BUILD_OPTIONS="" + +while [ "$#" -ge 1 ] +do + case "$1" in + nocheck) + DEB_BUILD_OPTIONS="${DEB_BUILD_OPTIONS} nocheck" + ;; + *) + echo "usage $0 [client] [nocheck]" + exit 1 + ;; + esac + shift +done +export DEB_BUILD_OPTIONS if [ ! -d "${PATCHES}" ]; then echo "Directory ${PATCHES} is missing! Have you cloned the repository?"