Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73076 - in website/public_html/beta/site-tools: . php
From: dnljms_at_[hidden]
Date: 2011-07-13 18:16:23


Author: danieljames
Date: 2011-07-13 18:16:22 EDT (Wed, 13 Jul 2011)
New Revision: 73076
URL: http://svn.boost.org/trac/boost/changeset/73076

Log:
Website: Go back to calling the php documentation script separately.
Added:
   website/public_html/beta/site-tools/update-doc-list.php (contents, props changed)
Removed:
   website/public_html/beta/site-tools/php/update-doc-list.php
Text files modified:
   website/public_html/beta/site-tools/README.txt | 13 +++++++++++--
   website/public_html/beta/site-tools/site-tools.py | 13 +------------
   2 files changed, 12 insertions(+), 14 deletions(-)

Modified: website/public_html/beta/site-tools/README.txt
==============================================================================
--- website/public_html/beta/site-tools/README.txt (original)
+++ website/public_html/beta/site-tools/README.txt 2011-07-13 18:16:22 EDT (Wed, 13 Jul 2011)
@@ -1,6 +1,12 @@
 Boost website generator
 =======================
 
+This site contains several scripts for maintaining the Boost website.
+These are:
+
+site-tools.py
+-------------
+
 A script to generate several of the pages on the Boost website,
 including the release notes, the home page and the downlaod page,
 as well as some other data for the site.
@@ -17,8 +23,11 @@
             Useful for when quickbook, the scripts or the templates have
             been updated.
 
-docs Update the documentation list from doc/libraries.xml.
- Requires php to be on the path and the site to be configured.
+update-doc-list.php
+-------------------
+
+Updates the documentation list from `doc/libraries.xml`.
+Requires php the site to be configured.
 
 ----------------------------------------------------------------------
 

Deleted: website/public_html/beta/site-tools/php/update-doc-list.php
==============================================================================
--- website/public_html/beta/site-tools/php/update-doc-list.php 2011-07-13 18:16:22 EDT (Wed, 13 Jul 2011)
+++ (empty file)
@@ -1,8 +0,0 @@
-<?php
-
-echo "Serializing library info\n";
-
-require_once(dirname(__FILE__) . '/../../common/code/boost_libraries.php');
-
-$libs = new boost_libraries(dirname(__FILE__) . '/../../doc/libraries.xml');
-file_put_contents(dirname(__FILE__) . '/../../doc/libraries.txt', serialize($libs));

Modified: website/public_html/beta/site-tools/site-tools.py
==============================================================================
--- website/public_html/beta/site-tools/site-tools.py (original)
+++ website/public_html/beta/site-tools/site-tools.py 2011-07-13 18:16:22 EDT (Wed, 13 Jul 2011)
@@ -16,9 +16,6 @@
             Useful for when quickbook, the scripts or the templates have
             been updated.
 
-docs Update the documentation list from doc/libraries.xml.
- Requires php to be on the path and the site to be configured.
-
 """
 
 import os, sys, subprocess, glob, re, time, xml.dom.minidom, codecs
@@ -79,9 +76,7 @@
 
     command = argv[0]
 
- if command == 'docs':
- return update_php_docs()
- elif command == 'update':
+ if command == 'update':
         return update_quickbook(False)
     elif command == 'refresh':
         return update_quickbook(True)
@@ -89,12 +84,6 @@
         print __doc__
         return
 
-def update_php_docs():
- try:
- subprocess.check_call(['php', 'site-tools/php/update-doc-list.php'])
- except:
- print "PHP documentation serialization failed."
-
 def load_hashes(hash_file):
     qbk_hashes = {}
 

Added: website/public_html/beta/site-tools/update-doc-list.php
==============================================================================
--- (empty file)
+++ website/public_html/beta/site-tools/update-doc-list.php 2011-07-13 18:16:22 EDT (Wed, 13 Jul 2011)
@@ -0,0 +1,8 @@
+<?php
+
+echo "Serializing library info\n";
+
+require_once(dirname(__FILE__) . '/../common/code/boost_libraries.php');
+
+$libs = new boost_libraries(dirname(__FILE__) . '/../doc/libraries.xml');
+file_put_contents(dirname(__FILE__) . '/../doc/libraries.txt', serialize($libs));


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