Commit 9f5d7c65 authored by Jondy Zhao's avatar Jondy Zhao

setup-cygwin.bat:

  support to run it without parameters
  check setup.exe exists or not before setup
parent 4e6434c6
@ECHO OFF @ECHO OFF
SETLOCAL SETLOCAL
SET CYGWINHOME=%~1 SET CYGWINHOME=%~1\
SET CYGWINROOT="%~1\cygwin" SET CYGWINROOT="%~1\cygwin"
SET DOWNLOADPATH="%CYGWINHOME%\cygwin-packages"
SET SETUPFILE="%CYGWINHOME%\setup.exe" IF NOT "%CYGWINHOME%" == "" GOTO INIT
SET CYGWINHOME=%~dp0
SET CYGWINROOT="%~dp0cygwin"
:INIT
SET DOWNLOADPATH="%CYGWINHOME%cygwin-packages"
SET SETUPFILE="%CYGWINHOME%setup.exe"
SET OPTIONS=--no-shortcuts --no-startmenu --quiet-mode --no-verify SET OPTIONS=--no-shortcuts --no-startmenu --quiet-mode --no-verify
IF NOT EXIST %SETUPFILE% GOTO START
ECHO Missing %SETUPFILE%
ENDLOCAL
EXIT 1
START:
IF NOT "%2" == "" GOTO REMOTE_INSTALL IF NOT "%2" == "" GOTO REMOTE_INSTALL
:LOCAL_INSTALL :LOCAL_INSTALL
...@@ -31,4 +45,4 @@ REM -P cygrunsrv -P binutils -P gcc4 -P libtool -P make -P autobuild - ...@@ -31,4 +45,4 @@ REM -P cygrunsrv -P binutils -P gcc4 -P libtool -P make -P autobuild -
GOTO END GOTO END
:END :END
ENDLOCAL ENDLOCAL
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment