#!/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
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
#!/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
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