mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
build-gnu.sh: improve the support if the stack has been already applied
This commit is contained in:
parent
ceb0785f8d
commit
60d3394676
1 changed files with 8 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue