Skip to content

Commit e6c414e

Browse files
committed
[#3435] do not use abs_top_srcdir in distributed scripts
1 parent c61324b commit e6c414e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/share/yang/modules/utils/check-hashes.sh.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
3+
# Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
44
#
55
# This Source Code Form is subject to the terms of the Mozilla Public
66
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -18,7 +18,8 @@
1818
set -eu
1919

2020
# Change directory to the YANG modules' directory.
21-
cd "@abs_top_srcdir@/src/share/yang/modules"
21+
script_path=$(cd "$(dirname "${0}")" && pwd)
22+
cd "${script_path}/@top_srcdir@/src/share/yang/modules"
2223

2324
amend=false
2425
if test "${1-}" = '-a' || test "${1-}" = '--amend'; then

src/share/yang/modules/utils/check-revisions.sh.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
3+
# Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
44
#
55
# This Source Code Form is subject to the terms of the Mozilla Public
66
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -18,7 +18,8 @@
1818
set -eu
1919

2020
# Change directory to the YANG modules' directory.
21-
cd "@abs_top_srcdir@/src/share/yang/modules"
21+
script_path=$(cd "$(dirname "${0}")" && pwd)
22+
cd "${script_path}/@top_srcdir@/src/share/yang/modules"
2223

2324
exit_code=0
2425

0 commit comments

Comments
 (0)