backup.bat 758 B

123456789101112131415161718192021222324252627
  1. @echo off
  2. rem Copyright Beman Dawes 2011
  3. rem Distributed under to the Boost Software License, Version 1.0
  4. rem See http://www.boost.org/LICENSE_1_0.txt
  5. if not $%1==$ goto ok
  6. :error
  7. echo Usage: backup target-directory-path
  8. goto done
  9. :ok
  10. mkdir %1\boost\filesystem 2>nul
  11. mkdir %1\libs\filesystem 2>nul
  12. set BOOST_CURRENT_ROOT=.
  13. :loop
  14. if exist %BOOST_CURRENT_ROOT%\boost-build.jam goto loopend
  15. set BOOST_CURRENT_ROOT=..\%BOOST_CURRENT_ROOT%
  16. goto loop
  17. :loopend
  18. xcopy /exclude:exclude.txt /y /d /k /r %BOOST_CURRENT_ROOT%\boost\filesystem.hpp %1\boost
  19. xcopy /exclude:exclude.txt /y /d /k /s /r %BOOST_CURRENT_ROOT%\boost\filesystem %1\boost\filesystem
  20. xcopy /exclude:exclude.txt /y /d /k /s /r %BOOST_CURRENT_ROOT%\libs\filesystem %1\libs\filesystem
  21. :done