mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:27:45 +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
|
@ -1,10 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SERENITY_PORTS_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}/Root/usr/Ports"
|
||||
SERENITY_PORTS_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}/Root/usr/Ports"
|
||||
|
||||
for file in $(git ls-files "${SERENITY_ROOT}/Ports"); do
|
||||
for file in $(git ls-files "${SERENITY_SOURCE_DIR}/Ports"); do
|
||||
if [ "$(basename "$file")" != ".hosted_defs.sh" ]; then
|
||||
target=${SERENITY_PORTS_DIR}/$(realpath --relative-to="${SERENITY_ROOT}/Ports" "$file")
|
||||
target=${SERENITY_PORTS_DIR}/$(realpath --relative-to="${SERENITY_SOURCE_DIR}/Ports" "$file")
|
||||
mkdir -p "$(dirname "$target")" && cp "$file" "$target"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue