From: Andrei Pavel Date: Thu, 6 Jun 2024 15:43:22 +0000 (+0300) Subject: [#3435] do not use abs_top_srcdir in distributed scripts X-Git-Tag: Kea-2.7.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c414e9af911c6421a61279226e344a24e09403;p=thirdparty%2Fkea.git [#3435] do not use abs_top_srcdir in distributed scripts --- diff --git a/src/share/yang/modules/utils/check-hashes.sh.in b/src/share/yang/modules/utils/check-hashes.sh.in index 8ca411ff49..8265584214 100644 --- a/src/share/yang/modules/utils/check-hashes.sh.in +++ b/src/share/yang/modules/utils/check-hashes.sh.in @@ -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 diff --git a/src/share/yang/modules/utils/check-revisions.sh.in b/src/share/yang/modules/utils/check-revisions.sh.in index 5990100043..91481c4067 100644 --- a/src/share/yang/modules/utils/check-revisions.sh.in +++ b/src/share/yang/modules/utils/check-revisions.sh.in @@ -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