snapshot_windows.bat 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. rem Build a branches/release snapshot for Windows, using CRLF line termination
  2. rem Copyright 2008 Beman Dawes
  3. rem Distributed under the Boost Software License, Version 1.0.
  4. rem See http://www.boost.org/LICENSE_1_0.txt
  5. echo Build a branches/release snapshot for Windows, using CRLF line termination...
  6. echo Revision %BOOST_REVISION_NUMBER%
  7. echo Removing old files...
  8. rmdir /s /q windows >nul
  9. rmdir /s /q svn_info >nul
  10. del windows.7z >nul
  11. del windows.zip >nul
  12. echo Exporting files from subversion...
  13. svn export --non-interactive --native-eol CRLF -r %BOOST_REVISION_NUMBER% http://svn.boost.org/svn/boost/branches/release windows
  14. echo Copying docs into windows...
  15. pushd windows
  16. xcopy /s /y ..\docs_temp
  17. popd
  18. echo Setting SNAPSHOT_DATE
  19. strftime "%%Y-%%m-%%d" >date.txt
  20. set /p SNAPSHOT_DATE= <date.txt
  21. echo SNAPSHOT_DATE is %SNAPSHOT_DATE%
  22. echo Renaming root directory...
  23. ren windows boost-windows-%SNAPSHOT_DATE%
  24. echo Building .7z file...
  25. rem On Windows, 7z comes from the 7-Zip package, not Cygwin,
  26. rem so path must include C:\Program Files\7-Zip
  27. 7z a -r windows.7z boost-windows-%SNAPSHOT_DATE%
  28. rem Building .zip file...
  29. rem zip -r windows.zip boost-windows-%SNAPSHOT_DATE%
  30. ren boost-windows-%SNAPSHOT_DATE% windows
  31. echo The ftp transfer will be done in two steps because that has proved more
  32. echo reliable on Beman's Windows XP 64-bit system.
  33. echo Creating ftp script 1 ...
  34. rem user.txt must be a single line: user userid password
  35. rem where "userid" and "password" are replace with the appropriate values
  36. copy user.txt windows.ftp
  37. echo dir >>windows.ftp
  38. echo binary >>windows.ftp
  39. rem echo put windows.zip >>windows.ftp
  40. rem echo mdelete boost-windows*.zip >>windows.ftp
  41. rem echo rename windows.zip boost-windows-%SNAPSHOT_DATE%.zip >>windows.ftp
  42. echo put windows.7z >>windows.ftp
  43. echo bye >>windows.ftp
  44. echo Running ftp script 1 ...
  45. ftp -n -i -s:windows.ftp boost.cowic.de
  46. echo Creating ftp script 2 ...
  47. copy user.txt windows.ftp
  48. echo dir >>windows.ftp
  49. echo mdelete boost-windows*.7z >>windows.ftp
  50. echo rename windows.7z boost-windows-%SNAPSHOT_DATE%.7z >>windows.ftp
  51. echo dir >>windows.ftp
  52. echo bye >>windows.ftp
  53. echo Running ftp script 2 ...
  54. ftp -n -i -s:windows.ftp boost.cowic.de
  55. echo Windows snapshot complete!
粤ICP备19079148号