Quellcode durchsuchen

Daily snapshot: download pre-built docs via ftp, copy into directory structure

[SVN r50540]
Beman Dawes vor 17 Jahren
Ursprung
Commit
a75b6e9891

+ 5 - 2
tools/release/snapshot.bat

@@ -1,4 +1,5 @@
-rem  Run POSIX and Windows snapshots
+@echo off
+rem  Run POSIX and Windows snapshots and inspection
 
 rem  Copyright 2008 Beman Dawes
 
@@ -9,9 +10,11 @@ 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_download_docs.bat
+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
+call %BOOST_TRUNK%\tools\release\snapshot_inspection.bat
 time /t

+ 28 - 0
tools/release/snapshot_download_docs.bat

@@ -0,0 +1,28 @@
+@echo off
+rem  Download and unpack boost-docs.7z
+
+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 Deleting old files and directories ...
+del boost-docs.7z 2>nul
+rmdir /s /q docs_temp 2>nul 
+mkdir docs_temp
+
+echo Creating ftp script ...
+rem user.txt must be a single line: user userid password
+rem where "userid" and "password" are replace with the appropriate values
+copy user.txt download_docs.ftp
+echo binary >>download_docs.ftp
+echo get boost-docs.7z >>download_docs.ftp
+echo bye >>download_docs.ftp
+
+echo Running ftp script ...
+ftp -d -n -i -s:download_docs.ftp boost.cowic.de
+
+echo Unpacking 7z file ...
+7z x -y -odocs_temp boost-docs.7z
+
+echo Download and unpack boost-docs.7z complete!

+ 4 - 4
tools/release/snapshot_posix.bat

@@ -18,10 +18,10 @@ 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 "Building docs..."
+pushd posix\doc
+xcopy /s /y ..\..\docs_temp\html html
+popd
 
 echo Setting SNAPSHOT_DATE
 strftime "%%Y-%%m-%%d" >date.txt

+ 6 - 4
tools/release/snapshot_windows.bat

@@ -18,10 +18,10 @@ 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 "Building docs..."
+pushd windows\doc
+xcopy /s /y ..\..\docs_temp\html html
+popd
 
 echo Setting SNAPSHOT_DATE
 strftime "%%Y-%%m-%%d" >date.txt
@@ -45,6 +45,8 @@ 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 ...
+rem user.txt must be a single line: user userid password
+rem where "userid" and "password" are replace with the appropriate values
 copy user.txt windows.ftp
 echo dir >>windows.ftp
 echo binary >>windows.ftp

粤ICP备19079148号