bootstrap.cmd 704 B

1234567891011121314151617181920212223242526272829
  1. @echo off
  2. echo * Bootstrap started to setup environment
  3. set nuget=D:\Projects\nuget.exe
  4. set nugetrepo=D:\Projects\quadarax\@nuget.repo
  5. rem ** check if directories exists **
  6. if not exist "bin" goto err_bin_not_found
  7. if not exist "%nuget%" goto err_locnuget_not_found
  8. if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
  9. goto done
  10. :err_bin_not_found
  11. echo ERR: missing 'bin' directory in current location
  12. goto exit
  13. :err_locnuget_not_found
  14. echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
  15. goto exit
  16. :err_locnugetrepo_not_found
  17. echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
  18. goto exit
  19. :done
  20. echo * Bootstrap succesfuly set
  21. :exit