?login_element?

Subversion Repositories NedoOS

Rev

Rev 922 | Blame | Compare with Previous | Last modification | View Log | Download

  1. @echo off
  2. if "%1"=="" goto usage
  3. if not "%2"=="" goto usage
  4. if "%settedpath%"=="" call %~dp0_sdk\setpath.bat
  5. cd %1
  6. if not %ERRORLEVEL%==0 goto error
  7. %MAKE% %MFLAGS% install
  8. if not %ERRORLEVEL%==0 goto error
  9.  
  10. if "%makeall%"=="" (
  11.  %MAKE% %MFLAGS% -C %EMULDIR%
  12.  if not %ERRORLEVEL%==0 goto error
  13.  pause
  14.  if "%makeall%"=="" (
  15.   %EMUL%
  16.   if not %ERRORLEVEL%==0 goto error
  17.  )
  18. )
  19. goto :end
  20.  
  21. :usage
  22. echo Usage:
  23. echo   %~nx0 WORK_DIR
  24. echo where:
  25. echo   WORK_DIR - working directory
  26. goto :end
  27.  
  28. :error
  29. echo ERROR: Exit code %ERRORLEVEL%. Stopped.
  30. if "%makeall%"=="" pause
  31.  
  32. :end
  33.