mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
11 lines
387 B
Bash
11 lines
387 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
SERENITY_PORTS_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}/Root/usr/Ports"
|
||
|
|
||
|
for file in $(git ls-files "${SERENITY_ROOT}/Ports"); do
|
||
|
if [ "$(basename "$file")" != ".hosted_defs.sh" ]; then
|
||
|
target=${SERENITY_PORTS_DIR}/$(realpath --relative-to="${SERENITY_ROOT}/Ports" "$file")
|
||
|
mkdir -p "$(dirname "$target")" && cp "$file" "$target"
|
||
|
fi
|
||
|
done
|