snapshot_windows.bat 2.5 KB

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