Skip to content

Commit

Permalink
Add cygwrun instead posix2wx
Browse files Browse the repository at this point in the history
  • Loading branch information
mturk committed Sep 23, 2021
1 parent ef4a5cc commit 5008e85
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For a full list of changes, see the [git commit log][log]
[log]: https://github.com/mturk/cmsc/commits/


## cmsc 15.0_36
## cmsc 15.0_37

* Update dependencies
* Use cygwrun instead posix2wx
Expand Down
1 change: 1 addition & 0 deletions tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ Typical distribution build will look like
c:\> cmsc15_compile.bat
c:\> cmsc15_perl5.bat
c:\> cmsc15_nasm.bat
c:\> cmsc15_cygwrun.bat
c:\> cmsc15_makedist.bat
```
48 changes: 48 additions & 0 deletions tools/cmsc15_cygwrun.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@echo off
setlocal
rem
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem
rem Download Cygwrun
rem
rem Prerequisites...
set "PATH=%~dp0;%PATH%"
pushd %~dp0
set "VSToolsDir=%cd%"
popd
rem
call cmsc15_versions.bat
set "CygwrunName=cygwrun-%CygwrunVer%-win-x%CmscSys%"
set "CygwrunArch=%CygwrunName%.zip"
if not exist "%CygwrunArch%" (
curl %CurlOpts% -o %CygwrunArch% https://github.com/mturk/cygwrun/releases/download/v%CygwrunVer%/%CygwrunArch%
)
rem
7za t %CygwrunArch% >NUL 2>&1 && ( goto Exp )
echo.
echo Failed to download %CygwrunArch%
del /F /Q %CygwrunArch% 2>NUL
exit /B 1
rem
:Exp
rem
echo Cygwrun: %CygwrunName% >>compile.log
md ..\dist\tools 2>NUL
pushd ..\dist\tools
rem Uncopress
7za x -bd %VSToolsDir%\%CygwrunArch%
rem
popd
echo.
echo Finished.
:End
8 changes: 0 additions & 8 deletions tools/cmsc15_makedist.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,7 @@ echo Custom Microsoft Compiler Toolkit Compilation >dist\VERSIONS.txt
echo. >>dist\VERSIONS.txt
echo Version: %CmscVer% >>dist\VERSIONS.txt
type %VSToolsDir%\compile.log >>dist\VERSIONS.txt
md dist\tools 2>NUL
rem
rem Download possix2wx.exe
rem
set "DF=posix2wx.exe"
del /F /Q %DF% 2>NUL
curl %CurlOpts% -o dist\tools\%DF% https://github.com/mturk/posix2wx/releases/download/v%P2wxVer%/%DF%
echo Utils : %DF% %P2wxVer% >>%dist\VERSIONS.txt
echo.
for %%i in (setenv.bat README.md CHANGES.md LICENSE.txt) do copy /Y %%i dist\
rem
echo Creating Distibution ....
Expand Down
4 changes: 2 additions & 2 deletions tools/cmsc15_versions.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ rem limitations under the License.
rem
rem Setup environment for Microsoft Compiler Toolkit
rem
set "CmscVer=15.0_36"
set "CmscVer=15.0_37"
set "CmscSys=64"
set "CmscOsv=win7"
set "NasmVer=2.15.05"
set "PerlVer=5.32.1.1"
set "P2wxVer=2.0.7"
set "CygwrunVer=1.0.2"
set "CurlOpts=-qkL --retry 5"
set "WINVER=0x0601"

0 comments on commit 5008e85

Please sign in to comment.