-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow to check getdcmtags version
- Loading branch information
Roy Wiggins
authored and
Roy Wiggins
committed
Jun 28, 2024
1 parent
7e1db52
commit b7cd8c8
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
binary_version=$(../bin/ubuntu22.04/getdcmtags --version | grep -oP 'Version \K.*' ) | ||
source_version=$(grep -oP '#define VERSION "\K.*(?=")' ../getdcmtags/main.cpp) | ||
|
||
echo "Binary version: $binary_version" | ||
echo "Source version: $source_version" | ||
echo "" | ||
if [ "$binary_version" == "$source_version" ]; then | ||
echo "Versions match." | ||
exit 0 | ||
else | ||
echo "Versions do not match!" | ||
exit 1 | ||
fi |