summaryrefslogtreecommitdiff
path: root/Toolchain/BuildClang.sh
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-03-13 18:55:15 +0000
committerLinus Groh <mail@linusgroh.de>2023-03-13 20:12:44 +0000
commit6d19a9f9da8ad19835f99bdbf827dd82fb87bc10 (patch)
tree6b6a488e62c21ca2add7e3dc94f37bc0556e8c36 /Toolchain/BuildClang.sh
parentd21d1d99bd742e6c95475d15b2e4379c592abc5f (diff)
downloadserenity-6d19a9f9da8ad19835f99bdbf827dd82fb87bc10.zip
Toolchain: Use '|' as sed delimiter in Build{Clang,It}.sh, not '@'
The latter is problematic as it may be contained in the username (e.g. email address-like) and thus the $SRC_ROOT path. This would cause an invalid sed command to be created, breaking both of these scripts.
Diffstat (limited to 'Toolchain/BuildClang.sh')
-rwxr-xr-xToolchain/BuildClang.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Toolchain/BuildClang.sh b/Toolchain/BuildClang.sh
index a837dbbe21..6238dee1c6 100755
--- a/Toolchain/BuildClang.sh
+++ b/Toolchain/BuildClang.sh
@@ -255,7 +255,7 @@ for arch in $ARCHS; do
pushd "$BUILD/${arch}clang"
mkdir -p Root/usr/include/
for header in $FILES; do
- target=$(echo "$header" | "$SED" -e "s@$SRC_ROOT/Userland/Libraries/LibC@@" -e "s@$SRC_ROOT/Kernel/@Kernel/@")
+ target=$(echo "$header" | "$SED" -e "s|$SRC_ROOT/Userland/Libraries/LibC||" -e "s|$SRC_ROOT/Kernel/|Kernel/|")
buildstep "system_headers" "$INSTALL" -D "$header" "Root/usr/include/$target"
done
popd