summaryrefslogtreecommitdiff
path: root/tools/installer_ng/make_interactive.bat
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-09-06 11:08:47 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-09-06 11:08:47 +0000
commitb88b795c0b8f08a4530726cbcea2994782d064d4 (patch)
tree93cae83b44b2183ca8a8e38eb0f697d9558c2307 /tools/installer_ng/make_interactive.bat
parentaaa839208d68557a64f271a00eabf0377d6f03f3 (diff)
Installer: make_all.bat for fully automatic compilation, make_interactive.bat for interactive mode
git-svn-id: http://svn.miranda-ng.org/main/trunk@5963 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/installer_ng/make_interactive.bat')
-rw-r--r--tools/installer_ng/make_interactive.bat53
1 files changed, 53 insertions, 0 deletions
diff --git a/tools/installer_ng/make_interactive.bat b/tools/installer_ng/make_interactive.bat
new file mode 100644
index 0000000000..aac851c113
--- /dev/null
+++ b/tools/installer_ng/make_interactive.bat
@@ -0,0 +1,53 @@
+@echo off
+rem Get archives if needed
+echo ------------------------------------------------------------------------------------
+echo ------------------------------------------------------------------------------------
+:again
+set /p answer=Do you want to create folder structure and download new components? (Y/N):
+if /i "%answer:~,1%" EQU "Y" goto download
+if /i "%answer:~,1%" EQU "N" goto chk32
+echo Please type Y for Yes or N for No
+goto again
+:chk32
+if not exist InnoNG_32 (goto error) else (goto chk64)
+:chk64
+if not exist InnoNG_64 (goto error) else (goto continue)
+:error
+echo Some of the components are missing, please run script again and agree to create folder structure and download new components!
+pause
+goto end
+:download
+echo Creating folders and downloading components!
+call createstructure.bat
+:continue
+rem end
+
+rem Make
+echo ------------------------------------------------------------------------------------
+echo ------------------------------------------------------------------------------------
+:again1
+set /p answ=Do you want to compile the installers now? (Y/N):
+if /i "%answ:~,1%" EQU "Y" goto compile
+if /i "%answ:~,1%" EQU "N" goto moveahead
+echo Please type Y for Yes or N for No
+goto again1
+:compile
+echo Compiling!
+call compile.bat
+:moveahead
+rem end
+
+rem Cleanup
+echo ------------------------------------------------------------------------------------
+echo ------------------------------------------------------------------------------------
+:again2
+set /p ans=Do you want to delete temp files and build folders? (Y/N):
+if /i "%ans:~,1%" EQU "Y" goto cleanup
+if /i "%ans:~,1%" EQU "N" goto end
+echo Please type Y for Yes or N for No
+goto again2
+:cleanup
+echo Running cleanup!
+call cleanup.bat
+:end
+rem end \ No newline at end of file