These scripts expect to be run from the toplevel directory, so make sure
we are running from there.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
exit 1
fi
+cd "$(git rev-parse --show-toplevel)" || exit 1
+
git -C subprojects/libnvme fetch --all
# extract the vesion string from libnvme by using the ref
if [ "$build_doc" = true ]; then
# update documentation
- ./$doc_dir/update-docs.sh
+ ./scripts/update-docs.sh
if [[ "${dry_run}" = false ]]; then
git add $doc_dir
git commit -s -m "doc: Regenerate all docs for $VERSION"
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
+cd "$(git rev-parse --show-toplevel)" || exit 1
+
BUILDDIR="$(mktemp -d)"
trap 'rm -rf -- $BUILDDIR' EXIT