Skip to content

Commit

Permalink
git-hooks/check-versions: better error messages when Windows VERSION …
Browse files Browse the repository at this point in the history
…is outdated

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Dec 1, 2020
1 parent dc262b0 commit 4a1e7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/git-hooks/check-versions.sh
Expand Up @@ -46,11 +46,11 @@ fi

# check that it matchs the official version, without a GREEK
if [ -z "$official_major" -o -z "$official_minor" -o -z "$official_release" ]; then
die "ERROR in $version_file: Failed to get official HWLOC_VERSION_MAJOR/MINOR/RELEASE"
die "ERROR in $windows_config_h: Failed to get official HWLOC_VERSION_MAJOR/MINOR/RELEASE"
fi
official_version_nogreek="$official_major.$official_minor.$official_release"
if [ "$official_version_nogreek" != "$windows_version" ]; then
die "ERROR in $version_file: Windows-specific HWLOC_VERSION \"$windows_version\" doesn't match the official \"$official_version_nogreek\" without GREEK"
die "ERROR in $windows_config_h: Windows-specific HWLOC_VERSION \"$windows_version\" doesn't match the official \"$official_version_nogreek\" without GREEK"
fi

# get the windows soname
Expand Down

0 comments on commit 4a1e7a7

Please sign in to comment.