mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
build-gnu.sh: improve the support if the stack has been already applied
This commit is contained in:
+8
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user