mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 22:50:48 +00:00
Fix #23622 - Use USEMESON when builddir contain spaces ##build
Some checks are pending
build / linux-wasi (push) Waiting to run
build / linux-wasi-api (push) Waiting to run
build / linux-csnext (push) Waiting to run
build / linux-ssl-crypto (push) Waiting to run
build / tarball (push) Waiting to run
build / linux-static (push) Waiting to run
build / linux-acr-rpm-64 (push) Waiting to run
build / linux-acr-deb (amd64) (push) Waiting to run
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Waiting to run
build / linux-acr-deb (i386, multilib) (push) Waiting to run
build / macos-acr (arm64, 13) (push) Waiting to run
build / macos-acr (x86_64, 12) (push) Waiting to run
build / ios (cydia32) (push) Waiting to run
build / ios (true, cydia) (push) Waiting to run
build / android-acr (16, arm) (push) Waiting to run
build / android-acr (aarch64) (push) Waiting to run
build / android-meson (x86_64) (push) Waiting to run
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Coverity Scan / latest (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run
Some checks are pending
build / linux-wasi (push) Waiting to run
build / linux-wasi-api (push) Waiting to run
build / linux-csnext (push) Waiting to run
build / linux-ssl-crypto (push) Waiting to run
build / tarball (push) Waiting to run
build / linux-static (push) Waiting to run
build / linux-acr-rpm-64 (push) Waiting to run
build / linux-acr-deb (amd64) (push) Waiting to run
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Waiting to run
build / linux-acr-deb (i386, multilib) (push) Waiting to run
build / macos-acr (arm64, 13) (push) Waiting to run
build / macos-acr (x86_64, 12) (push) Waiting to run
build / ios (cydia32) (push) Waiting to run
build / ios (true, cydia) (push) Waiting to run
build / android-acr (16, arm) (push) Waiting to run
build / android-acr (aarch64) (push) Waiting to run
build / android-meson (x86_64) (push) Waiting to run
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Coverity Scan / latest (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run
This commit is contained in:
parent
53582571fe
commit
4bce996cfb
@ -2,7 +2,54 @@
|
||||
|
||||
# find
|
||||
cd "$(dirname $0)"/..
|
||||
pwd
|
||||
CWD="`pwd`"
|
||||
|
||||
sudosetup() {
|
||||
export NOSUDO
|
||||
|
||||
if [ -w "${PREFIX}" ]; then
|
||||
NOSUDO=1
|
||||
fi
|
||||
if [ -n "${NOSUDO}" ]; then
|
||||
SUDO=""
|
||||
else
|
||||
type sudo > /dev/null 2>&1 || NOSUDO=1
|
||||
SUDO=sudo
|
||||
[ -n "${NOSUDO}" ] && SUDO=
|
||||
fi
|
||||
|
||||
if [ "${NOSUDO}" != 1 ]; then
|
||||
if [ "$(id -u)" = 0 ]; then
|
||||
SUDO=""
|
||||
else
|
||||
if [ -d /system/bin ]; then
|
||||
# This is an android
|
||||
SUDO=""
|
||||
else
|
||||
[ -n "${NOSUDO}" ] && SUDO="echo NOTE: sudo not found. Please run as root: "
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${USE_SU}" = 1 ]; then
|
||||
SUDO="/bin/su -m root -c"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
sudosetup
|
||||
|
||||
echo "$CWD" | grep -q ' '
|
||||
if [ $? = 0 ]; then
|
||||
USEMESON=1
|
||||
fi
|
||||
if [ $USEMESON = 1 ]; then
|
||||
rm -rf b
|
||||
meson b
|
||||
ninja -C b
|
||||
${SUDO} make symstall PWD="$PWD/b" BTOP="$PWD/b/binr"
|
||||
exit $RV
|
||||
fi
|
||||
|
||||
export PAGER=cat
|
||||
unset LINK
|
||||
|
||||
@ -115,35 +162,6 @@ fi
|
||||
|
||||
umask 0002
|
||||
|
||||
export NOSUDO
|
||||
|
||||
if [ -w "${PREFIX}" ]; then
|
||||
NOSUDO=1
|
||||
fi
|
||||
if [ -n "${NOSUDO}" ]; then
|
||||
SUDO=""
|
||||
else
|
||||
type sudo > /dev/null 2>&1 || NOSUDO=1
|
||||
SUDO=sudo
|
||||
[ -n "${NOSUDO}" ] && SUDO=
|
||||
fi
|
||||
|
||||
if [ "${NOSUDO}" != 1 ]; then
|
||||
if [ "$(id -u)" = 0 ]; then
|
||||
SUDO=""
|
||||
else
|
||||
if [ -d /system/bin ]; then
|
||||
# This is an android
|
||||
SUDO=""
|
||||
else
|
||||
[ -n "${NOSUDO}" ] && SUDO="echo NOTE: sudo not found. Please run as root: "
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${USE_SU}" = 1 ]; then
|
||||
SUDO="/bin/su -m root -c"
|
||||
fi
|
||||
fi
|
||||
|
||||
${SHELL} --help 2> /dev/null | grep -q fish
|
||||
if [ $? = 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user