gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 03/04: apply-all.sh: simplified usage


From: gnunet
Subject: [libmicrohttpd] 03/04: apply-all.sh: simplified usage
Date: Sun, 19 Dec 2021 16:59:48 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit fb25f5f301530d3aa424aa98802f0875dd72fde5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 19 15:52:52 2021 +0300

    apply-all.sh: simplified usage
---
 contrib/autotools-patches/apply-all.sh | 5 +++--
 1 file 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 @@
 # Based on Debian SID baseline files as of December 2021.
 #
 
-patchesdir="$(pwd)"
+patchesdir="$(dirname "$BASH_SOURCE")" || exit 2
+test -n "$patchesdir" || exit 2
 
 patches=(
   0003-Pass-various-flags-to-GCC.patch
@@ -23,7 +24,7 @@ patches=(
 
 failed=( )
 
-cd ../.. || exit 1
+cd "${patchesdir}/../.." || exit 1
 
 for patch in ${patches[@]}; do
   patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || 
failed+=("$patch")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]