tests/sphinx-markdown-changelog: workaround for mawk

awk is mawk on Ubuntu.
This commit is contained in:
Johannes Altmanninger
2025-10-26 15:06:02 +01:00
parent ab39fab68c
commit 7c61fc5151
4 changed files with 49 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ version=$(sed 's,^fish \(\S*\) .*,\1,; 1q' "$workspace_root/CHANGELOG.rst")
previous_version=$(
cd "$workspace_root"
awk <CHANGELOG.rst '
( /^fish \S*\.\S*\.\S* \(released .*\)$/ &&
( /^fish [^ ]*\.[^ ]*\.[^ ]* \(released .*\)$/ &&
NR > 1 &&
# Skip tags that have not been created yet..
system("git rev-parse --verify >/dev/null --quiet refs/tags/"$2) == 0 \