Better restriction to prevent Windows git install on XP or older.

This is in preparation for once again making 1.8.5.2 the default Windows git.

Also remove the CHROME_HEADLESS condition, which confuses bot setup because the
same bot will sometimes run without that set (e.g. at slave startup) and with
it set (e.g. during a build), leading to the wrong, or even no, git installed.

R=maruel@chromium.org

Review URL: https://codereview.chromium.org/160033002

git-svn-id: bd64dd6fa6f3f0ed0c0666d1018379882b742947@250486 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

--- bootstrap/win/win_tools.bat
+++ bootstrap/win/win_tools.bat
@@ -35,10 +35,22 @@

 :GIT_1852_CHECK
 set GIT_VERSION=1.8.5.2.chromium.1
+:: This git uses APIs that target WINVER 0x0502, so refuse to install it on
+:: anything older.
+for /f "tokens=2 delims=[]" %%i in ('ver') do set VERSTR=%%i
+for /f "tokens=2,3 delims=. " %%i in ("%VERSTR%") do (set VERMAJOR=%%i & set VERMINOR=%%j)
+if %VERMAJOR% lss 5 goto :GIT_VER_UNSUPPORTED
+if %VERMAJOR% equ 5 if %VERMINOR% lss 2 goto :GIT_VER_UNSUPPORTED
 set GIT_BIN_DIR=git-%GIT_VERSION%_bin
 set GIT_ZIP_FILE=%GIT_BIN_DIR%.zip
 set GIT_ZIP_URL=https://commondatastorage.googleapis.com/chrome-infra/%GIT_ZIP_FILE%
 goto :GIT_COMMON
+
+
+:GIT_VER_UNSUPPORTED
+echo Git %GIT_VERSION% cannot be installed on:
+ver
+goto :GIT_180_CHECK

 :GIT_180_FORCE
@@ -64,7 +76,6 @@
 :GIT_COMMON
 :: If the batch file exists, skip the git check.
 if exist "%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%" goto :MSYS_PATH_CHECK
-if "%CHROME_HEADLESS%" == "1" goto :SVN_CHECK
 if "%WIN_TOOLS_FORCE%" == "1" goto :GIT_INSTALL
 call git --version 2>nul 1>nul
 if errorlevel 1 goto :GIT_INSTALL


try again

try again

--- build-scripts/2-extract.bat
+++ build-scripts/2-extract.bat
@@ -17,7 +17,7 @@

 echo.
 echo Fifengine Python36 Installer
-%ZIP% x "%CD%\fife\Python36.zip" -o%TARGET_DIR%
+%ZIP% x "C:\projects\uh-installer\fife\Python36.zip" -o%TARGET_DIR%

 echo.
 echo === Extracting Unknown-Horizons into the folder %TARGET_DIR%


add commandline parameter

add commandline parameter

--- http.bat
+++ http.bat
@@ -1 +1 @@
-@groovy %~dp0http.groovy
+@groovy %~dp0http.groovy %*


[SPARK-4065] Add check for IPython on Windows

This issue employs logic similar to the bash launcher (pyspark) to check
if IPTYHON=1, and if so launch ipython with options in IPYTHON_OPTS.
This fix assumes that ipython is available in the system Path, and can
be invoked with a plain "ipython" command.

Author: Michael Griffiths <msjgriffiths@gmail.com>

Closes #2910 from msjgriffiths/pyspark-windows and squashes the following commits:

ef34678 [Michael Griffiths] Change build message to comply with [SPARK-3775]
361e3d8 [Michael Griffiths] [SPARK-4065] Add check for IPython on Windows
9ce72d1 [Michael Griffiths] [SPARK-4065] Add check for IPython on Windows

