mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-06 00:13:41 +00:00
add option to disable tests during compilation (helpful to save time when testing build script)
This commit is contained in:
16
build.sh
16
build.sh
@@ -114,6 +114,22 @@ PACKAGES_BUILD="${BASE}/packages_build"
|
|||||||
PATCHES="${BASE}/patches"
|
PATCHES="${BASE}/patches"
|
||||||
SOURCES="${BASE}/sources"
|
SOURCES="${BASE}/sources"
|
||||||
PACKAGE_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH)
|
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
|
if [ ! -d "${PATCHES}" ]; then
|
||||||
echo "Directory ${PATCHES} is missing! Have you cloned the repository?"
|
echo "Directory ${PATCHES} is missing! Have you cloned the repository?"
|
||||||
|
|||||||
Reference in New Issue
Block a user