aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/autotools-patches/apply-all.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/autotools-patches/apply-all.sh b/contrib/autotools-patches/apply-all.sh
index 0febcd2d..ed9c4268 100755
--- a/contrib/autotools-patches/apply-all.sh
+++ b/contrib/autotools-patches/apply-all.sh
@@ -8,7 +8,8 @@
8# Based on Debian SID baseline files as of December 2021. 8# Based on Debian SID baseline files as of December 2021.
9# 9#
10 10
11patchesdir="$(pwd)" 11patchesdir="$(dirname "$BASH_SOURCE")" || exit 2
12test -n "$patchesdir" || exit 2
12 13
13patches=( 14patches=(
14 0003-Pass-various-flags-to-GCC.patch 15 0003-Pass-various-flags-to-GCC.patch
@@ -23,7 +24,7 @@ patches=(
23 24
24failed=( ) 25failed=( )
25 26
26cd ../.. || exit 1 27cd "${patchesdir}/../.." || exit 1
27 28
28for patch in ${patches[@]}; do 29for patch in ${patches[@]}; do
29 patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || failed+=("$patch") 30 patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || failed+=("$patch")