--- bin/pyspark2.cmd
+++ bin/pyspark2.cmd
@@ -59,7 +59,12 @@
 )

 if [%PYTHON_FILE%] == [] (
-  %PYSPARK_PYTHON%
+  set PYSPARK_SHELL=1
+  if [%IPYTHON%] == [1] (
+	ipython %IPYTHON_OPTS%
+  ) else (
+	%PYSPARK_PYTHON%
+  )
 ) else (
   echo.
   echo WARNING: Running python applications through ./bin/pyspark.cmd is deprecated as of Spark 1.0.


Update v2.1.2

Update v2.1.2

-UI has been changed to look like IOS Patcher
-Error codes has been fixed
-WiiWare Patcher can now auto update itself!

--- Windows/patcher.bat
+++ Windows/patcher.bat
@@ -1,22 +1,176 @@
 @echo off
 mode 120,30
-set /a crashing=0
 chcp 65001
-set language=NotDefined
 if exist C:\Users\%username%\Desktop\DebugPatcher.txt goto debug_failsafe_begin
 goto begin
 :begin
+if not exist %appdata%\WiimmfiPatcher\temp\ md %appdata%\WiimmfiPatcher\temp\
 set patchingok=1
-if not exist %appdata%\WiimmfiPatcher\temp\ md %appdata%\WiimmfiPatcher\temp\
+set mode=126,35
+mode %mode%
 set /a cor=0
 set /a patchingnumber=1
 set /a repeatvbs=0
+set /a temperrorlev=0
+set last_build=2017/08/07
+set at=17:15
+set version=2.1.2
+set /a
+
 if not exist %appdata%\WiimmfiPatcher\temp\vbs.vbs echo x=msgbox("When the operation will be done, click any button." ,64, "Wiimmfi WAD Patcher") >>%appdata%\WiimmfiPatcher\temp\vbs.vbs
 @echo off
 title Wiimmfi Patcher for WAD's
 cls
-
-if %language%==NotDefined goto set_language
+if not exist patcher.bat goto admin_error
+:: ### Auto Update ###
+set /a IOSPatcher_Update_Activate=1
+set /a whatsnew=1
+set /a offlinestorage=0
+set FilesHostedOn=https://rc24.xyz/Patchers_Auto_Update/WiiWare-Patcher
+set MainFolder=%appdata%\WiiWare-Patcher
+set TempStorage=%appdata%\WiiWare-Patcher\internet\temp
+
+
+if exist temp.bat del temp.bat /q
+goto begin_main
+:begin_main
+cls
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. (Compiled on %last_build% at %at%)
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+    Wiimmfi WADs Patcher.
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN   Play Wii games online after Nintendo WFC shutdown!
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd    Press any button to continue
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo             mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
+echo            `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
+echo            -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
+echo            :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
+echo            +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
+echo            smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
+echo            hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
+echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
+echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+pause>NUL
+goto startup_script
+:error_update_not_available
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo    /---\   Error.
+echo   /     \  An Update server is not available.
+echo  /   !   \
+echo  ---------
+echo.
+echo            Press any button to continue.
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+pause>NUL
+goto begin_main
+:startup_script
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo             mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
+echo            `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
+echo            -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
+echo            :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
+echo            +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
+echo            smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
+echo            hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
+echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
+echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+echo                                                                        Please wait...
+set updateversion=0.0.0
+
+if %offlinestorage%==0 if exist %TempStorage%\version.txt del %TempStorage%\version.txt /q
+if %offlinestorage%==0 if exist %TempStorage%\version.txt` del %TempStorage%\version.txt` /q
+if %offlinestorage%==0 if exist %TempStorage%\whatsnew.txt del %TempStorage%\whatsnew.txt /q
+if %offlinestorage%==0 if exist %TempStorage%\whatsnew.txt` del %TempStorage%\whatsnew.txt` /q
+
+if not exist %TempStorage% md %TempStorage%
+if %IOSPatcher_Update_Activate%==1 if %offlinestorage%==0 powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/whatsnew.txt', '%TempStorage%/whatsnew.txt')"
+if %IOSPatcher_Update_Activate%==1 if %offlinestorage%==0 powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/version.txt', '%TempStorage%/version.txt')"
+
+	if %offlinestorage%==0 set /a temperrorlev=%errorlevel%
+
+	::Bind error codes to errors here
+	if %offlinestorage%==0 if not %errorlevel%==0 goto error_update_not_available
+
+
+if exist "%TempStorage%\version.txt`" ren "%TempStorage%\version.txt`" "version.txt"
+if exist "%TempStorage%\whatsnew.txt`" ren "%TempStorage%\whatsnew.txt`" "whatsnew.txt"
+
+if exist %TempStorage%\version.txt set /p updateversion=<%TempStorage%\version.txt
+if not exist %TempStorage%\version.txt set /a updateavailable=0
+if %IOSPatcher_Update_Activate%==1 if exist %TempStorage%\version.txt set /a updateavailable=1
+if %updateversion%==%version% set /a updateavailable=0
+
+if %IOSPatcher_Update_Activate%==1 if %updateavailable%==1 goto update_notice

 if not exist Sharpii.exe goto files_req_err
 if not exist libWiiSharp.dll goto files_req_err
@@ -24,285 +178,200 @@
 if not exist WadInstaller.dll goto files_req_err
 if not exist WiiwarePatcher.exe goto files_req_err

-if not exist %appdata%\WiimmfiPatcher md %appdata%\WiimmfiPatcher
-if not exist %appdata%\WiimmfiPatcher\firststart.id goto letsbegin
-if exist %appdata%\WiimmfiPatcher\firststart.id goto letsbegin
-if exist %appdata%\WiimmfiPatcher\ndlaunch.id goto letsbegin
-goto firststart
-:set_language
-cls
-cls
-echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
-echo ------------------------------------------------------------------------------------------------------------------------
-echo Please select your language.
-echo.
-echo R. Open RiiConnect24 site in your default browser.
-if %crashing%==0 echo C. [ ] If this program is crashing try selecting this option.
-if %crashing%==1 echo C. [X] If this program is crashing try selecting this option.
-echo.
-echo 1. English (Author: KcrPL) (Correction: Seriel)
-echo 2. Polish (Author: KcrPL)
-echo 3. Deutsch (Author: TimNook)
-echo 4. French (Author: iDroid)
-echo 5. Italian (Author: GameCube)
-echo 6. Spanish (Author: Artuto)
-echo 7. Portuguese (Author: Rafael)
-echo.
-set /p s=Choose:
-if %s%==c goto change_crashing_var
-if %s%==C goto change_crashing_var
-if %s%==r start www.rc24.xyz
-if %s%==R start www.rc24.xyz
-if %s%==1 goto set_language_eng
-if %s%==2 goto set_language_pol
-if %s%==3 goto set_language_deu
-if %s%==4 goto set_language_fr
-if %s%==5 goto set_language_it
-if %s%==6 goto set_language_es
-if %s%==7 goto set_language_braz
-goto set_language
-:change_crashing_var
-if %crashing%==0 goto cr_var_1
-if %crashing%==1 goto cr_var_0
-goto set_language
-:cr_var_1
-set /a crashing=1
-goto set_language
-:cr_var_0
-set /a crashing=0
-goto set_language
-
-:error_crashing
-cls
-echo.
-echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL. v%version%
-echo ------------------------------------------------------------------------------------------------------------------------
-echo  [*] Info.
-echo.
-echo Anti-Crash function cannot be used with this language. Please use another language.
-echo.
-echo Sorry for the inconvenience. :(
-echo.
-echo Press anything to go back to language select.
+set /a errorwinxp=0
+timeout -0 /nobreak >NUL || set /a errorwinxp=1
+if %errorwinxp%==1 goto winxp_notice
+
+goto main_fade_out
+:main_fade_out
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo             mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
+echo            `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
+echo            -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
+echo            :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
+echo            +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
+echo            smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
+echo            hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
+echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
+echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+echo.
+ping localhost -n 3 >NUL
+goto letsbegin
+:update_notice
+set /a update=1
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo    /---\   An Update is available.
+echo   /     \  An Update for this program is available. We suggest updating the WiiWare Patcher to the latest version.
+echo  /   !   \
+echo  ---------  Current version: %version%
+echo             New version: %updateversion%
+echo                       1. Update                      2. Dismiss               3. What's new in this update?
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+set /p s=
+if %s%==1 goto update_files
+if %s%==2 goto begin_main
+if %s%==3 goto whatsnew
+goto update_notice
+:update_files
+cls
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo    /---\   Updating.
+echo   /     \  Please wait...
+echo  /   !   \
+echo  --------- WiiWare Patcher will restart shortly...
+echo.
+echo.
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+if exist WadInstaller.dll` del WadInstaller.dll` /q 2> nul
+if exist WiiwarePatcher.exe` del wget.exe` /q 2> nul
+if exist lzx.exe` del xdelta3.exe` 2> nul
+if exist patcher.bat` del patch.bat` /q 2> nul
+if exist libWiiSharp.dll` del  libWiiSharp.dll` /q 2> nul
+if exist Sharpii.exe` del Sharpii.exe` /q 2> nul
+
+powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/WadInstaller.dll', 'WadInstaller.dll`')"
+powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/WiiwarePatcher.exe', 'WiiwarePatcher.exe`')"
+powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/lzx.exe', 'lzx.exe`')"
+powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/patcher.bat', 'patcher.bat`')"
+powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/libWiiSharp.dll', 'libWiiSharp.dll`')"
+powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/Sharpii.exe', 'Sharpii.exe`')"
+
+if %update%==1 if not exist WadInstaller.dll` goto error_update_not_available
+if %update%==1 if not exist WiiwarePatcher.exe` goto error_update_not_available
+if %update%==1 if not exist lzx.exe` goto error_update_not_available
+if %update%==1 if not exist patcher.bat` goto error_update_not_available
+if %update%==1 if not exist libWiiSharp.dll` goto error_update_not_available
+if %update%==1 if not exist Sharpii.exe` goto error_update_not_available
+
+if exist WadInstaller.dll del WadInstaller.dll /q
+if exist WiiwarePatcher.exe del WiiwarePatcher.exe /q
+if exist lzx.exe del lzx.exe /q
+if exist libWiiSharp.dll del libWiiSharp.dll /q
+if exist Sharpii.exe del Sharpii.exe /q
+
+ren WadInstaller.dll` WadInstaller.dll
+ren WiiwarePatcher.exe` WiiwarePatcher.exe
+ren lzx.exe` lzx.exe
+ren libWiiSharp.dll` libWiiSharp.dll
+ren Sharpii.exe` Sharpii.exe
+
+echo ping localhost -n 2 >>temp.bat
+echo del patcher.bat /q >>temp.bat
+echo ren patcher.bat` patcher.bat >>temp.bat
+echo start patcher.bat >>temp.bat
+echo exit >>temp.bat
+start temp.bat
+exit
+exit
+exit
+:whatsnew
+cls
+if not exist %TempStorage%\whatsnew.txt goto whatsnew_notexist
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. (Compiled on %last_build% at %at%)
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo.
+echo What's new in update %updateversion%?
+echo.
+type %TempStorage%\whatsnew.txt
 pause>NUL
-goto set_language
-:set_language_braz
-if %crashing%==0 set text1=Ocorreu um erro enquanto abriamos o programa
-if %crashing%==0 set text2=Alguns dos arquivos necessários para o programa, não foram encontrados.
-if %crashing%==0 set text3=Clique em qualquer botão para fechar o programa.
-if %crashing%==0 set text4=Vamos começar.
-if %crashing%==0 set text10=Ocorreu um erro durante o patch dos arquivos.
-if %crashing%==0 set text13=Saindo do patcher em...
-if %crashing%==0 set text5=Agora, você sabe. Vamos começar com aquilo, em ordem para o patch do arquivo wad, eu preciso do arquivo wad
-if %crashing%==0 set text6=Então se você puder copiar o arquivo wad para a pasta aonde estou.
-if %crashing%==0 set text7=Esperando pelos arquivos .wad
-if %crashing%==0 set text8=Patch do arquivo em progresso:
-if %crashing%==0 set text9=Total de arquivos:
-if %crashing%==0 set text10=Patching foi finalizado.
-if %crashing%==0 set text11=Arquivos com Patch estão na pasta wiimmfi-wads
-if %crashing%==0 set text12=Os arquivos originais estão na pasta backup-wads
-
-if %crashing%==1 set text1=Ocorreu um erro enquanto abriamos o programa
-if %crashing%==1 set text2=Alguns dos arquivos necessarios para o programa, nao foram encontrados.
-if %crashing%==1 set text3=Clique em qualquer botao para fechar o programa.
-if %crashing%==1 set text4=Vamos comecar.
-if %crashing%==1 set text10=Ocorreu um erro durante o patch dos arquivos.
-if %crashing%==1 set text13=Saindo do patcher em...
-if %crashing%==1 set text5=Agora, voce sabe. Vamos começar com aquilo, em ordem para o patch do arquivo wad, eu preciso do arquivo wad
-if %crashing%==1 set text6=Entao se voce puder copiar o arquivo wad para a pasta aonde estou.
-if %crashing%==1 set text7=Esperando pelos arquivos .wad
-if %crashing%==1 set text8=Patch do arquivo em progresso:
-if %crashing%==1 set text9=Total de arquivos:
-if %crashing%==1 set text10=Patching foi finalizado.
-if %crashing%==1 set text11=Arquivos com Patch estao na pasta wiimmfi-wads
-if %crashing%==1 set text12=Os arquivos originais estao na pasta backup-wads
-set language=1
-goto begin
-:set_language_es
-if %crashing%==0 set text1=Ha occurido un problema al ejecutar este programa.
-if %crashing%==0 set text2=Algunos de los archivos necesarios para ejecutar este programa no se han encontrado.
-if %crashing%==0 set text3=Presiona cualquier tecla para cerrar el programa.
-if %crashing%==0 set text4=Empecemos.
-if %crashing%==0 set text10=Ha ocurrido un problema al parchear los archivos.
-if %crashing%==0 set text13=Cerrando el parcheador...
-if %crashing%==0 set text5=No se si lo sepas, pero para parchear el archivo WAD, necesito un archivo WAD...
-if %crashing%==0 set text6=Entonces, puedes copiar un WAD a mi carpeta?.
-if %crashing%==0 set text7=Esperando por archivos .wad
-if %crashing%==0 set text8=Parcheando archivo:
-if %crashing%==0 set text9=Cantidad total de archivos:
-if %crashing%==0 set text10=Parcheo completado.
-if %crashing%==0 set text11=Los WADs parcheados estan en la carpeta "wiimmfi-wads"
-if %crashing%==0 set text12=Las copias de seguridad estan en la carpeta "backup-wads"
-
-if %crashing%==1 set text1=Ha occurido un problema al ejecutar este programa.
-if %crashing%==1 set text2=Algunos de los archivos necesarios para ejecutar este programa no se han encontrado.
-if %crashing%==1 set text3=Presiona cualquier tecla para cerrar el programa.
-if %crashing%==1 set text4=Empecemos.
-if %crashing%==1 set text10=Ha ocurrido un problema al parchear los archivos.
-if %crashing%==1 set text13=Cerrando el parcheador...
-if %crashing%==1 set text5=No se si lo sepas, pero para parchear el archivo WAD, necesito un archivo WAD...
-if %crashing%==1 set text6=Entonces, puedes copiar un WAD a mi carpeta?.
-if %crashing%==1 set text7=Esperando por archivos .wad
-if %crashing%==1 set text8=Parcheando archivo:
-if %crashing%==1 set text9=Cantidad total de archivos:
-if %crashing%==1 set text10=Parcheo completado.
-if %crashing%==1 set text11=Los WADs parcheados estan en la carpeta "wiimmfi-wads"
-if %crashing%==1 set text12=Las copias de seguridad estan en la carpeta "backup-wads"
-
-set language=1
-goto begin
-:set_language_it
-if %crashing%==0 set text1=Si e verificato un errore durante l'esecuzione del programma
-if %crashing%==0 set text2=Alcuni dei file necessari per eseguire questo programma non sono stati trovati
-if %crashing%==0 set text3=Fare clic su qualsiasi pulsante per chiudere questo programma.
-if %crashing%==0 set text4=Permetta Cominciamo.
-if %crashing%==0 set text10=Si e verificato un errore durante la patch dei file.
-if %crashing%==0 set text13=Uscire dal patcher in ...
-if %crashing%==0 set text5=Veramente, lo sai. Cominciamo da questo, al fine di patch wad file ho bisogno di un file wad.
-if %crashing%==0 set text6=Quindi, se puoi copiare qualsiasi file wad in questa directory io sono.
-if %crashing%==0 set text7=In attesa di file .wad
-if %crashing%==0 set text8=Patching dei file:
-if %crashing%==0 set text9=Totale quantita di file:
-if %crashing%==0 set text10=Patching e fatto.
-if %crashing%==0 set text11=File patch e in wiimmfi-wads cartella
-if %crashing%==0 set text12=originale wads e nella di backup-wads cartella
-
-if %crashing%==1 set text1=Si e verificato un errore durante l'esecuzione del programma
-if %crashing%==1 set text2=Alcuni dei file necessari per eseguire questo programma non sono stati trovati
-if %crashing%==1 set text3=Fare clic su qualsiasi pulsante per chiudere questo programma.
-if %crashing%==1 set text4=Permetta Cominciamo.
-if %crashing%==1 set text10=Si e verificato un errore durante la patch dei file.
-if %crashing%==1 set text13=Uscire dal patcher in ...
-if %crashing%==1 set text5=Veramente, lo sai. Cominciamo da questo, al fine di patch wad file ho bisogno di un file wad.
-if %crashing%==1 set text6=Quindi, se puoi copiare qualsiasi file wad in questa directory io sono.
-if %crashing%==1 set text7=In attesa di file .wad
-if %crashing%==1 set text8=Patching dei file:
-if %crashing%==1 set text9=Totale quantita di file:
-if %crashing%==1 set text10=Patching e fatto.
-if %crashing%==1 set text11=File patch e in wiimmfi-wads cartella
-if %crashing%==1 set text12=originale wads e nella di backup-wads cartella
-
-set language=1
-goto begin
-:set_language_fr
-if %crashing%==0 set text1=Il y a eu une erreur durant l'execution du programme
-if %crashing%==0 set text2=Un des fichiers necessaires pour executer le programme n'a pas ete trouve
-if %crashing%==0 set text3=Appuyer sur n'importe quelle touche pour terminer le programme
-if %crashing%==0 set text4=Commencons
-if %crashing%==0 set text10=Il y a eu une erreur durant le patch des fichiers.
-if %crashing%==0 set text13=Fermeture du patcher...
-if %crashing%==0 set text5=En fait, vous savez. Commencons par ceci, afin de patcher un WAD, j'ai besoin du fichier WAD
-if %crashing%==0 set text6=Donc, si vous pouviez s'il vous plait copier le fichier WAD à patcher dans le dossier ou je suis.
-if %crashing%==0 set text7=En attente d'un fichier WAD
-if %crashing%==0 set text8=Patchage des fichiers...
-if %crashing%==0 set text9=Nombre de fichiers:
-if %crashing%==0 set text10=Le patchage est termine.
-if %crashing%==0 set text11=Les fichiers patches se trouvent dans le dossier wiimmfi-wads
-if %crashing%==0 set text12=Les fichiers originaux se trouvent dans le dossier backup-wads
-
-
-if %crashing%==1 set text1=Il y a eu une erreur durant l'execution du programme
-if %crashing%==1 set text2=Un des fichiers necessaires pour executer le programme n'a pas ete trouve
-if %crashing%==1 set text3=Appuyer sur n'importe quelle touche pour terminer le programme
-if %crashing%==1 set text4=Commencons
-if %crashing%==1 set text10=Il y a eu une erreur durant le patch des fichiers.
-if %crashing%==1 set text13=Fermeture du patcher...
-if %crashing%==1 set text5=En fait, vous savez. Commencons par ceci, afin de patcher un WAD, j'ai besoin du fichier WAD
-if %crashing%==1 set text6=Donc, si vous pouviez s'il vous plait copier le fichier WAD a patcher dans le dossier ou je suis.
-if %crashing%==1 set text7=En attente d'un fichier WAD
-if %crashing%==1 set text8=Patchage des fichiers...
-if %crashing%==1 set text9=Nombre de fichiers:
-if %crashing%==1 set text10=Le patchage est termine.
-if %crashing%==1 set text11=Les fichiers patches se trouvent dans le dossier wiimmfi-wads
-if %crashing%==1 set text12=Les fichiers originaux se trouvent dans le dossier backup-wads
-set language=1
-goto begin
-:set_language_deu
-if %crashing%==0 set text1=Es gab einen Fehler wahrend das Programm ausgefuhrt wurde
-if %crashing%==0 set text2=Einige Dateien die das Programm braucht um zu funktionieren wurden nicht gefunden
-if %crashing%==0 set text3=Drucke irgendeinen Knopf um das Programm zu schliesen.
-if %crashing%==0 set text4=Lass uns loslegen.
-if %crashing%==0 set text10=Es gab einen Fehler während die Dateien gepatcht wurden.
-if %crashing%==0 set text13=Schliese den Patcher in...
-if %crashing%==0 set text5=Lass uns loslegen. Damit ich eine wad-Datei patchen kann brauche ich eine wad-Datei!
-if %crashing%==0 set text6=Konntest du bitte jede wad-Datei in den selben Ordner verschieben wo ich auch bin.
-if %crashing%==0 set text7=Warte auf die .wad Dateien
-if %crashing%==0 set text8=Patche Datei:
-if %crashing%==0 set text9=Gesamtmenge der Dateien:
-if %crashing%==0 set text10=Alle Dateien wurden gepatcht!.
-if %crashing%==0 set text11=Die gepatchten Dateien sind im "wiimmfi-wads" Ordner
-if %crashing%==0 set text12=Die archivierten .wad Dateien sind im "backup-wads" Ordner
-
-
-if %crashing%==1 set text1=Es gab einen Fehler wahrend das Programm ausgefuhrt wurde
-if %crashing%==1 set text2=Einige Dateien die das Programm braucht um zu funktionieren wurden nicht gefunden
-if %crashing%==1 set text3=Drucke irgendeinen Knopf um das Programm zu schliesen.
-if %crashing%==1 set text4=Lass uns loslegen.
-if %crashing%==1 set text10=Es gab einen Fehler während die Dateien gepatcht wurden.
-if %crashing%==1 set text13=Schliese den Patcher in...
-if %crashing%==1 set text5=Lass uns loslegen. Damit ich eine wad-Datei patchen kann brauche ich eine wad-Datei!
-if %crashing%==1 set text6=Konntest du bitte jede wad-Datei in den selben Ordner verschieben wo ich auch bin.
-if %crashing%==1 set text7=Warte auf die .wad Dateien
-if %crashing%==1 set text8=Patche Datei:
-if %crashing%==1 set text9=Gesamtmenge der Dateien:
-if %crashing%==1 set text10=Alle Dateien wurden gepatcht!.
-if %crashing%==1 set text11=Die gepatchten Dateien sind im "wiimmfi-wads" Ordner
-if %crashing%==1 set text12=Die archivierten .wad Dateien sind im "backup-wads" Ordner
-set language=1
-goto begin
-:set_language_pol
-if %crashing%==0 set text1=Podczas korzystania z programu wystąpil bład
-if %crashing%==0 set text2=Kilka plików potrzebnych do uruchomienia programu nie zostalo znalezionych
-if %crashing%==0 set text3=Nacisnij dowolny przycisk aby zamknac program.
-if %crashing%==0 set text4=Zacznijmy.
-if %crashing%==0 set text10=Wystapil blad podczas patchowania plikow.
-if %crashing%==0 set text13=Zamykanie patchera za...
-if %crashing%==0 set text5=Zacznijmy od tego, zeby zaczac patchowac pliki .wad - potrzebuje pliku .wad
-if %crashing%==0 set text6=Wiec jezeli mozesz, skopiuj jakis plik .wad do folderu w ktorym jestem
-if %crashing%==0 set text7=Oczekiwanie na plik .wad
-if %crashing%==0 set text8=Patchowanie pliku:
-if %crashing%==0 set text9=Laczna liczba plikow:
-if %crashing%==0 set text10=Patchowanie przebieglo sukcesem.
-if %crashing%==0 set text11=Zpatchowane pliki sa w folderze "wiimmfi-wads"
-if %crashing%==0 set text12=Kopia zapasowa plikow .wad jest w folderze "backup-wads"
-
-if %crashing%==1 set text1=Podczas korzystania z programu wystąpil bład
-if %crashing%==1 set text2=Kilka plikow potrzebnych do uruchomienia programu nie zostalo znalezionych
-if %crashing%==1 set text3=Nacisnij dowolny przycisk aby zamknac program.
-if %crashing%==1 set text4=Zacznijmy.
-if %crashing%==1 set text10=Wystapil blad podczas patchowania plikow.
-if %crashing%==1 set text13=Zamykanie patchera za...
-if %crashing%==1 set text5=Zacznijmy od tego, zeby zaczac patchowac pliki .wad - potrzebuje pliku .wad
-if %crashing%==1 set text6=Wiec jezeli mozesz, skopiuj jakis plik .wad do folderu w ktorym jestem
-if %crashing%==1 set text7=Oczekiwanie na plik .wad
-if %crashing%==1 set text8=Patchowanie pliku:
-if %crashing%==1 set text9=Laczna liczba plikow:
-if %crashing%==1 set text10=Patchowanie przebieglo sukcesem.
-if %crashing%==1 set text11=Zpatchowane pliki sa w folderze "wiimmfi-wads"
-if %crashing%==1 set text12=Kopia zapasowa plikow .wad jest w folderze "backup-wads"
-
-set language=1
-goto begin
-:set_language_eng
-cls
-set text1=There was an error while running the program
-set text2=Some of the files needed to run this program were not found
-set text3=Click any button to close the program.
-set text4=Let's begin.
-set text10=There was an error while patching the files.
-set text13=Exiting the patcher in...
-set text5=Actually, you know. Let's begin from that, in order to patch wad file, I need an wad file
-set text6=So, if you can please copy any wad file to this directory where I am.
-set text7=Waiting for .wad files
-set text8=Patching file:
-set text9=Total amount of files:
-set text10=Patching is done.
-set text11=Patched files are in wiimmfi-wads folder
-set text12=Backed up wads are in backup-wads folder
-
-set language=1
-goto begin
+goto update_notice
+:whatsnew_notexist
+cls
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. (Compiled on %last_build% at %at%)
+echo -----------------------------------------------------------------------------------------------------------------------------
+echo.
+echo Error. What's new is not available now.
+echo.
+echo Press any button to go back.
+pause>NUL
+goto update_notice
+
+
+:admin_error
+cls
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. (Compiled on %last_build% at %at%)
+echo.
+echo ERROR.
+echo An error has been occurred. Please try to run this program without ADMIN privileges (or change this batch file name to patcher.bat)
+pause>NUL
+goto admin_error
 :debug_failsafe_begin
 echo initiating debug
 set output=No output
@@ -378,21 +447,43 @@
 if %check%==0 set output=FAIL! Legacy PC found, some commands may not work correct but the program will work and do it's job.
 goto debug_1
 :files_req_err
-cls
-cls
-echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
-echo ------------------------------------------------------------------------------------------------------------------------
-echo.
-echo :------------------------------------------------------------:
-echo  %text1%
-echo  %text2%
-echo   ERROR CODE: 333 -  req failed
-echo :------------------------------------------------------------:
-echo %text3%
+set /a update=0
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo    /---\   ERROR.
+echo   /     \  Some files needed to run this program wasn't found.
+echo  /   !   \ Press any button to download these files.
+echo  ---------
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
+echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
 pause>NUL
-set patchingok=0
-goto end
+goto update_files
 :ndstart
 cls
 echo Hi.
@@ -405,20 +496,20 @@
 :letsbegin_error
 cls
 echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. Compiled on %last_build% at %at%
 echo ------------------------------------------------------------------------------------------------------------------------
 echo.
-echo %text4%
-echo.
-echo %text5%
-echo %text6%
-echo.
-if %rep%==1 if exist *.wad set /a cor=1
-if %rep%==1 if exist *.wad goto letsbegin
-if %rep%==1 echo %text7%.
-if %rep%==2 echo %text7%..
-if %rep%==3 echo %text7%...
-if %rep%==4 echo %text7%....
+echo Let's begin.
+echo.
+echo In order to patch wad file, I need an wad file.
+echo So, if you can please copy any wad file to this directory where I am.
+echo.
+if %rep%==1 if exist "*.wad" set /a cor=1
+if %rep%==1 if exist "*.wad" goto letsbegin
+if %rep%==1 echo Waiting for .wad files.
+if %rep%==2 echo Waiting for .wad files..
+if %rep%==3 echo Waiting for .wad files...
+if %rep%==4 echo Waiting for .wad files....
 if %rep%==4 set /a rep=0
 set /a rep=%rep%+1
 ping localhost -n 3 >NUL
@@ -432,62 +523,114 @@

 cls
 echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. Compiled on %last_build% at %at%
 echo ------------------------------------------------------------------------------------------------------------------------
 echo.
-if %cor%==0 echo %text4%
-if %cor%==1 echo %text4%
+if %cor%==0 echo Let's begin.
+if %cor%==1 echo Let's begin.
 ping localhost -n 3 >NUL
-if not exist *.wad goto letsbegin_error
-echo.
-
+if not exist "*.wad" goto letsbegin_error
+echo.
+set modul=NUL
 rmdir temp /s /q
+
 if not exist temp md temp
 if not exist wiimmfi-wads md wiimmfi-wads
 if not exist backup-wads md backup-wads
+
 for %%f in ("*.wad") do (
 cls
-
-cls
-echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
+echo Wiimmfi WiiWarePatcher - Larsenv, KcrPL, PokeAcer. v%version%. Compiled on %last_build% at %at%
 echo ------------------------------------------------------------------------------------------------------------------------
 echo.
-echo %text8%: %%~nf
-echo %text9%: %file_counter%
+echo Patching file: %%~nf
+echo Total ammount of files to patch: %file_counter%
 echo.
 copy /b "%%f" backup-wads >NUL
+set /a temperrorlev=%errorlevel%
+set modul=copy.exe
+if not %temperrorlev%==0 goto error_patching
+
 Sharpii.exe WAD -u "%%f" temp >NUL
+set /a temperrorlev=%errorlevel%
+set modul=Sharpii.exe
+if not %temperrorlev%==0 goto error_patching
+
 move temp\00000001.app 00000001.app >NUL
+set /a temperrorlev=%errorlevel%
+set modul=move.exe
+if not %temperrorlev%==0 goto error_patching
+
 if %repeatvbs%==0 start %appdata%\WiimmfiPatcher\temp\vbs.vbs
 set patchdebug=%%~nf
-WiiWarePatcher.exe || goto error_ok
+WiiWarePatcher.exe
+set /a temperrorlev=%errorlevel%
+set modul=WiiWarePatcher.exe
+if not %temperrorlev%==0 goto error_patching
+
 move 00000001.app temp\00000001.app >NUL
+set /a temperrorlev=%errorlevel%
+set modul=move.exe
+if not %temperrorlev%==0 goto error_patching
+
 del "%%f"
+set /a temperrorlev=%errorlevel%
+set modul=del.exe
+if not %temperrorlev%==0 goto error_patching
+
 Sharpii.exe WAD -p temp "wiimmfi-wads/%%f"
+set /a temperrorlev=%errorlevel%
+set modul=Sharpii.exe
+if not %temperrorlev%==0 goto error_patching

 rmdir temp /s /q
 set /a repeatvbs=1
 )
 cd wiimmfi-wads
 for %%a in (*.wad) do ren "%%~a" "%%~na_Wiimmfi%%~xa"
+cd wiimmfi-wads
 cd..
+pause
 goto end
-:error_ok
-cls
-cls
-echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
-echo ------------------------------------------------------------------------------------------------------------------------
-echo.
-echo :------------------------------------------:
-echo   %text10%
-echo   ERROR CODE: 404 -  %patchdebug%
-echo :------------------------------------------:
-echo %text3%
+:error_patching
+cls
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo ---------------------------------------------------------------------------------------------------------------------------
+echo    /---\   ERROR.
+echo   /     \  There was an error while patching.
+echo  /   !   \ Error Code: %temperrorlev%
+echo  --------- Failing module: %modul%
+echo.
+if not %temperrorlev%==-532459699 echo.
+if %temperrorlev%==-532459699 echo  Please check your internet connection.
+echo       Press any key to start patching again.
+echo ---------------------------------------------------------------------------------------------------------------------------
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
 pause>NUL
-set patchingok=0
-goto end
+goto begin_main
 :end
 if not exist %appdata%\WiimmfiPatcher\ndlaunch.id echo e >>%appdata%\WiimmfiPatcher\ndlaunch.id
 set /a exiting=10
@@ -498,15 +641,13 @@
 cls
 cls
 echo.
-echo                                      WiiWarePatcher - @KcrPL, @PokeAcer, @Larsenv
+echo Wiimmfi WiiWarePatcher - (C) Larsenv, (C) KcrPL, (C) PokeAcer. v%version%. Compiled on %last_build% at %at%
 echo ------------------------------------------------------------------------------------------------------------------------
 echo.
-if %patchingok%==1 echo %text10%
+if %patchingok%==1 echo Patched files are in wiimmfi-wads folder
+if %patchingok%==1 echo Backed up wads are in backup-wads folder
 if %patchingok%==1 echo.
-if %patchingok%==1 echo %text11%
-if %patchingok%==1 echo %text12%
-if %patchingok%==1 echo.
-echo %text13%
+echo Exiting the patcher in...
 if %exiting%==10 echo :----------: 10
 if %exiting%==9 echo :--------- : 9
 if %exiting%==8 echo :--------  : 8


updated version

updated version

GitOrigin-RevId: 6efbc6b4b8bda91b32857dcf6f39652015d73e48

--- plugins/lombok/makeRelease.bat
+++ plugins/lombok/makeRelease.bat
@@ -1,6 +1,6 @@
 @ECHO OFF

-SET pluginVersion=0.18
+SET pluginVersion=0.19

 for %%X in (2017.2 2017.3 2018.1 LATEST-EAP-SNAPSHOT) do call :buildPlugin %%X


All in

All in

error: pathspec 'run.bat' did not match any file(s) known to git

--- run.bat
+++ run.bat
@@ -0,0 +1 @@
+java -jar WebSitePoller.jar Servers.txt


Added run bat command

Added run bat command

In case you cannot use npm link (e.g. because python hasn't been
installed).

--- run.bat
+++ run.bat
@@ -0,0 +1 @@
+node lib/src/engine/RuleEngineCli -g -f examples/unmanned


win: Fix zlib without tests, speed up clone and clean up libuv build

zlib was only working properly if tests were enabled, since OpenSSL
can use zlib the driver could fail to build if zlib was enabled.
libssh2 officially released v1.5.0 so the build script has been
updated to no longer use the master branch.

--- vc_build.bat
+++ vc_build.bat
@@ -26,11 +26,10 @@
 SET EXIT_CODE_MISSING_BUILD_DEPENDENCY=3
 SET EXIT_CODE_INVALID_BUILD_DEPENDENCY_VERSION=4
 SET EXIT_CODE_CLONE_FAILED=5
-SET EXIT_CODE_CHECKOUT_FAILED=6
-SET EXIT_CODE_BUILD_DEPENDENCY_FAILED=7
-SET EXIT_CODE_BUILD_DRIVER_FAILED=8
-SET EXIT_CODE_INVALID_VERSION=9
-SET EXIT_CODE_PACKAGE_FAILED=10
+SET EXIT_CODE_BUILD_DEPENDENCY_FAILED=6
+SET EXIT_CODE_BUILD_DRIVER_FAILED=7
+SET EXIT_CODE_INVALID_VERSION=8
+SET EXIT_CODE_PACKAGE_FAILED=9

 REM Argument constants
 SET ARGUMENT_BUILD_TYPE_DEBUG=--DEBUG
@@ -110,6 +109,7 @@
 SET GYP_REPOSITORY_URL=https://chromium.googlesource.com/external/gyp.git
 SET LIBSSH2_REPOSITORY_URL=http://git.libssh2.org/libssh2.git
 SET LIBSSH2_DIRECTORY=libssh2
+SET LIBSSH2_BRANCH_TAG_VERSION=libssh2-1.5.0
 SET OPENSSL_REPOSITORY_URL=https://github.com/openssl/openssl.git
 SET OPENSSL_DIRECTORY=openssl
 SET OPENSSL_BRANCH_TAG_VERSION=OpenSSL_1_0_2
@@ -599,29 +599,17 @@
 	REM Determine if Boost atomic should be cloned
 	IF !ENABLE_TESTS! EQU !FALSE! (
 		REM Clone Boost atomic and checkout the appropriate tag
-		ECHO Gathering Boost atomic ^(and dependencies^) > !LOG_BOOST_CLONE!
-		ECHO | SET /P=Gathering Boost atomic ^(and dependencies^) ...
+		ECHO Gathering Boost atomic ^(and dependencies^) !BOOST_BRANCH_TAG_VERSION! > "!LOG_BOOST_CLONE!"
+		ECHO | SET /P=Gathering Boost atomic ^(and dependencies^) !BOOST_BRANCH_TAG_VERSION! ...
 		SET "BOOST_ATOMIC_DEPENDENCIES=atomic assert config mpl preprocessor static_assert type_traits"
 		IF NOT EXIST "!ABSOLUTE_DEPENDENCIES_DIRECTORY!\!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\include" MKDIR "!ABSOLUTE_DEPENDENCIES_DIRECTORY!\!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\include"
 		REM Store current Visual Studio tools environment variables
 		FOR %%A IN (!BOOST_ATOMIC_DEPENDENCIES!) DO (
-			!GIT! clone !BOOST_REPOSITORY_URL!/%%A "!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\%%A" >> !LOG_BOOST_CLONE! 2>&1
-			IF !ERRORLEVEL! EQU 0 (
-				PUSHD "!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\%%A" > NUL
-				ECHO. >> !LOG_BOOST_CLONE!
-				!GIT! checkout !BOOST_BRANCH_TAG_VERSION! >> !LOG_BOOST_CLONE! 2>&1.
-				IF !ERRORLEVEL! EQU 0 (
-					XCOPY /E /Y include "!ABSOLUTE_DEPENDENCIES_DIRECTORY!\!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\include" >> !LOG_BOOST_CLONE!
-				) ELSE (
-					ECHO FAILED!
-					ECHO 	See !LOG_BOOST_CLONE! for more details
-					EXIT /B !EXIT_CODE_CHECKOUT_FAILED!
-				)
-				POPD
-			) ELSE (
+			!GIT! clone --depth 1 --branch !BOOST_BRANCH_TAG_VERSION! --single-branch !BOOST_REPOSITORY_URL!/%%A "!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\%%A" >> "!LOG_BOOST_CLONE!" 2>&1
+			IF NOT !ERRORLEVEL! EQU 0 (
 				ECHO FAILED!
 				ECHO 	See !LOG_BOOST_CLONE! for more details
-				EXIT /B !EXIT_CODE_CHECKOUT_FAILED!
+				EXIT /B !EXIT_CODE_CLONE_FAILED!
 			)
 		)
 		ECHO done.
@@ -630,33 +618,23 @@

 REM Clone libuv and checkout the appropriate tag
 IF NOT EXIST "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBUV_DIRECTORY!" (
-	ECHO | SET /P=Cloning libuv ...
-	!GIT! clone !LIBUV_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBUV_DIRECTORY!" > !LOG_LIBUV_BUILD! 2>&1
+	ECHO Cloning libuv !LIBUV_BRANCH_TAG_VERSION! > "!LOG_LIBUV_BUILD!"
+	ECHO | SET /P=Cloning libuv !LIBUV_BRANCH_TAG_VERSION! ...
+	!GIT! clone --depth 1 --branch !LIBUV_BRANCH_TAG_VERSION! --single-branch !LIBUV_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBUV_DIRECTORY!" >> "!LOG_LIBUV_BUILD!" 2>&1
 	IF !ERRORLEVEL! EQU 0 (
 		ECHO done.
-		PUSHD "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBUV_DIRECTORY!" > NUL
-		ECHO | SET /P=Checking out !LIBUV_BRANCH_TAG_VERSION! ...
-		ECHO. >> !LOG_LIBUV_BUILD!
-		!GIT! checkout !LIBUV_BRANCH_TAG_VERSION! >> !LOG_LIBUV_BUILD! 2>&1
+		REM Clone GYP (libuv dependency) to correctly use googlesource URL
+		ECHO. >> "!LOG_LIBUV_BUILD!"
+		ECHO Cloning gyp >> "!LOG_LIBUV_BUILD!"
+		ECHO | SET /P=Cloning gyp ...
+		!GIT! clone --depth 1 --single-branch !GYP_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBUV_DIRECTORY!\build\gyp" >> "!LOG_LIBUV_BUILD!" 2>&1
 		IF !ERRORLEVEL! EQU 0 (
 			ECHO done.
-			REM Clone GYP (libuv dependency) to correctly use googlesource URL
-			ECHO | SET /P=Cloning gyp ...
-			ECHO. >> !LOG_LIBUV_BUILD!
-			!GIT! clone !GYP_REPOSITORY_URL! build\gyp >> !LOG_LIBUV_BUILD! 2>&1
-			IF !ERRORLEVEL! EQU 0 (
-				ECHO done.
-			) ELSE (
-				ECHO FAILED!
-				ECHO 	See !LOG_LIBUV_BUILD! for more details
-				EXIT /B !EXIT_CODE_CLONE_FAILED!
-			)
 		) ELSE (
 			ECHO FAILED!
 			ECHO 	See !LOG_LIBUV_BUILD! for more details
-			EXIT /B !EXIT_CODE_CHECKOUT_FAILED!
-		)
-		POPD
+			EXIT /B !EXIT_CODE_CLONE_FAILED!
+		)
 	) ELSE (
 		ECHO FAILED!
 		ECHO 	See !LOG_LIBUV_BUILD! for more details
@@ -667,22 +645,11 @@
 REM Clone zlib (libssh2 dependency) and checkout the appropriate tag
 IF !ENABLE_ZLIB! EQU !TRUE! (
 	IF NOT EXIST "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" (
-		ECHO | SET /P=Cloning zlib ...
-		!GIT! clone !ZLIB_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" > !LOG_ZLIB_BUILD! 2>&1
+		ECHO Cloning zlib !ZLIB_BRANCH_TAG_VERSION! > "!LOG_ZLIB_BUILD!"
+		ECHO | SET /P=Cloning zlib !ZLIB_BRANCH_TAG_VERSION! ...
+		!GIT! clone --depth 1 --branch !ZLIB_BRANCH_TAG_VERSION! --single-branch !ZLIB_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" >> "!LOG_ZLIB_BUILD!" 2>&1
 		IF !ERRORLEVEL! EQU 0 (
 			ECHO done.
-			PUSHD "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" > NUL
-			ECHO | SET /P=Checking out !ZLIB_BRANCH_TAG_VERSION! ...
-			ECHO. >> !LOG_ZLIB_BUILD!
-			!GIT! checkout !ZLIB_BRANCH_TAG_VERSION! >> !LOG_ZLIB_BUILD! 2>&1
-			IF !ERRORLEVEL! EQU 0 (
-				ECHO done.
-			) ELSE (
-				ECHO FAILED!
-				ECHO 	See !LOG_ZLIB_BUILD! for more details
-				EXIT /B !EXIT_CODE_CHECKOUT_FAILED!
-			)
-			POPD
 		) ELSE (
 			ECHO FAILED!
 			ECHO 	See !LOG_ZLIB_BUILD! for more details
@@ -695,8 +662,9 @@
 IF !ENABLE_LIBSSH2! EQU !TRUE! (
 	REM Clone libssh2
 	IF NOT EXIST "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBSSH2_DIRECTORY!" (
-		ECHO | SET /P=Cloning libssh2 ...
-		!GIT! clone !LIBSSH2_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBSSH2_DIRECTORY!" > !LOG_LIBSSH2_BUILD! 2>&1
+		ECHO Cloning libssh2 !LIBSSH2_BRANCH_TAG_VERSION! > "!LOG_LIBSSH2_BUILD!"
+		ECHO | SET /P=Cloning libssh2 !LIBSSH2_BRANCH_TAG_VERSION! ...
+		!GIT! clone --depth 1 --branch !LIBSSH2_BRANCH_TAG_VERSION! --single-branch !LIBSSH2_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!LIBSSH2_DIRECTORY!" >> "!LOG_LIBSSH2_BUILD!" 2>&1
 		IF !ERRORLEVEL! EQU 0 (
 			ECHO done.
 		) ELSE (
@@ -711,22 +679,11 @@
 IF !ENABLE_OPENSSL! EQU !TRUE! (
 	REM Clone OpenSSL and checkout the appropriate tag
 	IF NOT EXIST "!DEPENDENCIES_SOURCE_DIRECTORY!\!OPENSSL_DIRECTORY!" (
-		ECHO | SET /P=Cloning OpenSSL ...
-		!GIT! clone !OPENSSL_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!OPENSSL_DIRECTORY!" > !LOG_OPENSSL_BUILD! 2>&1
+		ECHO Cloning OpenSSL !OPENSSL_BRANCH_TAG_VERSION! > "!LOG_OPENSSL_BUILD!"
+		ECHO | SET /P=Cloning OpenSSL !OPENSSL_BRANCH_TAG_VERSION! ...
+		!GIT! clone --depth 1 --branch !OPENSSL_BRANCH_TAG_VERSION! --single-branch !OPENSSL_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!OPENSSL_DIRECTORY!" >> "!LOG_OPENSSL_BUILD!" 2>&1
 		IF !ERRORLEVEL! EQU 0 (
 			ECHO done.
-			PUSHD "!DEPENDENCIES_SOURCE_DIRECTORY!\!OPENSSL_DIRECTORY!" > NUL
-			ECHO | SET /P=Checking out !OPENSSL_BRANCH_TAG_VERSION! ...
-			ECHO. >> !LOG_OPENSSL_BUILD!
-			!GIT! checkout !OPENSSL_BRANCH_TAG_VERSION! >> !LOG_OPENSSL_BUILD! 2>&1
-			IF !ERRORLEVEL! EQU 0 (
-				ECHO done.
-			) ELSE (
-				ECHO FAILED!
-				ECHO 	See !LOG_OPENSSL_BUILD! for more details
-				EXIT /B !EXIT_CODE_CHECKOUT_FAILED!
-			)
-			POPD
 		) ELSE (
 			ECHO FAILED!
 			ECHO 	See !LOG_OPENSSL_BUILD! for more details
@@ -1129,17 +1086,32 @@
 REM                               install; false otherwise
 REM @param log-filename Absolute path and filename for log output
 :BUILDLIBUV [source-directory] [install-directory] [target-architecture] [library-type] [is-windows-sdk-build] [is-clean-after-install] [log-filename]
+	REM Create library variables from arguments
+	SET LIBUV_SOURCE_DIRECTORY=%~1"
+	SHIFT
+	SET "LIBUV_INSTALL_DIRECTORY=%~1"
+	SHIFT
+	SET LIBUV_TARGET_ARCHITECTURE=%~1
+	SHIFT
+	SET "LIBUV_LIBRARY_TYPE=%~1"
+	SHIFT
+	SET LIBUV_IS_WINDOWS_SDK_BUILD=%~1
+	SHIFT
+	SET LIBUV_IS_CLEAN_AFTER_INSTALL=%~1
+	SHIFT
+	SET "LIBUV_LOG_FILENAME=%~1"
+
 	REM Build libuv dependency
 	ECHO Building libuv
-	PUSHD "%~1" > NUL
-	IF %~3 EQU !ARCHITECTURE_32BIT! (
+	PUSHD "!LIBUV_SOURCE_DIRECTORY!" > NUL
+	IF !LIBUV_TARGET_ARCHITECTURE! EQU !ARCHITECTURE_32BIT! (
 		SET LIBUV_TARGET_ARCHITECTURE=x86
 		SET LIBUV_VC_TARGET_ARCHITECTURE=Win32
 	) ELSE (
 		SET LIBUV_TARGET_ARCHITECTURE=x64
 		SET LIBUV_VC_TARGET_ARCHITECTURE=x64
 	)
-	IF "%~4" == "!LIBRARY_TYPE_SHARED!" (
+	IF "!LIBUV_LIBRARY_TYPE!" == "!LIBRARY_TYPE_SHARED!" (
 		SET LIBUV_LIBRARY_TYPE=shared
 	) ELSE (
 		SET LIBUV_LIBRARY_TYPE=static
@@ -1147,62 +1119,62 @@
 	ECHO | SET /P=Configuring libuv ...
 	REM Modify the libuv build script to ensure proper Visual Studio detection
 	SET LIBUV_VCBUILD_SCRIPT=vcbuild.bat
-	IF "%~5" == "!FALSE!" (
+	IF "!LIBUV_IS_WINDOWS_SDK_BUILD!" == "!FALSE!" (
 		SET LIBUV_VCBUILD_SCRIPT=vcbuild-modified.bat
 		TYPE vcbuild.bat | FINDSTR /V /C:"if defined WindowsSDKDir goto select-target" | FINDSTR /V /C:"if defined VCINSTALLDIR goto select-target" > !LIBUV_VCBUILD_SCRIPT!
 	)
-	ECHO !LIBUV_VCBUILD_SCRIPT! release nobuild !LIBUV_TARGET_ARCHITECTURE! !LIBUV_LIBRARY_TYPE! >> "%~7"
-	CALL !LIBUV_VCBUILD_SCRIPT! release nobuild !LIBUV_TARGET_ARCHITECTURE! !LIBUV_LIBRARY_TYPE! >> "%~7" 2>&1
-	IF NOT !ERRORLEVEL! EQU 0 (
-		ECHO FAILED!
-		ECHO 	See %~7 for more details
+	ECHO !LIBUV_VCBUILD_SCRIPT! release nobuild !LIBUV_TARGET_ARCHITECTURE! !LIBUV_LIBRARY_TYPE! >> "!LIBUV_LOG_FILENAME!"
+	CALL !LIBUV_VCBUILD_SCRIPT! release nobuild !LIBUV_TARGET_ARCHITECTURE! !LIBUV_LIBRARY_TYPE! >> "!LIBUV_LOG_FILENAME!" 2>&1
+	IF NOT !ERRORLEVEL! EQU 0 (
+		ECHO FAILED!
+		ECHO 	See !LIBUV_LOG_FILENAME! for more details
 		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
 	)
 	ECHO done.
 	ECHO | SET /P=Building libuv ...
-	ECHO !MSBUILD! uv.sln /T:libuv /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7"
-	!MSBUILD! uv.sln /T:libuv /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7" 2>&1
-	IF NOT !ERRORLEVEL! EQU 0 (
-		ECHO FAILED!
-		ECHO 	See %~7 for more details
+	ECHO !MSBUILD! uv.sln /T:libuv /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "!LIBUV_LOG_FILENAME!"
+	!MSBUILD! uv.sln /T:libuv /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "!LIBUV_LOG_FILENAME!" 2>&1
+	IF NOT !ERRORLEVEL! EQU 0 (
+		ECHO FAILED!
+		ECHO 	See !LIBUV_LOG_FILENAME! for more details
 		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
 	)
 	ECHO done.
 	ECHO | SET /P=Installing libuv ...
-	MKDIR "%~2\!LIBRARY_INCLUDE_DIRECTORY!"
-	IF NOT !ERRORLEVEL! EQU 0 (
-		ECHO FAILED!
-		ECHO 	See %~7 for more details
+	MKDIR "!LIBUV_INSTALL_DIRECTORY!\!LIBRARY_INCLUDE_DIRECTORY!"
+	IF NOT !ERRORLEVEL! EQU 0 (
+		ECHO FAILED!
+		ECHO 	See !LIBUV_LOG_FILENAME! for more details
 		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
 	)
-	XCOPY /E /Y include "%~2\!LIBRARY_INCLUDE_DIRECTORY!" >> "%~7" 2>&1
-	IF NOT !ERRORLEVEL! EQU 0 (
-		ECHO FAILED!
-		ECHO 	See %~7 for more details
+	XCOPY /E /Y include "!LIBUV_INSTALL_DIRECTORY!\!LIBRARY_INCLUDE_DIRECTORY!" >> "!LIBUV_LOG_FILENAME!" 2>&1
+	IF NOT !ERRORLEVEL! EQU 0 (
+		ECHO FAILED!
+		ECHO 	See !LIBUV_LOG_FILENAME! for more details
 		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
 	)
-	MKDIR "%~2\!LIBRARY_BINARY_DIRECTORY!"
-	IF NOT !ERRORLEVEL! EQU 0 (
-		ECHO FAILED!
-		ECHO 	See %~7 for more details
+	MKDIR "!LIBUV_INSTALL_DIRECTORY!\!LIBRARY_BINARY_DIRECTORY!"
+	IF NOT !ERRORLEVEL! EQU 0 (
+		ECHO FAILED!
+		ECHO 	See !LIBUV_LOG_FILENAME! for more details
 		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
 	)
-	XCOPY /E /Y Release\lib "%~2\!LIBRARY_BINARY_DIRECTORY!" >> "%~7" 2>&1
+	XCOPY /E /Y Release\lib "!LIBUV_INSTALL_DIRECTORY!\!LIBRARY_BINARY_DIRECTORY!" >> "!LIBUV_LOG_FILENAME!" 2>&1
 	IF NOT !ERRORLEVEL! EQU 0 (
 		REM Try again in the other location libuv likes to put files
-		XCOPY /Y Release\*.* "%~2\!LIBRARY_BINARY_DIRECTORY!" >> "%~7" 2>&1
+		XCOPY /Y Release\*.* "!LIBUV_INSTALL_DIRECTORY!\!LIBRARY_BINARY_DIRECTORY!" >> "!LIBUV_LOG_FILENAME!" 2>&1
 		IF NOT !ERRORLEVEL! EQU 0 (
 			ECHO FAILED!
-			ECHO 	See %~7 for more details
+			ECHO 	See !LIBUV_LOG_FILENAME! for more details
 			EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
 		)
 	)
 	ECHO done.
-	IF "%~6" == "!TRUE!" (
+	IF "!LIBUV_IS_CLEAN_AFTER_INSTALL!" == "!TRUE!" (
 		ECHO | SET /P=Cleaning libuv build ...
-		ECHO !MSBUILD! uv.sln /T:Clean /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7"
-		!MSBUILD! uv.sln /T:Clean /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7" 2>&1
-		IF EXIST Release RMDIR /S /Q Release >> "%~7" 2>&1
+		ECHO !MSBUILD! uv.sln /T:Clean /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "!LIBUV_LOG_FILENAME!"
+		!MSBUILD! uv.sln /T:Clean /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "!LIBUV_LOG_FILENAME!" 2>&1
+		IF EXIST Release RMDIR /S /Q Release >> "!LIBUV_LOG_FILENAME!" 2>&1
 		ECHO done.
 	)
 	POPD
@@ -1496,12 +1468,14 @@
 		SET "DRIVER_CMAKE_COMMAND_LINE=!DRIVER_CMAKE_COMMAND_LINE! -DCASS_BUILD_STATIC=ON -DCASS_USE_STATIC_LIBS=ON"
 		SET DRIVER_VISUAL_STUDIO_TARGETS=cassandra_static
 	)
+	IF NOT "!TESTS_ZLIB_LIBRARY_DIRECTORY!" == "" (
+		SET "DRIVER_CMAKE_COMMAND_LINE=!DRIVER_CMAKE_COMMAND_LINE! -DCASS_USE_ZLIB=ON -DZLIB_ROOT_DIR=^"!TESTS_ZLIB_LIBRARY_DIRECTORY!^""
+	) ELSE (
+		SET "DRIVER_CMAKE_COMMAND_LINE=!DRIVER_CMAKE_COMMAND_LINE! -DCASS_USE_ZLIB=OFF"
+	)
 	IF NOT "!BOOST_LIBRARY_DIRECTORY!" == "" (
 		IF NOT "!TESTS_LIBSSH2_LIBRARY_DIRECTORY!" == "" (
 			SET "DRIVER_CMAKE_COMMAND_LINE=!DRIVER_CMAKE_COMMAND_LINE! -DCASS_BUILD_TESTS=ON -DBOOST_ROOT_DIR=^"!BOOST_LIBRARY_DIRECTORY!^" -DLIBSSH2_ROOT_DIR=^"!TESTS_LIBSSH2_LIBRARY_DIRECTORY!^""
-			IF NOT "!TESTS_ZLIB_LIBRARY_DIRECTORY!" == "" (
-				SET "DRIVER_CMAKE_COMMAND_LINE=!DRIVER_CMAKE_COMMAND_LINE! -DZLIB_ROOT_DIR=^"!TESTS_ZLIB_LIBRARY_DIRECTORY!^""
-			)
 		)
 	)
 	IF NOT "!DRIVER_BOOST_DEPENDENCY_SOURCE_DIRECTORY!" == "" (


better source mirror for libxml2

better source mirror for libxml2

--- build_libxml.bat
+++ build_libxml.bat
@@ -1,7 +1,7 @@
 setlocal
 call settings.bat

-call fetch.bat ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz libxml2-2.9.2
+call fetch.bat http://xmlsoft.org/sources/libxml2-2.9.2.tar.gz libxml2-2.9.2

 if "%compiler%" == "MINGW" (
   SET FLAGS="compiler=mingw"


Created a build package script to automatically create the .unitypackage for github and probably the asset store

error: pathspec 'buildpackage.bat' did not match any file(s) known to git

--- buildpackage.bat
+++ buildpackage.bat
@@ -0,0 +1,28 @@
+@echo off
+
+rem Example Execution: buildpackage.bat "C:\Program Files\Unity\Editor\Unity.exe"
+
+rem Build package takes in the path to our unity installation
+set unityPath=%1
+
+rem shortcut to our shared command line arguments
+set general=-batchmode -quit -projectPath "%cd%"
+
+rem First we export our tests and samples folder into our main preview tween folder
+echo Building Test and Sample Packages
+%unityPath% %general% -exportPackage Assets\Tests Assets\PreviewTween\Tests.unitypackage
+%unityPath% %general% -exportPackage Assets\Samples Assets\PreviewTween\Samples.unitypackage
+
+rem then we package the main folder as a new package ready for upload
+echo Building PreviewTween Package
+%unityPath% %general% -exportPackage Assets\PreviewTween PreviewTween.unitypackage
+
+rem then we delete the intermediate files
+echo Deleting intermediate files
+del Assets\PreviewTween\Tests.unitypackage
+del Assets\PreviewTween\Tests.unitypackage.meta
+del Assets\PreviewTween\Samples.unitypackage
+del Assets\PreviewTween\Samples.unitypackage.meta
+
+rem we are now done
+echo Complete


init.bat: Fix Windows 10 broken alt-tab behavior

Minimized windows now go to the end of the alt-tab queue. Any other
behavior is idiotic and merely the result of not thinking.

Microsoft has gone back and forth on this one over the years across
multiple versions of Windows, fixing it and then breaking it again. I
suspect someone who knows better fixes it, then later someone who
doesn't understand UI design breaks it again later, stuck in an endless
cycle. (GitHub's stealing of the "/" key follows a similar pattern, and
in that case I have proof the above explanation is the cause.)

--- init.bat
+++ init.bat
@@ -5,6 +5,8 @@
 :: toy operating system with most configuration inaccessible to scripts.

 :: Annoyances
+set key="HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"
+reg add "%key%" /f /v AltTabSettings            /t REG_DWORD /d 1
 set key="HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
 reg add "%key%" /f /v TaskbarGlomLevel          /t REG_DWORD /d 2
 reg add "%key%" /f /v HideFileExt               /t REG_DWORD /d 0


--- init.bat
+++ init.bat
@@ -1,6 +1,7 @@
 @echo off

-chcp 65001>nul
+rem Do not set codepage since it makes Eclipse act weird on DEV14
+rem chcp 65001>nul

 prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s


Инициализация проекта

Инициализация проекта

error: pathspec 'yii.bat' did not match any file(s) known to git

--- yii.bat
+++ yii.bat
@@ -0,0 +1,20 @@
+@echo off
+
+rem -------------------------------------------------------------
+rem  Yii command line bootstrap script for Windows.
+rem
+rem  @author Qiang Xue <qiang.xue@gmail.com>
+rem  @link http://www.yiiframework.com/
+rem  @copyright Copyright (c) 2008 Yii Software LLC
+rem  @license http://www.yiiframework.com/license/
+rem -------------------------------------------------------------
+
+@setlocal
+
+set YII_PATH=%~dp0
+
+if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe
+
+"%PHP_COMMAND%" "%YII_PATH%yii" %*
+
+@endlocal


* Renamed doc_build to doc_src

* Renamed doc_build to doc_src

--- makedocs.bat
+++ makedocs.bat
@@ -2,7 +2,7 @@

 REM docs\build_autodoc_files.py
-sphinx-build -b html doc_build docs
+sphinx-build -b html doc_src docs

 REM c:\.temp\pudge\pudge\cli  --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto  -v  -d website  -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests   -t doc_source\template


parametrize PYTHON and TSCRIPT env vars

parametrize PYTHON and TSCRIPT env vars

--- make.bat
+++ make.bat
@@ -6,14 +6,19 @@
 REM running tests (for tests run "make.bat test").
 REM This script is modeled after my Windows installation so it might
 REM need some adjustements in order to work on your system.
-REM The following assumptions are made:
-REM - the default Python interpreter is in C:\Python27\python.exe
-REM - the right Visual Studio version is installed
-REM - in case of Python 2.4 and 2.5 mingw32 compiler is used
+REM By default C:\Python27\python.exe is used.
+REM To run another Python version run:
+REM set PYTHON=C:\Python33\python.exe & make test
+REM In case of Python 2.4 and 2.5 mingw32 compiler is used.
 REM ==========================================================================

-SET PYTHON=C:\Python27\python.exe
+if "%PYTHON%" == "" (
+    SET PYTHON=C:\Python27\python.exe
+)
+if "%TSCRIPT%" == "" (
+    SET TSCRIPT=test\test_psutil.py
+)
 SET PATH=%PYTHON%;%PATH%
 SET PATH=C:\MinGW\bin;%PATH%

@@ -71,7 +76,7 @@
 if "%1" == "test" (
     :test
     call :install
-    %PYTHON% test/test_psutil.py
+    %PYTHON% %TSCRIPT%
     goto :eof
 )


make.bat update

make.bat update

Added  checks for the executables.

--- make.bat
+++ make.bat
@@ -1,31 +1,62 @@
-@echo off
-
-if not defined RMG (
-echo Error: RMG variable not defined; please set to the location of your RMG installation.
-goto end
-)
-
-mkdir "%rmg%"\bin
-
-echo Compiling GATPFit...
-cd "%rmg%"\source\GATPFit
-g95 -Wall -fbounds-check *.f -L"%rmg%"\bin -lblas -llapack -o "%rmg%"\bin\GATPFit.exe
-
-echo Compiling fame...
-cd "%rmg%"\source\fame
-g95 -Wall -fbounds-check -O3 math.f90 states.f90 specfun.f90 _modes.f90 network.f90 io.f90 mastereqn.f90 msc.f90 rs.f90 model.f90 fame.f90 -L"%rmg%"\bin -lblas -llapack -o "%rmg%"\bin\fame.exe
-
-echo Compiling frankie...
-cd "%rmg%"\source\frankie
-g95 -Wall -fbounds-check *.f90 -o "%rmg%"\bin\frankie.exe
-
-echo Compiling dassl...
-cd "%rmg%"\source\dassl
-g95 call_dasslAUTO.f90 daux.f ddassl.f dlinpk.f getflux.f reaction_flux.f res.f res_daepack.f -o "%rmg%"\bin\dasslAUTO.exe
-
-echo This script does NOT compile the Java code; use the command "ant jar" to do so.
-
-cd "%rmg%"
-
-:end
-pause
+@echo off
+
+if not defined RMG (
+echo Error: RMG variable not defined; please set to the location of your RMG installation.
+goto end
+)
+
+mkdir "%rmg%"\bin
+
+echo Compiling GATPFit...
+cd "%rmg%"\source\GATPFit
+g95 -Wall -fbounds-check *.f -L"%rmg%"\bin -lblas -llapack -o "%rmg%"\bin\GATPFit.exe
+
+IF EXIST  "%RMG%"\bin\GATPFit.exe (
+        echo GATPFit.exe created succesfully.
+) ELSE (
+	echo Compilation failed. Make sure blas.dll and lapack.dll are in %RMG%\bin folder. You can download from https://github.com/GreenGroup/RMG-Java/downloads
+	GOTO end
+)
+
+echo Compiling fame...
+cd "%rmg%"\source\fame
+g95 -Wall -fbounds-check -O3 math.f90 states.f90 specfun.f90 _modes.f90 network.f90 io.f90 mastereqn.f90 msc.f90 rs.f90 model.f90 fame.f90 -L"%rmg%"\bin -lblas -llapack -o "%rmg%"\bin\fame.exe
+
+IF EXIST  "%RMG%"\bin\fame.exe (
+        echo GATPFit.exe created succesfully.
+) ELSE (
+	echo Compilation failed. Check g95 output.
+	GOTO end
+)
+
+echo Compiling frankie...
+cd "%rmg%"\source\frankie
+g95 -Wall -fbounds-check *.f90 -o "%rmg%"\bin\frankie.exe
+
+
+IF EXIST  "%RMG%"\bin\frankie.exe (
+        echo GATPFit.exe created succesfully.
+) ELSE (
+	echo Compilation failed. Check g95 output.
+	GOTO end
+)
+
+
+echo Compiling dassl...
+cd "%rmg%"\source\dassl
+g95 call_dasslAUTO.f90 daux.f ddassl.f dlinpk.f getflux.f reaction_flux.f res.f res_daepack.f -o "%rmg%"\bin\dasslAUTO.exe
+
+IF EXIST  "%RMG%"\bin\dasslAUTO.exe (
+        echo GATPFit.exe created succesfully.
+) ELSE (
+	echo Compilation failed. Check g95 output.
+	GOTO end
+)
+
+echo Compiled Fortran code succesfully. You should have GATPFit, fame, frankie, dasslAUTO executables in "%RMG%"\bin folder.
+echo This script does NOT compile the Java code; use the command "ant jar" to do so.
+
+cd "%rmg%"
+
+:end
+pause


Find tmx2lua path correctly when it is not in the current directory

--- make.bat
+++ make.bat
@@ -10,14 +10,14 @@

 	for %%X in (tmx2lua.exe) do (set FOUND=%%~$PATH:X)

-	if "%FOUND%"=="" (
+	if "!FOUND!"=="" (
 		echo Cannot find tmx2lua.exe in the PATH
 		echo You can download it here: https://github.com/kyleconroy/tmx2lua/downloads
 		echo.
 		pause
 		goto :end
 	) else (
-		echo found %FOUND%
+		echo found !FOUND!
 		goto :tmx2lua
 	)
 )


Add missing '+' character within '-XX:+UseG1GC' inside setenv.bat

--- etc/tomcat/bin/setenv.bat
+++ etc/tomcat/bin/setenv.bat
@@ -19,7 +19,7 @@
 if not errorlevel 1 (
     echo Already declared a garbage collector
 ) else (
-    set CATALINA_OPTS=%CATALINA_OPTS% -XX:UseG1GC
+    set CATALINA_OPTS=%CATALINA_OPTS% -XX:+UseG1GC
 )

 rem We need to send a 'portal.home' system property to the JVM;  use the value of PORTAL_HOME, if


Added sed

Added sed

--- styles/vendor/kendo/update.cmd
+++ styles/vendor/kendo/update.cmd
@@ -5,5 +5,5 @@
 del /S /Q web\*.css

 REM use -i.bak if you need a backup file before changes
-sed -i s/fonts\/DejaVu\/Deja/Deja/g web/fonts/DejaVu/dejavu.less
-sed -i s/textures/..\/textures/g web/common/inputs.less
+sed -i 's/fonts\/DejaVu\/Deja/Deja/g' web/fonts/DejaVu/dejavu.less
+sed -i 's/"textures/"..\/textures/g' web/common/inputs.less


2017-04-01-00:10

--- auto.bat
+++ auto.bat
@@ -7,6 +7,6 @@
 For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%a-%%b-%%c)
 For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a:%%b)

-git commit -m %mydate-%mytime
+git commit -m %mydate%-%mytime%

 git push origin master:master


tneouhoetnuhotnehusotenuhaotnuhstnaothuoa

--- scripts/ci/appveyor/setup_cppdb.bat
+++ scripts/ci/appveyor/setup_cppdb.bat
@@ -7,9 +7,7 @@

 cd "%USERPROFILE%\cppdb\build"

-"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
-
-cmake -DDISABLE_SQLITE="ON" -DDISABLE_PQ="ON" -DDISABLE_ODBC="ON" -G "NMake Makefiles" ..
+cmake -DDISABLE_SQLITE="ON" -DDISABLE_PQ="ON" -DDISABLE_ODBC="ON" -G "Visual Studio 14" ..
 cmake --build .

 dir "%USERPROFILE%\cppdb"


update client bat

update client bat

--- runclient.bat
+++ runclient.bat
@@ -1,6 +1,6 @@
 @echo off
 set PDIR=%~dp0
 cd %PDIR%RobustToolbox\Bin\Client
-start SS14.Client.exe %*
+start Robust.Client.exe %*
 cd %PDIR%
 set PDIR=


Delete add-cleaner-to-startup.bat

Delete add-cleaner-to-startup.bat

--- src/add-cleaner-to-startup.bat
+++ src/add-cleaner-to-startup.bat
@@ -1,7 +0,0 @@
-::
-:: add-cleaner-to-startup.bat
-:: Bypasses default powershell scripts execution policy, then runs the powershell script
-::
-:: (c) May 2015 Raymel Francisco
-::
-powershell.exe -noprofile -executionpolicy bypass -file add-cleaner-to-startup.ps1


Autostart of WMSVC and reboot server after setup.

--- IIS/_setup.cmd
+++ IIS/_setup.cmd
@@ -40,6 +40,9 @@
 %WEBPICMD% /Install /AcceptEula /Products:"IIS7,ARRv3_0,ASPNET45,NetFxExtensibility45"
 %WEBPICMD% /Install /AcceptEula /Products:"FTPServer,IISManagementScriptsAndTools,ManagementService,UrlRewrite2,WDeploy36,WDeploy_2_1,AppWarmUp,BasicAuthentication,CertProvider,CustomLogging,DynamicContentCompression,FTPExtensibility,HTTPRedirection,IPSecurity,Tracing,URLAuthorization"

+REM -- Enable Web Management Service
+SC config wmsvc start=auto
+
 REM -- Use AP identity as anonymous request identity
 %APPCMD% set config -section:system.webServer/security/authentication/anonymousAuthentication /userName:"" /commit:apphost

@@ -65,4 +68,6 @@
 ECHO Applying IIS Crypto best practices template...
 iiscryptocli /template best

-ECHO Done. Please reboot server to apply settings.
+ECHO Done. Your server will be rebooted to apply settings.
+PAUSE
+SHUTDOWN /r /t 0 /d p:4:2


6.0.0-beta-006

--- pack.bat
+++ pack.bat
@@ -1,6 +1,6 @@
 @echo off
 set configuration=Debug
-set version-suffix="beta-003"
+set version-suffix="beta-006"
 clean ^
   && dotnet restore ^
   && dotnet build src\Remote.Linq                           --configuration %configuration% ^


since TB59 sideloading no longer works, pack.bat to create xpi file faster

error: pathspec 'pack.bat' did not match any file(s) known to git

--- pack.bat
+++ pack.bat
@@ -0,0 +1,4 @@
+del TbSync.xpi
+"C:\Program Files\7-Zip\7zG.exe" a -tzip TbSync.xpi components content defaults locale skin chrome.manifest install.rdf LICENSE.txt README.md
+
+


Missed that endlocal when deleting, last time

--- @Pythia/install_requirements.bat
+++ @Pythia/install_requirements.bat
@@ -30,7 +30,6 @@
 GOTO END_OK

 :END_PIP_ERROR
-  endlocal enabledelayedexpansion
   ECHO.
   ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   ECHO An error happened during requirements installation. Your python environment is


windows 启动脚本

windows 启动脚本

error: pathspec 'Agent/src/main/scripts/start.bat' did not match any file(s) known to git

--- Agent/src/main/scripts/start.bat
+++ Agent/src/main/scripts/start.bat
@@ -0,0 +1,2 @@
+@echo off
+java -jar agent-1.0.jar


Delete BuildVSIX.bat

Delete BuildVSIX.bat

--- BuildVSIX.bat
+++ BuildVSIX.bat
@@ -1,6 +0,0 @@
-
-xcopy /y %1\nuget\output\* %1\source\Grace.Templates\packages\
-
-chdir %1\output\Tools\
-
-Grace.VSIXPackageCreater.exe %2 %1\source\Grace.Templates\ %1\output\Grace.Templates.vsix


iis: build_modsecurity.bat fixies

iis: build_modsecurity.bat fixies

This commit enable a cleanup on the mod_security build directory
avoiding symbols with different architectures.

--- iis/build_modsecurity.bat
+++ iis/build_modsecurity.bat
@@ -11,15 +11,18 @@

 cd ..\apache2
 del *.obj *.dll *.lib
+del libinjection\*.obj libinjection\*.dll libinjection\*.lib
 NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre LIBXML2=..\iis\%DEPENDENCIES_DIR%\libxml2 LUA=..\iis\%DEPENDENCIES_DIR%\lua\src VERSION=VERSION_IIS
 @if NOT (%ERRORLEVEL%) == (0) goto build_failed

 cd ..\mlogc
+del *.obj *.dll *.lib
 nmake -f Makefile.win clean
 nmake -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre CURL=..\iis\%DEPENDENCIES_DIR%\curl VERSION=VERSION_IIS
 @if NOT (%ERRORLEVEL%) == (0) goto build_failed

 cd ..\iis
+del *.obj *.dll *.lib
 nmake -f Makefile.win clean
 NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre LIBXML2=..\iis\%DEPENDENCIES_DIR%\libxml2 LUA=..\iis\%DEPENDENCIES_DIR%\lua\src VERSION=VERSION_IIS
 @if NOT (%ERRORLEVEL%) == (0) goto build_failed


Changer start.bat for the new launcher

Changer start.bat for the new launcher

--- autorestart.bat
+++ autorestart.bat
@@ -1,3 +0,0 @@
-:1
-	python bot_asurix.py
-goto 1


adding missing file

adding missing file

error: pathspec 'install/build_package.bat' did not match any file(s) known to git

--- install/build_package.bat
+++ install/build_package.bat
@@ -0,0 +1,109 @@
+@echo off
+
+ECHO =========== Compiling ELENA files ==================
+
+md %~dp0\output
+md %~dp0\output\bin
+md %~dp0\output\bin\templates
+md %~dp0\output\bin\scripts
+md %~dp0\output\doc
+md %~dp0\output\examples
+md %~dp0\output\examples\console
+md %~dp0\output\examples\console\helloworld
+md %~dp0\output\examples\console\sum
+
+copy %~dp0\..\bin\asm2binx.exe %~dp0\output\bin
+copy %~dp0\..\bin\elc.exe %~dp0\output\bin
+copy %~dp0\..\bin\elide.exe %~dp0\output\bin
+copy %~dp0\..\bin\sg.exe %~dp0\output\bin
+copy %~dp0\..\bin\elt.exe %~dp0\output\bin
+copy %~dp0\..\bin\ecv.exe %~dp0\output\bin
+copy %~dp0\..\bin\og.exe %~dp0\output\bin
+copy %~dp0\..\bin\elenavm.dll %~dp0\output\bin
+copy %~dp0\..\bin\elenart.dll %~dp0\output\bin
+copy %~dp0\..\bin\winstub.ex_ %~dp0\output\bin
+copy %~dp0\..\bin\elc.cfg %~dp0\output\bin
+copy %~dp0\..\bin\elenavm.cfg %~dp0\output\bin
+copy %~dp0\..\bin\elenart.cfg %~dp0\output\bin
+
+copy %~dp0\..\bin\templates\*.cfg %~dp0\output\bin\templates\
+copy %~dp0\..\bin\scripts\*.es %~dp0\output\bin\scripts\
+
+copy %~dp0\..\doc\license %~dp0\output\doc\
+copy %~dp0\..\doc\contributors %~dp0\output\doc\
+copy %~dp0\..\doc\readme.txt %~dp0\output\
+
+md %~dp0\output\src50\system
+xcopy %~dp0\..\src50\system\*.l %~dp0\output\src50\system /s
+xcopy %~dp0\..\src50\system\*.prj %~dp0\output\src50\system /s
+
+md %~dp0\output\src50\extensions
+xcopy %~dp0\..\src50\extensions\*.l %~dp0\output\src50\extensions /s
+xcopy %~dp0\..\src50\extensions\*.prj %~dp0\output\src50\extensions /s
+
+%~dp0\..\bin\sg %~dp0\..\dat\sg\syntax.txt
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+move %~dp0..\dat\sg\syntax.dat %~dp0\output\bin\
+
+%~dp0\..\bin\og %~dp0\..\dat\og\rules.txt
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+move %~dp0\..\dat\og\rules.dat %~dp0\output\bin\
+
+%~dp0\..\bin\og s %~dp0\..\dat\og\source_rules.txt
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+move %~dp0\..\dat\og\source_rules.dat %~dp0\output\bin\
+
+md %~dp0\lib50
+%~dp0\..\bin\asm2binx %~dp0\..\src50\core\system.core_routines.esm %~dp0\output\lib50
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+%~dp0\output\bin\elc %~dp0\output\src50\system\system.prj
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+%~dp0\output\bin\elc %~dp0\output\src50\extensions\extensions.prj
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+%~dp0\..\bin\asm2binx %~dp0\..\asm\x32\core.asm %~dp0\output\bin\x32
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+%~dp0\..\bin\asm2binx %~dp0\..\asm\x32\coreapi.asm %~dp0\output\bin\x32
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+%~dp0\..\bin\asm2binx %~dp0\..\asm\x32\core_win.asm %~dp0\output\bin\x32
+@echo off
+if %ERRORLEVEL% EQU -2 GOTO CompilerError
+@echo on
+
+copy %~dp0\..\examples\console\helloworld\*.l %~dp0\output\examples\console\helloworld
+copy %~dp0\..\examples\console\helloworld\*.prj %~dp0\output\examples\console\helloworld
+
+copy %~dp0\..\examples\console\sum\*.l %~dp0\output\examples\console\sum
+copy %~dp0\..\examples\console\sum\*.prj %~dp0\output\examples\console\sum
+
+7z a %~dp0\output\%1.zip %~dp0\output\*.* -r
+
+goto:eof
+::ERRORS
+::---------------------
+:CompilerError
+echo The MSBuild returns error %ERRORLEVEL%
+goto:eof


errBits tuning

errBits tuning

--- scripts/stilts-band-merging.cmd
+++ scripts/stilts-band-merging.cmd
@@ -189,7 +189,7 @@
 addcol rmha "r - ha"

 # Remove obsolete columns
-keepcols 'sourceID ra dec posErr l b mergedClass mergedClassStat pStar pGalaxy pNoise pSaturated rmi rmha r rErr rPeakMag rPeakMagErr rAperMag3 rAperMag3Err rGauSig rEll rPA rClass rClassStat rErrBits rMJD rSeeing rDetectionID rX rY rPlaneX rPlaneY i iErr iPeakMag iPeakMagErr iAperMag3 iAperMag3Err iGauSig iEll iPA iClass iClassStat iErrBits iMJD iSeeing iDetectionID iX iY iPlaneX iPlaneY iXi iEta ha haErr haPeakMag haPeakMagErr haAperMag3 haAperMag3Err haGauSig haEll haPA haClass haClassStat haErrBits haMJD haSeeing haDetectionID haX haY haPlaneX haPlaneY haXi haEta brightNeighb deblend saturated vignetted truncated badPix vignetted errBits reliable reliableStar night fieldID'
+keepcols 'sourceID ra dec posErr l b mergedClass mergedClassStat pStar pGalaxy pNoise pSaturated rmi rmha r rErr rPeakMag rPeakMagErr rAperMag3 rAperMag3Err rGauSig rEll rPA rClass rClassStat rErrBits rMJD rSeeing rDetectionID rX rY rPlaneX rPlaneY i iErr iPeakMag iPeakMagErr iAperMag3 iAperMag3Err iGauSig iEll iPA iClass iClassStat iErrBits iMJD iSeeing iDetectionID iX iY iPlaneX iPlaneY iXi iEta ha haErr haPeakMag haPeakMagErr haAperMag3 haAperMag3Err haGauSig haEll haPA haClass haClassStat haErrBits haMJD haSeeing haDetectionID haX haY haPlaneX haPlaneY haXi haEta brightNeighb deblend saturated vignetted truncated badPix errBits reliable reliableStar night fieldID'

 # Removed for brevity:
 # rBrightNeighb rDeblend rSaturated rVignetted rTruncated rBadPix


ARROW-3322: [CI] Fix AppVeyor script to skip Rust job when no Rust changes

Author: Antoine Pitrou <antoine@python.org>

Closes #2620 from pitrou/ARROW-3322-rust-appveyor and squashes the following commits:

7c8287f4 <Antoine Pitrou> ARROW-3322:  Fix AppVeyor script to skip Rust job when no Rust changes

--- ci/appveyor-filter-changes.bat
+++ ci/appveyor-filter-changes.bat
@@ -15,7 +15,7 @@
 @rem specific language governing permissions and limitations
 @rem under the License.

-if "%JOB%" == "Rust_Stable" (
+if "%JOB%" == "Rust" (
     if "%ARROW_CI_RUST_AFFECTED%" == "0" (
         echo ===
         echo === No Rust changes, exiting job


Use treekill to close chromedriver

Use treekill to close chromedriver

--- rbar.bat
+++ rbar.bat
@@ -14,12 +14,13 @@
 REM This gets the name of the HubTurbo .jar file in build/libs. The expected format is HubTurbo-X.X.X-all.jar, but
 REM any file that fits the format HubTurbo-(*).jar will be accepted.
 for /r build\libs %%i in (*.jar) do @set versionLine=%%~ni
-REM Based on the .jar file name, close relevant processes.
+REM Based on the .jar file name, close relevant processes. The /t option specifies tree kill mode, which also
+REM targets child chromedriver processes.
 echo ^> Closing all javaw processes with window title format: HubTurbo V%versionLine:~9,5%*.
-taskkill /fi "Windowtitle eq HubTurbo V%versionLine:~9,5%*" /im "javaw.exe"
+taskkill /fi "Windowtitle eq HubTurbo V%versionLine:~9,5%*" /im "javaw.exe" /t
 echo(
 echo ^> Closing all java processes with window title format: HubTurbo V%versionLine:~9,5%*.
-taskkill /fi "Windowtitle eq HubTurbo V%versionLine:~9,5%*" /im "java.exe"
+taskkill /fi "Windowtitle eq HubTurbo V%versionLine:~9,5%*" /im "java.exe" /t
 echo(

 REM rbar-ex.txt tells xcopy to avoid backing up any .jar and .exe files.


Update setup.bat

Update setup.bat

added latest versions of R

--- bin/setup.bat
+++ bin/setup.bat
@@ -15,3 +15,5 @@
 if exist "C:\Program Files\R\R-3.4.3\bin\i386\R.exe" set R_HOME="C:\Program Files\R\R-3.4.3\bin\i386\R.exe"
 if exist "C:\Program Files\R\R-3.4.4\bin\i386\R.exe" set R_HOME="C:\Program Files\R\R-3.4.4\bin\i386\R.exe"
 if exist "C:\Program Files\R\R-3.5.0\bin\i386\R.exe" set R_HOME="C:\Program Files\R\R-3.5.0\bin\i386\R.exe"
+if exist "C:\Program Files\R\R-3.5.1\bin\i386\R.exe" set R_HOME="C:\Program Files\R\R-3.5.1\bin\i386\R.exe"
+if exist "C:\Program Files\R\R-3.5.2\bin\i386\R.exe" set R_HOME="C:\Program Files\R\R-3.5.2\bin\i386\R.exe"


simple build script for windows; haven't gotten py extension compiled yet but .\example runs

error: pathspec 'build.win.cmd' did not match any file(s) known to git

--- build.win.cmd
+++ build.win.cmd
@@ -0,0 +1,28 @@
+REM "c:\Program Files\Microsoft Visual Studio 8\vc\vcvarsall.bat"
+
+set CFLAGS=/nologo /I. /O2 /DCLD_WINDOWS /DWIN32 /EHsc
+set LDFLAGS=-L.
+set CC=cl.exe
+set AR=lib.exe
+
+del *.obj
+del libcld.lib
+
+set SOURCES=encodings/compact_lang_det/cldutil.cc encodings/compact_lang_det/cldutil_dbg_empty.cc encodings/compact_lang_det/compact_lang_det.cc encodings/compact_lang_det/compact_lang_det_impl.cc encodings/compact_lang_det/ext_lang_enc.cc encodings/compact_lang_det/getonescriptspan.cc encodings/compact_lang_det/letterscript_enum.cc encodings/compact_lang_det/tote.cc encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc encodings/compact_lang_det/win/cld_htmlutils_windows.cc encodings/compact_lang_det/win/cld_unilib_windows.cc encodings/compact_lang_det/win/cld_utf8statetable.cc encodings/compact_lang_det/win/cld_utf8utils_windows.cc encodings/internal/encodings.cc languages/internal/languages.cc
+
+REM  encodings/compact_lang_det/win/cld_unicodetext.cc \
+
+echo ""
+echo "Compile..."
+%CC% /c %CFLAGS% %SOURCES%
+
+echo ""
+echo "Make libcld"
+%AR% *.obj -OUT:libcld.lib
+
+echo ""
+echo "Compile example.cc"
+%CC% %CFLAGS% %LFLAGS% example.cc libcld.lib
+
+echo
+echo "Done!"


use appveyor 7z

use appveyor 7z

--- build_zip.cmd
+++ build_zip.cmd
@@ -3,7 +3,6 @@
 echo ====== Build Zip File ======
 echo ============================
 if EXIST MarkdownEdit.zip del MarkdownEdit.zip
-if NOT EXIST "%ProgramFiles%\7-Zip\7z.exe" echo 7-Zip not installed
 pushd src\MarkdownEdit\bin\Release
-"%ProgramFiles%\7-Zip\7z.exe" a -x!*.vshost.* -x!*.xml -x!lib/*.*  -r ..\..\..\..\MarkdownEdit.zip *.* -mmt
+7z.exe" a -x!*.vshost.* -x!*.xml -x!lib/*.*  -r ..\..\..\..\MarkdownEdit.zip *.* -mmt
 popd


v4.1.0

--- tron.bat
+++ tron.bat
@@ -94,8 +94,8 @@
 :::::::::::::::::::::
 cls
 color 0f
-set SCRIPT_VERSION=4.0.3
-set SCRIPT_DATE=2014-11-xx
+set SCRIPT_VERSION=4.1.0
+set SCRIPT_DATE=2014-11-18
 title TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%)

 :: Get the date into ISO 8601 standard date format (yyyy-mm-dd) so we can use it


v3.0.0-final

v3.0.0-final

release

--- tron.bat
+++ tron.bat
@@ -8,9 +8,9 @@
 ::                      + tron.bat:          Add rudimentary automatic update check. Will notify you if a newer version is on the official repo server
 ::                      - tron.bat:          Remove outdated reference to Emsisoft's a2cmd in welcome screen. Thanks to reddit.com/user/swtester
 ::                      / tron.bat:          Rename SCRIPT_UPDATED to SCRIPT_DATE
-::                      * prep and checks:   Beefed up OS detection routine to support various improvements
-::                      * stage_2_disinfect: Switch order of Vipre and Sophos to avoid Sophos deleting Vipre's quarantine, preventing recovery. Thanks to reddit.com/user/swtester
-::                      + stage_3_de-bloat:  Add removal of default Metro apps (Windows 8/8.1 only)
+::                      * prep and checks:   Beef up OS detection routine to support various improvements
+::                      * stage_2_disinfect: Switch order of Vipre and Sophos to prevent Sophos deleting Vipre's quarantine, preventing recovery. Thanks to reddit.com/user/swtester
+::                      + stage_3_de-bloat:  Add removal of default Metro apps (Windows 8/8.1 only). Thanks to https://keybase.io/exabrial
 ::
 :: Usage:         Run this script in Safe Mode as an Administrator and reboot when finished. That's it.
 ::
@@ -666,24 +666,22 @@
 echo %CUR_DATE% %TIME%    Done.

-:: JOB: Remove default Metro apps (Windows 8/8.1 only)
+:: JOB: Remove default Metro apps (Windows 8/8.1 only). Thanks to https://keybase.io/exabrial
 pushd win8_metro_apps

 :: Read nine characters into the WIN_VER variable (starting at position 0 on the left) and check for Windows 8
 if "%WIN_VER:~0,9%"=="Windows 8" (
 	echo %CUR_DATE% %TIME%    Windows 8/8.1 detected, removing default Metro apps...>> "%LOGPATH%\%LOGFILE%"
 	echo %CUR_DATE% %TIME%    Windows 8/8.1 detected, removing default Metro apps...
-	:: Call powershell
+	:: Enable scripts in PowerShell
 	if %DRY_RUN%==no powershell "Set-ExecutionPolicy Unrestricted -force 2>&1 | Out-Null"
-	:: Run the commands
+	:: Call PowerShell to run the commands
 	if %DRY_RUN%==no powershell "Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online 2>&1 | Out-Null"
 	if %DRY_RUN%==no powershell "Get-AppxPackage -AllUsers | Remove-AppxPackage 2>&1 | Out-Null"
 	echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
 	echo %CUR_DATE% %TIME%    Done.
 	)
-
-popd
-
+	popd

 popd
 echo %CUR_DATE% %TIME%   Completed stage_3_de-bloat jobs.>> "%LOGPATH%\%LOGFILE%"


Try fix Myget

Try fix Myget

Myget changed the vs version it identifies this project as, just in the
past few days, and now the build scripts won't work. Trying to move to
dotnet build to see if it helps.

--- MyGet.bat
+++ MyGet.bat
@@ -1,2 +1 @@
-%NUGET% restore GladNetV2.sln -NoCache -NonInteractive -ConfigFile Nuget.config
-msbuild GladNetV2.sln /p:Configuration=Release+dotnet build GladNetV2.sln -c Release


feat(scripts): show more info when deleting local package

--- scripts/delete-local-package.bat
+++ scripts/delete-local-package.bat
@@ -7,14 +7,27 @@
 ECHO Starting...

 IF "%~1"=="" (
-  ECHO This command requires 1 input argument.
-  ECHO.
-  ECHO Usage: delete-local-branch ^<package-directory^>
-
-  GOTO :EndOfScript
+  GOTO :Usage
 )

-DEL /F /S /Q %USERPROFILE%\.nuget\packages\%1
+SET packageDirPath=%USERPROFILE%\.nuget\packages\%1
+
+IF EXIST %packageDirPath%\NUL (
+	ECHO Deleting files from '%packageDirPath%' ...
+
+	DEL /F /S /Q %packageDirPath%
+
+	FOR /F "delims=" %%d IN ('DIR /A:D /B %packageDirPath%') DO RMDIR /S /Q "%packageDirPath%\%%d"
+) ELSE (
+	ECHO No Files to delete in '%packageDirPath%'.
+)
+
+GOTO :EndOfScript
+
+:Usage
+ECHO This command requires 1 input argument.
+ECHO.
+ECHO Usage: delete-local-branch ^<package-directory^>

 :EndOfScript
 ECHO.


filename fix

filename fix

--- bin/create-mariadb-light-win32.bat
+++ bin/create-mariadb-light-win32.bat
@@ -62,7 +62,7 @@

 del /q /f "%MYSQL_DIR%\bin\aria_chk.exe"
 del /q /f "%MYSQL_DIR%\bin\aria_dump_log.exe"
-del /q /f "%MYSQL_DIR%\bin\aria_ftpdump.exe"
+del /q /f "%MYSQL_DIR%\bin\aria_ftdump.exe"
 del /q /f "%MYSQL_DIR%\bin\aria_pack.exe"
 del /q /f "%MYSQL_DIR%\bin\aria_read_log.exe"
 :: keep my_print_defaults.exe


Try EQU for windows

Try EQU for windows

--- conda/bld.bat
+++ conda/bld.bat
@@ -2,10 +2,10 @@

 setlocal enableextensions

-if %PY3K% == 1(
-    SET MSVC_VER="10.0"
+if %PY3K% EQU 1 (
+    set MSVC_VER="10.0"
 ) else (
-    SET MSVC_VER="9.0"
+    set MSVC_VER="9.0"
 )

 bootstrap


Remove extra quotes and spaces in some echo lines.

Unneeded and unwanted.
(cherry picked from commit b3cb68d8469a42f3fe82a9242d2d53e1672e8750)

--- configure.bat
+++ configure.bat
@@ -205,7 +205,9 @@
 :modulesTag
 shift
 if "%1" == "" (
-    echo >&2 "The -modules option requires a list of modules."
+    echo. >&2
+    echo >&2The -modules option requires a list of modules.
+    echo. >&2
     goto usage
 )
 set MOBILITY_MODULES_UNPARSED=%1
@@ -277,7 +279,7 @@
 ) else (
     echo >&2Cannot find 'qmake' in %QT_PATH%.
 )
-echo >&2 "Aborting."
+echo >&2Aborting.
 goto errorTag

 :qmakeFound
@@ -335,8 +337,8 @@
 call :makeTest MOBILITY_MAKE MOBILITY_BUILDSYSTEM
 if not "%MOBILITY_MAKE%" == "" goto compileTests

-echo >&2 "Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH"
-echo >&2 "Aborting."
+echo >&2Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH
+echo >&2Aborting.
 goto errorTag

 :compileTest
@@ -389,7 +391,7 @@

 REM we could skip generating headers if a module is not enabled
 if not exist "%BUILD_PATH%\features" mkdir %BUILD_PATH%\features
-echo "Generating Mobility Headers..."
+echo Generating Mobility Headers...
 rd /s /q %BUILD_PATH%\include
 mkdir %BUILD_PATH%\include
 perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\global


Disabling multi-cpu MSBuilds because they break, stealing r1500.

--- build/scripts/build-all.bat
+++ build/scripts/build-all.bat
@@ -1,5 +1,5 @@
 CALL "%VS90COMNTOOLS%..\..\VC\vcvarsall.bat"
-msbuild %~dp0../slimdx.proj /m /target:build /property:Configuration=Debug;Platform=x86
-msbuild %~dp0../slimdx.proj /m /target:build /property:Configuration=Release;Platform=x86
-msbuild %~dp0../slimdx.proj /m /target:build /property:Configuration=Debug;Platform=x64
-msbuild %~dp0../slimdx.proj /m /target:build /property:Configuration=Release;Platform=x64
+msbuild %~dp0../slimdx.proj /target:build /property:Configuration=Debug;Platform=x86
+msbuild %~dp0../slimdx.proj /target:build /property:Configuration=Release;Platform=x86
+msbuild %~dp0../slimdx.proj /target:build /property:Configuration=Debug;Platform=x64
+msbuild %~dp0../slimdx.proj /target:build /property:Configuration=Release;Platform=x64


startscript  for linux and windows

startscript  for linux and windows

--- reservierungen.bat
+++ reservierungen.bat
@@ -1,3 +1,6 @@
+#/bin/sh
+python main.py
+
 @ECHO off

 set HERE=%~dp0


whitespace

whitespace

--- scripts/ci/appveyor/config.cmd
+++ scripts/ci/appveyor/config.cmd
@@ -8,5 +8,5 @@
     -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
     -DCMAKE_VERBOSE_MAKEFILE=OFF ^
 	-DBUILD_SHARED_LIBS=ON ^
-    -Dgtest_force_shared_crt=ON ^
-    .+    -Dgtest_force_shared_crt=ON ^
+    .


Moving created executables to the same directory level as the CSnake source folder.

git-svn-id: 5b21af815eabb73dc5820112928ed0bea355bed4@94 9ffc3505-93cb-cd4b-9e5d-8a77f6415fcf

--- createWindowsExecutable.bat
+++ createWindowsExecutable.bat
@@ -1 +1,3 @@
-python setup.py py2exe
+python setup.py py2exe
+move dist ../CSnakeDist
+move build ../CSnakeBuild


update clojure run_game.bat to call lein

Windows by default transfers execution to a called bat file and does not
return control back when that bat file completes.  Added the call
command to the first line of the bat file so that the second line call
to halite.exe will be executed.

--- airesources/Clojure/run_game.bat
+++ airesources/Clojure/run_game.bat
@@ -1,2 +1,2 @@
-lein uberjar
+call lein uberjar
 halite -d "240 160" "java -jar target/MyBot.jar" "java -jar target/MyBot.jar"


TIMOB-6315: fixed year on header

TIMOB-6315: fixed year on header

--- android/runtime/v8/ndk-build.cmd
+++ android/runtime/v8/ndk-build.cmd
@@ -1,5 +1,5 @@
 :: Appcelerator Titanium Mobile
-:: Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved.
+:: Copyright (c) 2012 by Appcelerator, Inc. All Rights Reserved.
 :: Licensed under the terms of the Apache Public License
 :: Please see the LICENSE included with this distribution for details.


add exit on error condition in case copying the post deployment action fails

--- Scripts/deploy.cmd
+++ Scripts/deploy.cmd
@@ -132,6 +132,7 @@
 IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
 	echo Copy the post deployment scripts...
 	call :ExecuteCmd xcopy %POST_DEPLOYMENT_SOURCE% %POST_DEPLOYMENT_TARGET% /Y
+	IF !ERRORLEVEL! NEQ 0 goto error
 )

 goto end


add -v

add -v

--- recipes/chargemol/bld.bat
+++ recipes/chargemol/bld.bat
@@ -4,7 +4,7 @@
 CD chargemol_FORTRAN_09_26_2017
 CD sourcecode_windows_command_line

-flang.exe -fopenmp -o Chargemol_09_26_2017_windows_parallel ^
+flang.exe -v -fopenmp -o Chargemol_09_26_2017_windows_parallel ^
   module_precision.f08 ^
   module_global_parameters.f08 ^
   module_common_variable_declarations.f08 ^


git wrapper

git wrapper

error: pathspec 'bin/g.bat' did not match any file(s) known to git


Change version logic in branches other than master

--- UpdateVersion.cmd
+++ UpdateVersion.cmd
@@ -50,7 +50,7 @@
     ECHO For branch other than master, use alpha version
     SET VERSION=!MainVersion!.0-alpha
     FOR /F "tokens=2,3 delims=-" %%i in ('git describe') DO (
-        SET VERSION=!MainVersion!.%%i-alpha-%%j
+        SET VERSION=!MainVersion!.0-alpha-%%i-%%j
         ECHO CURRENT VERSION:!VERSION!
     )
 )


improved nuget submit script

improved nuget submit script

--- submitNuGetPackage.cmd
+++ submitNuGetPackage.cmd
@@ -1,9 +1,7 @@
-msbuild /p:Configuration=Release Jace\Jace.csproj
-Tools\NuGet\nuget.exe pack Jace\Jace.csproj -Prop Configuration=Release
+buildNuGetPackage.cmd

 @ECHO OFF
 FOR /F "delims=|" %%I IN ('DIR "Jace.*.nupkg" /B /O:D') DO SET NuGetPackage=%%I
 @ECHO ON

-REM ECHO %NuGetPackage%
 Tools\NuGet\nuget.exe push %NuGetPackage%


Remove build folder for windows

Remove build folder for windows

--- scripts/build_windows.bat
+++ scripts/build_windows.bat
@@ -1,4 +1,5 @@
 rd /S /Q Web2ExeWin
+rd /S /Q build
 del *.zip
 call pyinstaller --onefile ^
  --hidden-import PIL.Jpeg2KImagePlugin ^