Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /D c:\
- SET MD=c:\msys32
- rmdir /S /Q %MD%
- mkdir %MD%
- mkdir %MD%\src
- powershell -Command "((new-object net.webclient).DownloadFile('https://www.7-zip.org/a/7za920.zip', '%TEMP%\7z.zip'))"
- powershell -Command "$shell = New-Object -ComObject Shell.Application; $zip_src = $shell.NameSpace('%TEMP%\7z.zip'); $zip_dest = $shell.NameSpace('%TEMP%'); $zip_dest.CopyHere($zip_src.Items(), 1044)"
- powershell -Command "((new-object net.webclient).DownloadFile('http://repo.msys2.org/distrib/i686/msys2-base-i686-20161025.tar.xz', '%TEMP%\msys.tar.xz'))"
- %TEMP%\7za.exe x %TEMP%\msys.tar.xz -so | %TEMP%\7za.exe x -aoa -si -ttar >%TEMP%/7z-msys.log
- REM First run is performed to setup the environment
- %MD%\usr\bin\bash --login -i -c exit
- @echo off
- echo ^
- if false; then ^
- bitness=32; gcc=mingw-w64-i686-gcc; host=i686-w64-mingw32; ^
- else ^
- bitness=64; gcc=mingw-w64-x86_64-gcc; host=x86_64-w64-mingw32; ^
- fi ^&^& ^
- pacman --noconfirm -S tar make diffutils perl git bison flex $gcc ^&^& ^
- export PATH=/mingw$bitness/bin:/usr/bin/core_perl:$PATH ^&^& ^
- cd /src ^&^& ^
- git clone https://github.com/postgres/postgres.git --branch REL_10_STABLE --depth 1 ^&^& ^
- cd postgres ^&^& ^
- ./configure --host=$host --prefix=/c/pg10/ ^&^& ^
- make -j4 ^
- > %MD%\src\make_check.sh
- %MD%\usr\bin\bash --login -i /src/make_check.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement