Skip to content

Fix up checks in Makefile and make them portable #1661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Sep 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix message wording that was opposite of intended
This also makes a correct but confusing comment clearer.
  • Loading branch information
EliahKagan committed Sep 14, 2023
commit ba84db487a31c593fe0618a63f80709e405039c9
4 changes: 2 additions & 2 deletions check-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readonly changes_path='doc/source/changes.rst'
printf 'Checking current directory.\n'
test "$(cd -- "$(dirname -- "$0")" && pwd)" = "$(pwd)" # Ugly, but portable.

printf 'Checking that %s and %s exist and have no committed changes.\n' \
printf 'Checking that %s and %s exist and have no uncommitted changes.\n' \
"$version_path" "$changes_path"
test -f "$version_path"
test -f "$changes_path"
Expand All @@ -40,7 +40,7 @@ printf '%-14s = %s\n' 'VERSION file' "$version_version" \
'HEAD SHA' "$head_sha" \
'Latest tag SHA' "$latest_tag_sha"

# Check that latest tag matches version and is the current HEAD we're releasing
# Check that the latest tag and current version match the HEAD we're releasing.
test "$version_version" = "$changes_version"
test "$latest_tag" = "$version_version"
test "$head_sha" = "$latest_tag_sha"
Expand Down