-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.bat
More file actions
42 lines (34 loc) · 769 Bytes
/
setup.bat
File metadata and controls
42 lines (34 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
:: Variables
set DIRECTORY=%~dp0gnuwin32
set PATH=%PATH%;%DIRECTORY%
title Aether II Launcher Workspace Setup
goto :ask_eclipse
:: Ask user if the eclipse workspace should be reinstalled.
:ask_eclipse
echo.
echo Would you like to install your eclipse workspace?
set choice=
set /P choice="[Y/N] "
if not '%choice%'=='' set choice=%choice:~0,1%
echo.
if /I '%choice%'=='y' goto :install_eclipse
if /I '%choice%'=='n' goto :finish
echo Invalid selection.
goto :ask_eclipse
:: Delete old eclipse workspace and extract eclipse.zip
:install_eclipse
echo.
IF EXIST eclipse (
echo Deleting eclipse...
RD /S /Q "eclipse"
)
echo Extracting eclipse workspace...
unzip -q eclipse.zip
echo Finished eclipse setup.
goto :finish
:: Finish!
:finish
echo.
pause
exit