@echo off
echo Installing stddev...

REM cesta kam se to nainstaluje
set TARGET=%USERPROFILE%\bin

REM vytvor slozku pokud neexistuje
if not exist "%TARGET%" mkdir "%TARGET%"

REM zkopiruj jar (z adresare kde je script)
copy "%~dp0stddev.jar" "%TARGET%\stddev.jar"

REM vytvor spousteci prikaz
echo @echo off > "%TARGET%\stddev.bat"
echo java -jar "%TARGET%\stddev.jar" %%* >> "%TARGET%\stddev.bat"

echo.
echo Installation complete.
echo If 'stddev' does not work, run:
echo %TARGET%\stddev.bat
