Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83398 - website/public_html/beta/site-tools
From: dnljms_at_[hidden]
Date: 2013-03-10 11:47:03


Author: danieljames
Date: 2013-03-10 11:47:03 EDT (Sun, 10 Mar 2013)
New Revision: 83398
URL: http://svn.boost.org/trac/boost/changeset/83398

Log:
Remove old release script.

I should have removed this a while ago. Releases are now handled by changing
the `status` value in the release notes.

Removed:
   website/public_html/beta/site-tools/release.py

Deleted: website/public_html/beta/site-tools/release.py
==============================================================================
--- website/public_html/beta/site-tools/release.py 2013-03-10 11:47:03 EDT (Sun, 10 Mar 2013)
+++ (empty file)
@@ -1,48 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2011 Daniel James
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-
-"""Usage: python release.py release_notes.qbk
-
-Mark the supplied release notes as released, and update accordingly.
-"""
-
-import sys, os.path
-import boost_site.site_tools
-
-if len(sys.argv) != 2:
- print(__doc__)
- exit(1)
-
-# Because I'm an idiot, we need to get the real path to the quickbook file
-# before calling init.
-
-if not os.path.isfile(sys.argv[1]):
- print("Unable to find release notes at: " + sys.argv[1])
- exit(1)
-
-release_notes = os.path.realpath(sys.argv[1])
-
-boost_site.site_tools.init()
-
-# Note: Not using os.path.realpath because I want to support Python 2.5
-cwd = os.getcwd()
-if not release_notes.startswith(cwd):
- print("Release notes aren't in current site: " + sys.argv[1])
- exit(1)
-
-release_notes = release_notes[len(cwd):].lstrip('/')
-
-pages = boost_site.site_tools.load_pages()
-boost_site.site_tools.scan_for_new_quickbook_pages(pages)
-
-# Flag the released page
-if release_notes not in pages.pages:
- print("Unable to find page: " + release_notes)
- exit(1)
-pages.pages[release_notes].flags.add('released')
-pages.save()
-
-# Update again to reflect the new state.
-boost_site.site_tools.update_quickbook()


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