diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-19 15:52:52 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-19 18:07:20 +0300 |
commit | fb25f5f301530d3aa424aa98802f0875dd72fde5 (patch) | |
tree | 9cc6a49de0010f99f22ee534d63d9f2fb33d4814 /contrib | |
parent | 969e64040fb6db2d23ca19617fe9701ae98491a4 (diff) | |
download | libmicrohttpd-fb25f5f301530d3aa424aa98802f0875dd72fde5.tar.gz libmicrohttpd-fb25f5f301530d3aa424aa98802f0875dd72fde5.zip |
apply-all.sh: simplified usage
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/autotools-patches/apply-all.sh | 5 |
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 | ||
11 | patchesdir="$(pwd)" | 11 | patchesdir="$(dirname "$BASH_SOURCE")" || exit 2 |
12 | test -n "$patchesdir" || exit 2 | ||
12 | 13 | ||
13 | patches=( | 14 | patches=( |
14 | 0003-Pass-various-flags-to-GCC.patch | 15 | 0003-Pass-various-flags-to-GCC.patch |
@@ -23,7 +24,7 @@ patches=( | |||
23 | 24 | ||
24 | failed=( ) | 25 | failed=( ) |
25 | 26 | ||
26 | cd ../.. || exit 1 | 27 | cd "${patchesdir}/../.." || exit 1 |
27 | 28 | ||
28 | for patch in ${patches[@]}; do | 29 | for 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") |