1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

build-gnu.sh: improve the support if the stack has been already applied

This commit is contained in:
Sylvestre Ledru 2025-01-24 09:56:52 +01:00
parent ceb0785f8d
commit 60d3394676

View file

@ -97,7 +97,14 @@ fi
# Set up quilt for patch management
export QUILT_PATCHES="${ME_dir}/gnu-patches/"
cd "$path_GNU"
quilt push -a
# Check if all patches are already applied
if [ "$(quilt applied | wc -l)" -eq "$(quilt series | wc -l)" ]; then
echo "All patches are already applied"
else
# Push all patches
quilt push -a || { echo "Failed to apply patches"; exit 1; }
fi
cd -
"${MAKE}" PROFILE="${UU_MAKE_PROFILE}"