Skip to content

Commit 60d3394

Browse files
committed
build-gnu.sh: improve the support if the stack has been already applied
1 parent ceb0785 commit 60d3394

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

util/build-gnu.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,14 @@ fi
9797
# Set up quilt for patch management
9898
export QUILT_PATCHES="${ME_dir}/gnu-patches/"
9999
cd "$path_GNU"
100-
quilt push -a
100+
101+
# Check if all patches are already applied
102+
if [ "$(quilt applied | wc -l)" -eq "$(quilt series | wc -l)" ]; then
103+
echo "All patches are already applied"
104+
else
105+
# Push all patches
106+
quilt push -a || { echo "Failed to apply patches"; exit 1; }
107+
fi
101108
cd -
102109

103110
"${MAKE}" PROFILE="${UU_MAKE_PROFILE}"

0 commit comments

Comments
 (0)