Rename Mingw-w64 (#893)

This commit is contained in:
Aleksandr Chebotov
2020-05-19 13:16:59 +03:00
committed by GitHub
parent 8632288097
commit a12a3b7042
4 changed files with 12 additions and 12 deletions

View File

@@ -547,7 +547,7 @@
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-MinGW.ps1"
"{{ template_dir }}/scripts/Installers/Install-Mingw64.ps1"
]
},
{
@@ -861,7 +861,7 @@
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Validate-MinGW.ps1"
"{{ template_dir }}/scripts/Installers/Validate-Mingw64.ps1"
]
},
{

View File

@@ -526,7 +526,7 @@
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-MinGW.ps1"
"{{ template_dir }}/scripts/Installers/Install-Mingw64.ps1"
]
},
{
@@ -846,7 +846,7 @@
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Validate-MinGW.ps1"
"{{ template_dir }}/scripts/Installers/Validate-Mingw64.ps1"
]
},
{

View File

@@ -1,5 +1,5 @@
################################################################################
## File: Install-MinGW.ps1
## File: Install-Mingw64.ps1
## Desc: Install GNU tools for Windows to C:\tools\mingw64
################################################################################

View File

@@ -1,6 +1,6 @@
################################################################################
## File: Validate-MinGW.ps1
## Desc: Validate MinGW
## File: Validate-Mingw64.ps1
## Desc: Validate Mingw64
################################################################################
if (Get-Command -Name 'gcc')
@@ -39,19 +39,19 @@ else
# Adding description of the software to Markdown
# `gcc --version` gives output like:
# gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 5.3.0
# gcc.exe (x86_64-posix-seh-rev0, Built by Mingw-w64 project) 5.3.0
# Copyright (C) 2015 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$SoftwareName = "MinGW"
$SoftwareName = "Mingw-w64"
$(gcc --version).Split([System.Environment]::NewLine)[0] -match "\d\.\d\.\d$"
$minGwVersion = $matches[0]
$mingw64Version = $matches[0]
$Description = @"
_Version:_ $minGwVersion<br/>
_Version:_ $mingw64Version<br/>
_Environment:_
* PATH: contains location of the MinGW 'bin' directory
* PATH: contains location of the Mingw-w64 'bin' directory
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description