snapshot_posix.bat 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. 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 LF http://svn.boost.org/svn/boost/branches/release posix
  15. rem echo "Building docs..."
  16. rem pushd posix/doc
  17. rem TODO
  18. rem popd
  19. echo Setting SNAPSHOT_DATE
  20. strftime "%%Y-%%m-%%d" >date.txt
  21. set /p SNAPSHOT_DATE= <date.txt
  22. echo SNAPSHOT_DATE is %SNAPSHOT_DATE%
  23. echo "Renaming..."
  24. ren posix boost-posix-%SNAPSHOT_DATE%
  25. echo Building .gz file...
  26. tar cfz posix.tar.gz boost-posix-%SNAPSHOT_DATE%
  27. echo Building .bz2 file...
  28. gzip -d -c posix.tar.gz | bzip2 >posix.tar.bz2
  29. ren boost-posix-%SNAPSHOT_DATE% posix
  30. echo The ftp transfer will be done in two steps because that has proved more
  31. echo reliable on Beman's Windows XP 64-bit system.
  32. echo "Creating ftp script 1 ..."
  33. copy user.txt posix.ftp
  34. echo dir >>posix.ftp
  35. echo binary >>posix.ftp
  36. rem echo put posix.tar.gz >>posix.ftp
  37. rem echo mdelete boost-posix*.gz >>posix.ftp
  38. rem echo rename posix.tar.gz boost-posix-%SNAPSHOT_DATE%.tar.gz >>posix.ftp
  39. echo put posix.tar.bz2 >>posix.ftp
  40. echo bye >>posix.ftp
  41. echo Running ftp script 1 ...
  42. ftp -n -i -s:posix.ftp boost.cowic.de
  43. echo "Creating ftp script 2 ..."
  44. copy user.txt posix.ftp
  45. echo dir >>posix.ftp
  46. echo mdelete boost-posix*.bz2 >>posix.ftp
  47. echo rename posix.tar.bz2 boost-posix-%SNAPSHOT_DATE%.tar.bz2 >>posix.ftp
  48. echo dir >>posix.ftp
  49. echo bye >>posix.ftp
  50. echo Running ftp script 2 ...
  51. ftp -n -i -s:posix.ftp boost.cowic.de
  52. echo POSIX snapshot complete!
粤ICP备19079148号