snapshot_posix.bat 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. rem Build a branches/release snapshot for POSIX, using LF 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 POSIX, using LF line termination...
  6. echo Removing old files...
  7. rmdir /s /q posix >nul
  8. rmdir /s /q svn_info >nul
  9. del posix.tar.gz >nul
  10. del posix.tar.bz2 >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 LF http://svn.boost.org/svn/boost/branches/release posix
  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 >posix\README.txt
  19. echo Copying docs into posix\doc...
  20. pushd posix\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 posix boost-posix-%SNAPSHOT_DATE%
  29. echo Building .gz file...
  30. tar cfz posix.tar.gz boost-posix-%SNAPSHOT_DATE%
  31. echo Building .bz2 file...
  32. gzip -d -c posix.tar.gz | bzip2 >posix.tar.bz2
  33. ren boost-posix-%SNAPSHOT_DATE% posix
  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. copy user.txt posix.ftp
  38. echo dir >>posix.ftp
  39. echo binary >>posix.ftp
  40. rem echo put posix.tar.gz >>posix.ftp
  41. rem echo mdelete boost-posix*.gz >>posix.ftp
  42. rem echo rename posix.tar.gz boost-posix-%SNAPSHOT_DATE%.tar.gz >>posix.ftp
  43. echo put posix.tar.bz2 >>posix.ftp
  44. echo bye >>posix.ftp
  45. echo Running ftp script 1 ...
  46. ftp -n -i -s:posix.ftp boost.cowic.de
  47. echo Creating ftp script 2 ...
  48. copy user.txt posix.ftp
  49. echo dir >>posix.ftp
  50. echo mdelete boost-posix*.bz2 >>posix.ftp
  51. echo rename posix.tar.bz2 boost-posix-%SNAPSHOT_DATE%.tar.bz2 >>posix.ftp
  52. echo dir >>posix.ftp
  53. echo bye >>posix.ftp
  54. echo Running ftp script 2 ...
  55. ftp -n -i -s:posix.ftp boost.cowic.de
  56. echo POSIX snapshot complete!
粤ICP备19079148号