mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
Toolchain: Exit Build*.sh scripts if executed as root
This commit is contained in:
parent
9ef3704ce8
commit
f5cb46e316
9 changed files with 48 additions and 3 deletions
|
@ -1,14 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "${DIR}/../Meta/shell_include.sh"
|
||||
|
||||
exit_if_running_as_root "Do not run BuildGDB.sh as root, parts of your Toolchain directory will become root-owned"
|
||||
|
||||
GDB_VERSION="13.1"
|
||||
GDB_MD5SUM="4aaad768ff2585464173c091947287ec"
|
||||
GDB_NAME="gdb-$GDB_VERSION"
|
||||
GDB_PKG="${GDB_NAME}.tar.xz"
|
||||
GDB_BASE_URL="https://ftp.gnu.org/gnu/gdb"
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
ARCH=${1:-"x86_64"}
|
||||
TARGET="$ARCH-pc-serenity"
|
||||
PREFIX="$DIR/Local/$ARCH-gdb"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue