Skip to content

Commit

Permalink
Fix for incorrect links created by tag-release.sh.
Browse files Browse the repository at this point in the history
The links created by the tag-release.sh were wrong. Although one is
the tag name, the other is just the version number.
  • Loading branch information
gerph committed Aug 6, 2023
1 parent c668a1f commit 1df4292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crosscompile/tag-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ "$CI_BRANCH_VERSION" =~ /-dirty$/ ]] ; then
exit 1
fi

sed "${sed_inline_args[@]}" 's!(https://github.com/gerph/riscos-prminxml-tool/releases/download)/[^/]*/(POSIX-PRMinXML|RISCOS-PRMinXML|Example-Output)-.*(\.zip|\.tar\.gz)!\1/GITTAG/\2-GITTAG\3!g' "README.md"
sed "${sed_inline_args[@]}" 's!(https://github.com/gerph/riscos-prminxml-tool/releases/download)/[^/]*/(POSIX-PRMinXML|RISCOS-PRMinXML|Example-Output)-.*(\.zip|\.tar\.gz)!\1/GITTAG/\2-GITVERSION\3!g' "README.md"
git commit -m "Update README.md links for release" README.md


Expand All @@ -39,6 +39,7 @@ TAG="v$CI_BRANCH_VERSION"
echo "New tag will be: $TAG"

sed "${sed_inline_args[@]}" "s!GITTAG!$TAG!g" README.md
sed "${sed_inline_args[@]}" "s!GITVERSION!$CI_BRANCH_VERSION!g" README.md
git commit -m "Update README.md links for release $TAG" --amend README.md
git tag -f "$TAG"

Expand Down

0 comments on commit 1df4292

Please sign in to comment.