diff --git a/pcre2grep/build_msvc.sh b/pcre2grep/build_msvc.sh index cef7d3ef1..28326d80f 100644 --- a/pcre2grep/build_msvc.sh +++ b/pcre2grep/build_msvc.sh @@ -4,6 +4,7 @@ set -e tool_name="pcre2grep.exe" tool_version="10.44" +self_toolset_name="build-msvc" download_url="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$tool_version/pcre2-$tool_version.tar.gz" echo "::group::prepare sources $download_url" @@ -26,10 +27,13 @@ cp -f "$dp0/release/pcre2-$tool_version/build/Release/$tool_name" "$dp0/release/ cd "$dp0/release/build" -{ printf 'SHA-256: %s (msvc) -' "$(sha256sum $tool_name)" +{ printf '### %s +SHA-256: %s + +%s +' "$self_toolset_name.tar.gz" "$(sha256sum $tool_name)" "$download_url" } > build-msvc.md cat build-msvc.md -tar -czvf ../build-msvc.tar.gz . +tar -czvf "../$self_toolset_name.tar.gz" . diff --git a/pcre2grep/build_musl.sh b/pcre2grep/build_musl.sh index 96ff096cd..f519e4369 100755 --- a/pcre2grep/build_musl.sh +++ b/pcre2grep/build_musl.sh @@ -11,6 +11,7 @@ echo "::endgroup::" tool_name="pcre2grep" tool_version="10.44" +self_toolset_name="build-musl" download_url="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$tool_version/pcre2-$tool_version.tar.gz" echo "::group::prepare sources $download_url" @@ -36,10 +37,13 @@ strip "$tool_name" chmod +x "$tool_name" { printf '%s + +### %s SHA-256: %s -' "$("./$tool_name" --version)" "$(sha256sum $tool_name)" + +' "$("./$tool_name" --version)" "$self_toolset_name.tar.gz" "$(sha256sum $tool_name)" } > build-musl.md cat build-musl.md -tar -czvf ../build-musl.tar.gz . +tar -czvf "../$self_toolset_name.tar.gz" .