install_agda_user.bat 401 B

12345678910111213141516171819
  1. @echo off
  2. echo "Installing Agda for the current user..."
  3. echo "Writing user paths ..."
  4. setx Agda_datadir "%cd%\data"
  5. setx PATH "%cd%\bin;%PATH%"
  6. .\bin\agda.exe --version
  7. if %errorlevel% neq 0 exit /b %errorlevel%
  8. echo "Checking Agda.Primitive.agda..."
  9. .\bin\agda.exe data\lib\prim\Agda\Primitive.agda
  10. if %errorlevel% neq 0 exit /b %errorlevel%
  11. echo "Agda is supposed to be installed now."
  12. pause