summaryrefslogtreecommitdiff
path: root/Meta/serenity.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/serenity.sh')
-rwxr-xr-xMeta/serenity.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/Meta/serenity.sh b/Meta/serenity.sh
index ec412f6163..77672bc3c4 100755
--- a/Meta/serenity.sh
+++ b/Meta/serenity.sh
@@ -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() {