0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-24 13:14:11 +00:00

--dev option to installer ()

added --dev option to netdata-installer.sh to prevent it from removing the build directory
This commit is contained in:
Costa Tsaousis 2024-11-19 01:15:37 +02:00 committed by GitHub
parent 1550cf4850
commit a0dcbfc517
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,6 +237,7 @@ USAGE: ${PROGRAM} [options]
have a broken pkg-config. Use this option to proceed without checking pkg-config. have a broken pkg-config. Use this option to proceed without checking pkg-config.
--disable-telemetry Opt-out from our anonymous telemetry program. (DISABLE_TELEMETRY=1) --disable-telemetry Opt-out from our anonymous telemetry program. (DISABLE_TELEMETRY=1)
--skip-available-ram-check Skip checking the amount of RAM the system has and pretend it has enough to build safely. --skip-available-ram-check Skip checking the amount of RAM the system has and pretend it has enough to build safely.
--dev Do not remove the build directory - speeds up rebuilds
HEREDOC HEREDOC
} }
@ -258,6 +259,7 @@ ENABLE_CHARTS=1
ENABLE_H2O=1 ENABLE_H2O=1
FORCE_LEGACY_CXX=0 FORCE_LEGACY_CXX=0
NETDATA_CMAKE_OPTIONS="${NETDATA_CMAKE_OPTIONS-}" NETDATA_CMAKE_OPTIONS="${NETDATA_CMAKE_OPTIONS-}"
REMOVE_BUILD=1
RELEASE_CHANNEL="nightly" # valid values are 'nightly' and 'stable' RELEASE_CHANNEL="nightly" # valid values are 'nightly' and 'stable'
IS_NETDATA_STATIC_BINARY="${IS_NETDATA_STATIC_BINARY:-"no"}" IS_NETDATA_STATIC_BINARY="${IS_NETDATA_STATIC_BINARY:-"no"}"
@ -347,6 +349,9 @@ while [ -n "${1}" ]; do
NETDATA_PREPARE_ONLY=1 NETDATA_PREPARE_ONLY=1
DONOTWAIT=1 DONOTWAIT=1
;; ;;
"--dev")
REMOVE_BUILD=0
;;
"--help" | "-h") "--help" | "-h")
usage usage
exit 1 exit 1
@ -573,7 +578,7 @@ echo >&2
[ -n "${GITHUB_ACTIONS}" ] && echo "::group::Configuring Netdata." [ -n "${GITHUB_ACTIONS}" ] && echo "::group::Configuring Netdata."
NETDATA_BUILD_DIR="${NETDATA_BUILD_DIR:-./build/}" NETDATA_BUILD_DIR="${NETDATA_BUILD_DIR:-./build/}"
rm -rf "${NETDATA_BUILD_DIR}" [ ${REMOVE_BUILD} -eq 1 ] && rm -rf "${NETDATA_BUILD_DIR}"
# function to extract values from the config file # function to extract values from the config file
config_option() { config_option() {