Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68975 - website/public_html/live/doc/libs
From: dnljms_at_[hidden]
Date: 2011-02-17 16:21:35


Author: danieljames
Date: 2011-02-17 16:21:35 EST (Thu, 17 Feb 2011)
New Revision: 68975
URL: http://svn.boost.org/trac/boost/changeset/68975

Log:
The script I used to grab the pages to be altered.
Added:
   website/public_html/live/doc/libs/fetch.sh (contents, props changed)

Added: website/public_html/live/doc/libs/fetch.sh
==============================================================================
--- (empty file)
+++ website/public_html/live/doc/libs/fetch.sh 2011-02-17 16:21:35 EST (Thu, 17 Feb 2011)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ $# != 1 ]
+then
+ echo "Usage: fetch.sh url"
+ exit 0
+fi
+
+path=$(echo $1 | sed -n -E "s/https?:\/\/(www)?\.boost\.org\/doc\/libs\///p")
+
+if [ x$path = x ]
+then
+ echo "Not a boost documentation URL: $1"
+ exit 0
+fi
+
+cd $(dirname $0)
+mkdir -p $(dirname $path)
+cd $(dirname $path)
+
+curl -O $1
\ No newline at end of file


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