Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
428 B

  1. @echo off
  2. REM backs up the last built src files
  3. REM
  4. REM
  5. cd %AP_ROOT%
  6. call setenvus.bat
  7. echo.
  8. echo Backing up the src directory for build %BUILDNO%
  9. echo.
  10. if exist oldsrc goto copy
  11. md oldsrc
  12. :copy
  13. cd oldsrc
  14. if exist %BUILDNO% goto error
  15. md %BUILDNO%
  16. cd ..
  17. xcopy /e /v /i /h /q src %AP_ROOT%\oldsrc\%BUILDNO% /s
  18. echo.
  19. echo Backup completed...
  20. goto end
  21. :error
  22. echo.
  23. echo Directory %BUILDNO% already exists
  24. echo.
  25. echo.
  26. :end