snapshot_windows.bat 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 Removing old files...
  7. rmdir /s /q windows >nul
  8. rmdir /s /q svn_info >nul
  9. del windows.7z >nul
  10. del windows.zip >nul
  11. rem leave an audit trail, which is used by inspect to determine revision number
  12. echo Getting current subversion revision number...
  13. svn co --non-interactive --depth=files http://svn.boost.org/svn/boost/branches/release svn_info
  14. svn info svn_info
  15. echo Exporting files from subversion...
  16. svn export --non-interactive --native-eol CRLF http://svn.boost.org/svn/boost/branches/release windows
  17. echo Creating release history README.txt...
  18. lynx -width=72 -dump -nolist -display_charset=utf-8 http://beta.boost.org/users/history/minimal.php >windows\README.txt
  19. echo Copying docs into windows\doc...
  20. pushd windows\doc
  21. xcopy /s /y ..\..\docs_temp\html html
  22. popd
  23. echo Setting SNAPSHOT_DATE
  24. strftime "%%Y-%%m-%%d" >date.txt
  25. set /p SNAPSHOT_DATE= <date.txt
  26. echo SNAPSHOT_DATE is %SNAPSHOT_DATE%
  27. echo Renaming root directory...
  28. ren windows boost-windows-%SNAPSHOT_DATE%
  29. echo Building .7z file...
  30. rem On Windows, 7z comes from the 7-Zip package, not Cygwin,
  31. rem so path must include C:\Program Files\7-Zip
  32. 7z a -r windows.7z boost-windows-%SNAPSHOT_DATE%
  33. rem Building .zip file...
  34. rem zip -r windows.zip boost-windows-%SNAPSHOT_DATE%
  35. ren boost-windows-%SNAPSHOT_DATE% windows
  36. echo The ftp transfer will be done in two steps because that has proved more
  37. echo reliable on Beman's Windows XP 64-bit system.
  38. echo Creating ftp script 1 ...
  39. rem user.txt must be a single line: user userid password
  40. rem where "userid" and "password" are replace with the appropriate values
  41. copy user.txt windows.ftp
  42. echo dir >>windows.ftp
  43. echo binary >>windows.ftp
  44. rem echo put windows.zip >>windows.ftp
  45. rem echo mdelete boost-windows*.zip >>windows.ftp
  46. rem echo rename windows.zip boost-windows-%SNAPSHOT_DATE%.zip >>windows.ftp
  47. echo put windows.7z >>windows.ftp
  48. echo bye >>windows.ftp
  49. echo Running ftp script 1 ...
  50. ftp -n -i -s:windows.ftp boost.cowic.de
  51. echo Creating ftp script 2 ...
  52. copy user.txt windows.ftp
  53. echo dir >>windows.ftp
  54. echo mdelete boost-windows*.7z >>windows.ftp
  55. echo rename windows.7z boost-windows-%SNAPSHOT_DATE%.7z >>windows.ftp
  56. echo dir >>windows.ftp
  57. echo bye >>windows.ftp
  58. echo Running ftp script 2 ...
  59. ftp -n -i -s:windows.ftp boost.cowic.de
  60. echo Windows snapshot complete!
粤ICP备19079148号