]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3435] do not use abs_top_srcdir in distributed scripts
authorAndrei Pavel <andrei@isc.org>
Thu, 6 Jun 2024 15:43:22 +0000 (18:43 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 20 Jun 2024 17:00:45 +0000 (20:00 +0300)
src/share/yang/modules/utils/check-hashes.sh.in
src/share/yang/modules/utils/check-revisions.sh.in

index 8ca411ff49f7d098a50466e0ef2f82a8d2d68a99..8265584214aa239c848a2ae07be8aa009930b645 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -18,7 +18,8 @@
 set -eu
 
 # Change directory to the YANG modules' directory.
-cd "@abs_top_srcdir@/src/share/yang/modules"
+script_path=$(cd "$(dirname "${0}")" && pwd)
+cd "${script_path}/@top_srcdir@/src/share/yang/modules"
 
 amend=false
 if test "${1-}" = '-a' || test "${1-}" = '--amend'; then
index 59901000433dc2687916ba1bd35df675cddf66af..91481c4067db0efa13dbea15d9a42ff2f3f5096b 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -18,7 +18,8 @@
 set -eu
 
 # Change directory to the YANG modules' directory.
-cd "@abs_top_srcdir@/src/share/yang/modules"
+script_path=$(cd "$(dirname "${0}")" && pwd)
+cd "${script_path}/@top_srcdir@/src/share/yang/modules"
 
 exit_code=0