add option to disable tests during compilation (helpful to save time when testing build script)

This commit is contained in:
Wolfgang
2023-04-07 19:58:41 +00:00
parent 77b39b6acb
commit 56aa265033

View File

@@ -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?"