1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:57:45 +00:00

Ports: Fix issue with the patches directory being a symlink

The path of the temporary directory should be an absolute path to
account for the patches directory being a symlink like in the upcoming
LLVM port update.
This commit is contained in:
Daniel Bertalan 2022-04-14 10:30:23 +02:00 committed by Brian Gianforcaro
parent e4b7ce3324
commit 9a898df1cd

View file

@ -630,15 +630,15 @@ do_generate_patch_readme() {
fi fi
fi fi
rm -fr .patches.tmp local tempdir="$(pwd)/.patches.tmp"
mkdir .patches.tmp rm -fr "$tempdir"
mkdir "$tempdir"
echo "# Patches for $port on SerenityOS" > patches/ReadMe.md echo "# Patches for $port on SerenityOS" > patches/ReadMe.md
echo >> patches/ReadMe.md echo >> patches/ReadMe.md
pushd patches pushd patches
local tempdir="../.patches.tmp"
local count=0 local count=0
for patch in *.patch; do for patch in *.patch; do
git mailinfo \ git mailinfo \