Advertisement
Guest User

Untitled

a guest
May 3rd, 2018
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.30 KB | None | 0 0
  1. cd /D c:\
  2. SET MD=c:\msys32
  3. rmdir /S /Q %MD%
  4. mkdir %MD%
  5. mkdir %MD%\src
  6.  
  7. powershell -Command "((new-object net.webclient).DownloadFile('https://www.7-zip.org/a/7za920.zip', '%TEMP%\7z.zip'))"
  8. 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)"
  9. powershell -Command "((new-object net.webclient).DownloadFile('http://repo.msys2.org/distrib/i686/msys2-base-i686-20161025.tar.xz', '%TEMP%\msys.tar.xz'))"
  10. %TEMP%\7za.exe x %TEMP%\msys.tar.xz -so | %TEMP%\7za.exe  x -aoa -si -ttar >%TEMP%/7z-msys.log
  11.  
  12. REM First run is performed to setup the environment
  13. %MD%\usr\bin\bash --login -i -c exit
  14.  
  15. @echo off
  16. echo ^
  17. if false; then ^
  18. bitness=32; gcc=mingw-w64-i686-gcc; host=i686-w64-mingw32; ^
  19. else ^
  20. bitness=64; gcc=mingw-w64-x86_64-gcc; host=x86_64-w64-mingw32; ^
  21. fi ^&^& ^
  22. pacman --noconfirm -S tar make diffutils perl git bison flex $gcc ^&^& ^
  23. export PATH=/mingw$bitness/bin:/usr/bin/core_perl:$PATH ^&^& ^
  24. cd /src ^&^& ^
  25. git clone https://github.com/postgres/postgres.git --branch REL_10_STABLE --depth 1 ^&^& ^
  26. cd postgres ^&^& ^
  27. ./configure --host=$host --prefix=/c/pg10/ ^&^& ^
  28. make -j4 ^
  29.  
  30. > %MD%\src\make_check.sh
  31. %MD%\usr\bin\bash --login -i /src/make_check.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement