diff --git a/snapshot.bat b/snapshot.bat new file mode 100644 index 0000000..3c07b0b --- /dev/null +++ b/snapshot.bat @@ -0,0 +1,17 @@ +rem Run POSIX and Windows snapshots + +rem Copyright 2008 Beman Dawes + +rem Distributed under the Boost Software License, Version 1.0. +rem See http://www.boost.org/LICENSE_1_0.txt + +rem Must be run in a directory devoted to boost release snapshots + +echo Using %BOOST_TRUNK% as boost trunk +time /t +call %BOOST_TRUNK%\tools\release\snapshot_posix.bat +time /t +call %BOOST_TRUNK%\tools\release\snapshot_windows.bat +time /t +call %BOOST_TRUNK%\tools/release\snapshot_inspection.bat +time /t diff --git a/snapshot.sh b/snapshot.sh index 76a4d33..8e45abb 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -4,6 +4,7 @@ # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt +sleep 5s echo Using $BOOST_TRUNK as boost trunk date $BOOST_TRUNK/tools/release/snapshot_posix.sh @@ -12,3 +13,4 @@ $BOOST_TRUNK/tools/release/snapshot_windows.sh date $BOOST_TRUNK/tools/release/snapshot_inspect.sh date +sleep 5s diff --git a/snapshot_inspection.bat b/snapshot_inspection.bat new file mode 100644 index 0000000..c7c4118 --- /dev/null +++ b/snapshot_inspection.bat @@ -0,0 +1,30 @@ +rem Inspect snapshot + +rem Copyright 2008 Beman Dawes + +rem Distributed under the Boost Software License, Version 1.0. +rem See http://www.boost.org/LICENSE_1_0.txt + +pushd posix\tools\inspect\build +bjam +popd +echo inspect... +pushd posix +dist\bin\inspect >..\inspect.html +popd + +echo Create ftp script... +copy user.txt inspect.ftp +echo dir >>inspect.ftp +echo binary >>inspect.ftp +echo put inspect.html >>inspect.ftp +echo dir >>inspect.ftp +echo mdelete inspect-snapshot.html >>inspect.ftp +echo rename inspect.html inspect-snapshot.html >>inspect.ftp +echo dir >>inspect.ftp +echo bye >>inspect.ftp + +echo Run ftp script... +ftp -n -i -s:inspect.ftp boost.cowic.de + +echo Inspect script complete diff --git a/snapshot_posix.bat b/snapshot_posix.bat new file mode 100644 index 0000000..6ced0d0 --- /dev/null +++ b/snapshot_posix.bat @@ -0,0 +1,71 @@ +rem Build a branches/release snapshot for POSIX, using LF line termination + +rem Copyright 2008 Beman Dawes + +rem Distributed under the Boost Software License, Version 1.0. +rem See http://www.boost.org/LICENSE_1_0.txt + +echo Build a branches/release snapshot for POSIX, using LF line termination... + +echo "Removing old files..." +rmdir /s /q posix >nul +rmdir /s /q svn_info >nul +del posix.tar.gz >nul +del posix.tar.bz2 >nul + +echo "Exporting files from subversion..." +rem leave an audit trail, which is used by inspect to determine revision number +svn co --depth=files http://svn.boost.org/svn/boost/branches/release svn_info +svn export --non-interactive --native-eol LF http://svn.boost.org/svn/boost/branches/release posix + +rem echo "Building docs..." +rem pushd posix/doc +rem TODO +rem popd + +echo Setting SNAPSHOT_DATE +strftime "%%Y-%%m-%%d" >date.txt +set /p SNAPSHOT_DATE= posix.tar.bz2 + +ren boost-posix-%SNAPSHOT_DATE% posix + +echo The ftp transfer will be done in two steps because that has proved more +echo reliable on Beman's Windows XP 64-bit system. + +echo "Creating ftp script 1 ..." +copy user.txt posix.ftp +echo dir >>posix.ftp +echo binary >>posix.ftp + +rem echo put posix.tar.gz >>posix.ftp +rem echo mdelete boost-posix*.gz >>posix.ftp +rem echo rename posix.tar.gz boost-posix-%SNAPSHOT_DATE%.tar.gz >>posix.ftp + +echo put posix.tar.bz2 >>posix.ftp +echo bye >>posix.ftp + +echo Running ftp script 1 ... +ftp -n -i -s:posix.ftp boost.cowic.de + +echo "Creating ftp script 2 ..." +copy user.txt posix.ftp +echo dir >>posix.ftp +echo mdelete boost-posix*.bz2 >>posix.ftp +echo rename posix.tar.bz2 boost-posix-%SNAPSHOT_DATE%.tar.bz2 >>posix.ftp + +echo dir >>posix.ftp +echo bye >>posix.ftp + +echo Running ftp script 2 ... +ftp -n -i -s:posix.ftp boost.cowic.de + +echo POSIX snapshot complete! diff --git a/snapshot_posix.sh b/snapshot_posix.sh index 4d27194..4824c5c 100755 --- a/snapshot_posix.sh +++ b/snapshot_posix.sh @@ -62,4 +62,4 @@ echo "Running ftp script..." # use cygwin ftp rather than Windows ftp /usr/bin/ftp -v -i boost.cowic.de nul +rmdir /s /q svn_info >nul +del windows.7z >nul +del windows.zip >nul + +echo "Exporting files from subversion..." +rem leave an audit trail, which is used by inspect to determine revision number +svn co --depth=files http://svn.boost.org/svn/boost/branches/release svn_info +svn export --non-interactive --native-eol CRLF http://svn.boost.org/svn/boost/branches/release windows + +rem echo "Building docs..." +rem pushd windows/doc +rem TODO +rem popd + +echo Setting SNAPSHOT_DATE +strftime "%%Y-%%m-%%d" >date.txt +set /p SNAPSHOT_DATE= >windows.ftp +echo binary >>windows.ftp + +rem echo put windows.zip >>windows.ftp +rem echo mdelete boost-windows*.zip >>windows.ftp +rem echo rename windows.zip boost-windows-%SNAPSHOT_DATE%.zip >>windows.ftp + +echo put windows.7z >>windows.ftp +echo bye >>windows.ftp + +echo Running ftp script 1 ... +ftp -n -i -s:windows.ftp boost.cowic.de + +echo Creating ftp script 2 ... +copy user.txt windows.ftp +echo dir >>windows.ftp +echo mdelete boost-windows*.7z >>windows.ftp +echo rename windows.7z boost-windows-%SNAPSHOT_DATE%.7z >>windows.ftp + +echo dir >>windows.ftp +echo bye >>windows.ftp + +echo Running ftp script 2 ... +ftp -n -i -s:windows.ftp boost.cowic.de + +echo Windows snapshot complete! diff --git a/snapshot_windows.sh b/snapshot_windows.sh index 4562c0e..14de67f 100755 --- a/snapshot_windows.sh +++ b/snapshot_windows.sh @@ -16,16 +16,10 @@ rm -r -f windows echo "Exporting files from subversion..." svn export --non-interactive --native-eol CRLF http://svn.boost.org/svn/boost/branches/release windows -#echo "Building documentation..." -#pushd windows/doc -#bjam-cygwin --v2 --toolset=gcc &>../../windows-bjam.log -#popd -# #echo "Copying docs from posix tree..." #cp --recursive posix/doc/html windows/doc -echo "Cleaning up and renaming..." -#rm -r windows/bin.v2 +echo "Renaming..." SNAPSHOT_DATE=`eval date +%Y-%m-%d` echo SNAPSHOT_DATE is $SNAPSHOT_DATE mv windows boost-windows-$SNAPSHOT_DATE @@ -35,13 +29,16 @@ mv windows boost-windows-$SNAPSHOT_DATE echo "Building .7z..." rm -f windows.7z +# On Windows, 7z comes from the 7-Zip package, not Cygwin, +# so path must include C:\Program Files\7-Zip. 7z a -r windows.7z boost-windows-$SNAPSHOT_DATE echo "Reverting name..." mv boost-windows-$SNAPSHOT_DATE windows echo "Creating ftp script..." -echo "dir" >windows.ftp +cat >windows.ftp +echo "dir" >>windows.ftp echo "binary" >>windows.ftp #echo "put windows.zip" >>windows.ftp @@ -55,7 +52,7 @@ echo "dir" >>windows.ftp echo "bye" >>windows.ftp echo "Running ftp script..." -# use cygwin ftp rather than windows ftp -/usr/bin/ftp -v -i boost.cowic.de