snapshot_posix.sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/usr/bin/env bash
  2. # Build a branches/release snapshot for Posix, using LF line termination
  3. # © Copyright 2008 Beman Dawes
  4. # Distributed under the Boost Software License, Version 1.0.
  5. # See http://www.boost.org/LICENSE_1_0.txt
  6. echo "Build a branches/release snapshot for POSIX, using LF line termination..."
  7. echo "Removing old files..."
  8. rm -r -f posix
  9. rm -r -f svn_info
  10. echo "Exporting files from subversion..."
  11. # leave an audit trail, which is used by inspect to determine revision number
  12. # use --non-recursive rather than --depth=files until the linux distros catch up
  13. svn co --non-recursive 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. #echo "Building bjam..."
  16. # failure to use an up-to-date copy of bjam has caused much wasted effort.
  17. #pushd posix/tools/jam/src
  18. #./build.sh gcc
  19. #popd
  20. #
  21. #echo "Building docs..."
  22. #pushd posix/doc
  23. #../tools/jam/src/bin.cygwinx86/bjam --toolset=gcc &>../../posix-bjam.log
  24. #popd
  25. echo "Cleaning up and renaming..."
  26. #rm -r posix/bin.v2
  27. SNAPSHOT_DATE=`eval date +%Y-%m-%d`
  28. echo SNAPSHOT_DATE is $SNAPSHOT_DATE
  29. mv posix boost-posix-$SNAPSHOT_DATE
  30. rm -f posix.tar.gz
  31. rm -f posix.tar.bz2
  32. echo "Building .gz file..."
  33. tar cfz posix.tar.gz boost-posix-$SNAPSHOT_DATE
  34. echo "Building .bz2 file..."
  35. gunzip -c posix.tar.gz | bzip2 >posix.tar.bz2
  36. mv boost-posix-$SNAPSHOT_DATE posix
  37. echo "Creating ftp script..."
  38. echo "dir" >posix.ftp
  39. echo "binary" >>posix.ftp
  40. #echo "put posix.tar.gz" >>posix.ftp
  41. #echo "mdelete boost-posix*.gz" >>posix.ftp
  42. #echo "rename posix.tar.gz boost-posix-$SNAPSHOT_DATE.tar.gz" >>posix.ftp
  43. echo "put posix.tar.bz2" >>posix.ftp
  44. echo "mdelete boost-posix*.bz2" >>posix.ftp
  45. echo "rename posix.tar.bz2 boost-posix-$SNAPSHOT_DATE.tar.bz2" >>posix.ftp
  46. echo "dir" >>posix.ftp
  47. echo "bye" >>posix.ftp
  48. echo "Running ftp script..."
  49. # use cygwin ftp rather than Windows ftp
  50. /usr/bin/ftp -v -i boost.cowic.de <posix.ftp
  51. echo POSIX snapshot complete!
粤ICP备19079148号