Skip to content

Commit

Permalink
Add templating
Browse files Browse the repository at this point in the history
  • Loading branch information
iii-i committed Sep 27, 2022
1 parent 8c4f398 commit fbbfbac
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "roslyn"]
path = roslyn
url = https://github.com/dotnet/roslyn
[submodule "templating"]
path = templating
url = https://github.com/dotnet/templating
23 changes: 12 additions & 11 deletions dotnet-s390x-bump
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,26 @@ installer_version=$(echo "$installer_sha_version" | awk -F", " '{print $2}')
git fetch
git checkout --force "$installer_sha"
repos=(
runtime:Microsoft.NETCore.App.Ref:true
msbuild:Microsoft.Build:true
roslyn:Microsoft.Net.Compilers.Toolset:true
sdk:Microsoft.NET.Sdk:true
aspnetcore:Microsoft.AspNetCore.App.Ref:true
aspnetcore_internal:Microsoft.AspNetCore.App.Ref.Internal:false
runtime:installer:Microsoft.NETCore.App.Ref:true
msbuild:installer:Microsoft.Build:true
roslyn:installer:Microsoft.Net.Compilers.Toolset:true
sdk:installer:Microsoft.NET.Sdk:true
aspnetcore:installer:Microsoft.AspNetCore.App.Ref:true
aspnetcore_internal:installer:Microsoft.AspNetCore.App.Ref.Internal:false
templating:sdk:Microsoft.TemplateEngine.Abstractions:true
)
cd ..
echo_version installer "$installer_version" >dotnet-s390x-versions
git add installer
for repo in "${repos[@]}"; do
IFS=: read -r -a path_name <<< "$repo"
xpath="string(/Dependencies/ProductDependencies/Dependency[@Name=\"${path_name[1]}\"]/@Version)"
version=$(xmllint --xpath "$xpath" installer/eng/Version.Details.xml)
if "${path_name[2]}"; then
xpath="string(/Dependencies/ProductDependencies/Dependency[@Name=\"${path_name[2]}\"]/@Version)"
version=$(xmllint --xpath "$xpath" "${path_name[1]}"/eng/Version.Details.xml)
if "${path_name[3]}"; then
cd "${path_name[0]}"
git fetch
xpath="/Dependencies/ProductDependencies/Dependency[@Name=\"${path_name[1]}\"]/Sha/text()"
sha=$(xmllint --xpath "$xpath" ../installer/eng/Version.Details.xml)
xpath="/Dependencies/ProductDependencies/Dependency[@Name=\"${path_name[2]}\"]/Sha/text()"
sha=$(xmllint --xpath "$xpath" ../"${path_name[1]}"/eng/Version.Details.xml)
git checkout --force "$sha"
cd ..
git add "${path_name[0]}"
Expand Down
6 changes: 6 additions & 0 deletions dotnet-s390x-versions
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ aspnetcore_internal_version_suffix=rtm.22466.18
aspnetcore_internal_major_version=7
aspnetcore_internal_minor_version=0
aspnetcore_internal_build_id=20220916.18
templating_version=7.0.100-rtm.22466.3
templating_version_prefix=7.0.100
templating_version_suffix=rtm.22466.3
templating_major_version=7
templating_minor_version=0
templating_build_id=20220916.3
aspnetcore_transport_version=7.0.0-rtm.22466.6
aspnetcore_runtime_version=7.0.0-rtm.22466.6
runtime_version_label=rtm
1 change: 1 addition & 0 deletions templating
Submodule templating added at 674c13

0 comments on commit fbbfbac

Please sign in to comment.