aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-19 15:52:52 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-19 18:07:20 +0300
commitfb25f5f301530d3aa424aa98802f0875dd72fde5 (patch)
tree9cc6a49de0010f99f22ee534d63d9f2fb33d4814 /contrib
parent969e64040fb6db2d23ca19617fe9701ae98491a4 (diff)
downloadlibmicrohttpd-fb25f5f301530d3aa424aa98802f0875dd72fde5.tar.gz
libmicrohttpd-fb25f5f301530d3aa424aa98802f0875dd72fde5.zip
apply-all.sh: simplified usage
Diffstat (limited to 'contrib')
-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")