make_cygwin.bat 686 Bytes
Newer Older
1 2
@echo off
set MIRROR=ftp://ftp.snt.utwente.nl/pub/software/cygwin/
Giorgos Korfiatis's avatar
Giorgos Korfiatis committed
3
set PACKAGES=python,gnupg,librsync2,python-setuptools
4 5 6 7
set NAME=cygwin

if "%1" == "build" (
set NAME=%NAME%_build
8
set PACKAGES=%PACKAGES%,librsync-devel,wget,gcc-core,gcc,patch,zip,unzip
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
) else (
if not "%1" == "dist" (
@echo Must give option build or dist
goto end
))

set BUILD=%~dp0%build
set CYGWIN=%BUILD%\%NAME%
set CACHE=%BUILD%\cygwin_packages
@echo %CYGWIN%
@echo %CACHE%
@echo %PACKAGES%
if not exist %CYGWIN% mkdir %CYGWIN%
if not exist %CACHE% mkdir %CACHE%
.\setup-x86_64.exe -q -Y -N -n -d -R %CYGWIN% -l %CACHE% -s %MIRROR% -P %PACKAGES%
24 25
set TMPDIR=%CYGWIN%\tmp
if not exist %TMPDIR% mkdir %TMPDIR%
26
:end