Log applied patches during build

This commit is contained in:
Luke Childs 2020-05-21 22:50:14 +07:00 committed by Leonid Pliushch
parent 0401f37dbf
commit bb5be7788d

View File

@ -10,6 +10,7 @@ termux_step_patch_package() {
# Suffix patch with ".patch32" or ".patch64" to only apply for these bitnesses:
shopt -s nullglob
for patch in $TERMUX_PKG_BUILDER_DIR/*.patch{$TERMUX_ARCH_BITS,} $DEBUG_PATCHES; do
echo "Applying patch: $(basename $patch)"
test -f "$patch" && sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" "$patch" | \
sed "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" | \
patch --silent -p1