|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73200 - in website/public_html/beta/site-tools: . boost_site
From: dnljms_at_[hidden]
Date: 2011-07-17 15:31:36
Author: danieljames
Date: 2011-07-17 15:31:35 EDT (Sun, 17 Jul 2011)
New Revision: 73200
URL: http://svn.boost.org/trac/boost/changeset/73200
Log:
Website: Just scan for new pages at the start of the release script.
Text files modified:
website/public_html/beta/site-tools/boost_site/site_tools.py | 18 +++++++++++-------
website/public_html/beta/site-tools/release.py | 6 ++----
2 files changed, 13 insertions(+), 11 deletions(-)
Modified: website/public_html/beta/site-tools/boost_site/site_tools.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/site_tools.py (original)
+++ website/public_html/beta/site-tools/boost_site/site_tools.py 2011-07-17 15:31:35 EDT (Sun, 17 Jul 2011)
@@ -27,13 +27,7 @@
pages = load_pages()
if not refresh:
- for location in settings['pages']:
- pages_data = settings['pages'][location]
- for src_file_pattern in pages_data['src_files']:
- for qbk_file in glob.glob(src_file_pattern):
- pages.add_qbk_file(qbk_file, location)
-
- pages.save()
+ scan_for_new_quickbook_pages(pages)
# Translate new and changed pages
@@ -89,6 +83,16 @@
pages.save()
+def scan_for_new_quickbook_pages(pages):
+ for location in settings['pages']:
+ pages_data = settings['pages'][location]
+ for src_file_pattern in pages_data['src_files']:
+ for qbk_file in glob.glob(src_file_pattern):
+ pages.add_qbk_file(qbk_file, location)
+
+ pages.save()
+
+
################################################################################
def generate_rss_feed(feed_file, details):
Modified: website/public_html/beta/site-tools/release.py
==============================================================================
--- website/public_html/beta/site-tools/release.py (original)
+++ website/public_html/beta/site-tools/release.py 2011-07-17 15:31:35 EDT (Sun, 17 Jul 2011)
@@ -34,12 +34,10 @@
release_notes = release_notes[len(cwd):].lstrip('/')
-# Update all the pages first so that the state file is up to date.
-# TODO: Might be enough just to scan for new pages?
-boost_site.site_tools.update_quickbook()
+pages = boost_site.site_tools.load_pages()
+boost_site.site_tools.scan_for_new_quickbook_pages(pages)
# Flag the released page
-pages = boost_site.site_tools.load_pages()
if release_notes not in pages.pages:
print "Unable to find page:", release_notes
exit(1)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk