anchor.diff:          popd
           exit /b
   
  -:bindata
  +:"bindata"
           if not exist go-bindata.exe call :getbindata
           go-bindata.exe -o "main\bindata.go" "nyagos.d/..."
           exit /b
   
  -:const
  +:"const"
           for /F %%I in ('dir /b /s makeconst.cmd') do pushd %%~dpI & call %%I & popd
  -        goto end
  +        exit /b
   
  -:package
  +:"package"
           for /F %%I in ('nyagos -e "print(nyagos.version or (string.gsub(nyagos.stamp,[[/]],[[]])))"') do set VERSION=%%I
           zip -9 "nyagos-%VERSION%-%GOARCH%.zip" nyagos.exe lua53.dll nyagos.lua .nyagos makeicon.cmd nyagos.d\*.lua nyagos.d\catalog\*.lua license.txt readme_ja.md readme.md Doc\*.md
  -        goto end
  +        exit /b
   
  -:install
  +:"install"
           if not "%2" == "" set "INSTALLDIR=%2" & echo @set "INSTALLDIR=%2" > "%~dp0Misc\version.cmd"
           if "%INSTALLDIR%" == "" (
               echo Please %0.cmd install PATH\TO\BIN, once
  -            goto end
  +            exit /b
           )
           if not exist "%INSTALLDIR%" (
               echo Please %0.cmd install EXIST\PATH\TO\BIN,  once
  -            goto end
  +            exit /b
           )
   
           robocopy nyagos.d "%INSTALLDIR%\nyagos.d" /E
  
positive.code:         echo     : Copy binaries to INSTALLDIR
          echo  %0 install  
          echo     : Copy binaries to last INSTALLDIR
  :end
          popd
  
negative.code:         copy nyagos.lua "%INSTALLDIR%\."
          copy /-Y _nyagos "%INSTALLDIR%\."
          copy nyagos.exe "%INSTALLDIR%\."
          if errorlevel 1 (start "" "%~dpfx0" install_ & exit /b)
          exit /b
  
  :"install_"
          taskkill /F /im nyagos.exe
          copy nyagos.exe "%INSTALLDIR%\."
          timeout /T 3
          exit %ERRORLEVEL%
  
  :"icon"
          makeicon.cmd
          exit /b
  
  :"help"
          echo Usage for make.cmd
          echo  %0          : Equals to '%0 build'
          echo  %0 build    : Build nyagos.exe as snapshot (ignore version.txt)
  