snapshot_windows.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env bash
  2. # Build a branches/release snapshot for Windows, using CRLF 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. # This script uses ftp, and thus assumes ~/.netrc contains a machine ... entry
  7. echo "Build a branches/release snapshot for Windows, using CRLF line termination..."
  8. echo "Removing old files..."
  9. rm -r -f windows
  10. echo "Exporting files from subversion..."
  11. svn export --non-interactive --native-eol CRLF http://svn.boost.org/svn/boost/branches/release windows
  12. #echo "Copying docs from posix tree..."
  13. #cp --recursive posix/doc/html windows/doc
  14. echo "Renaming..."
  15. SNAPSHOT_DATE=`eval date +%Y-%m-%d`
  16. echo SNAPSHOT_DATE is $SNAPSHOT_DATE
  17. mv windows boost-windows-$SNAPSHOT_DATE
  18. #rm -f windows.zip
  19. #zip -r windows.zip boost-windows-$SNAPSHOT_DATE
  20. echo "Building .7z..."
  21. rm -f windows.7z
  22. # On Windows, 7z comes from the 7-Zip package, not Cygwin,
  23. # so path must include C:\Program Files\7-Zip.
  24. 7z a -r windows.7z boost-windows-$SNAPSHOT_DATE
  25. echo "Reverting name..."
  26. mv boost-windows-$SNAPSHOT_DATE windows
  27. echo "Creating ftp script..."
  28. cat <user.txt >>windows.ftp
  29. echo "dir" >>windows.ftp
  30. echo "binary" >>windows.ftp
  31. #echo "put windows.zip" >>windows.ftp
  32. #echo "mdelete boost-windows*.zip" >>windows.ftp
  33. #echo "rename windows.zip boost-windows-$SNAPSHOT_DATE.zip" >>windows.ftp
  34. echo "put windows.7z" >>windows.ftp
  35. echo "mdelete boost-windows*.7z" >>windows.ftp
  36. echo "rename windows.7z boost-windows-$SNAPSHOT_DATE.7z" >>windows.ftp
  37. echo "dir" >>windows.ftp
  38. echo "bye" >>windows.ftp
  39. echo "Running ftp script..."
  40. # This is the Windows ftp client
  41. ftp -n -i -d -s:windows.ftp boost.cowic.de
  42. echo "Windows snapshot complete!"
粤ICP备19079148号