mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +00:00
Everywhere: Replace SERENITY_ROOT with SERENITY_SOURCE_DIR
This commit is contained in:
parent
3f5c934ea6
commit
e45e0eeb47
33 changed files with 69 additions and 69 deletions
|
@ -106,14 +106,14 @@ create_build_dir() {
|
|||
cmd_with_target() {
|
||||
is_valid_target || ( >&2 echo "Unknown target: $TARGET"; usage )
|
||||
|
||||
if [ ! -d "$SERENITY_ROOT" ]; then
|
||||
SERENITY_ROOT="$(get_top_dir)"
|
||||
export SERENITY_ROOT
|
||||
if [ ! -d "$SERENITY_SOURCE_DIR" ]; then
|
||||
SERENITY_SOURCE_DIR="$(get_top_dir)"
|
||||
export SERENITY_SOURCE_DIR
|
||||
fi
|
||||
BUILD_DIR="$SERENITY_ROOT/Build/$TARGET"
|
||||
BUILD_DIR="$SERENITY_SOURCE_DIR/Build/$TARGET"
|
||||
if [ "$TARGET" != "lagom" ]; then
|
||||
export SERENITY_ARCH="$TARGET"
|
||||
TOOLCHAIN_DIR="$SERENITY_ROOT/Toolchain/Build/$TARGET"
|
||||
TOOLCHAIN_DIR="$SERENITY_SOURCE_DIR/Toolchain/Build/$TARGET"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ delete_target() {
|
|||
}
|
||||
|
||||
build_toolchain() {
|
||||
( cd "$SERENITY_ROOT/Toolchain" && ARCH="$TARGET" ./BuildIt.sh )
|
||||
( cd "$SERENITY_SOURCE_DIR/Toolchain" && ARCH="$TARGET" ./BuildIt.sh )
|
||||
}
|
||||
|
||||
ensure_toolchain() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue