From e8abb85f36e92c04b672ef97b9e83487cc0e6fc2 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sat, 9 Nov 2024 01:55:09 +0100 Subject: [PATCH] build(linux): allows patch per arch for reh --- package_linux_reh.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package_linux_reh.sh b/package_linux_reh.sh index a9f5cbdf1d4..ed845473a1a 100755 --- a/package_linux_reh.sh +++ b/package_linux_reh.sh @@ -92,6 +92,18 @@ if [[ -d "../patches/linux/reh/" ]]; then done fi +if [[ -d "../patches/linux/reh/${VSCODE_ARCH}/" ]]; then + for file in "../patches/linux/reh/${VSCODE_ARCH}/"*.patch; do + if [[ -f "${file}" ]]; then + echo applying patch: "${file}"; + if ! git apply --ignore-whitespace "${file}"; then + echo failed to apply patch "${file}" >&2 + exit 1 + fi + fi + done +fi + if [[ -n "${USE_GNUPP2A}" ]]; then INCLUDES=$(cat <