2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-19 04:42:17 +00:00

Website: Remove old build system and bootstrap code.

[SVN r70849]
This commit is contained in:
Daniel James
2011-04-02 10:12:08 +00:00
parent 88f859c0a9
commit 6438201a89
11 changed files with 0 additions and 311 deletions

View File

@@ -1,44 +0,0 @@
# Copyright Rene Rivera 2007.
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# For instructions see project-root.jam, or "bjam --help".
local rule if-has-file ( file + : dir * )
{
local result ;
if $(dir)
{
result = [ GLOB $(dir) : $(file) ] ;
}
return $(result[1]:P) ;
}
#~ Attempts to find the Boost source tree...
local boost-src = [ if-has-file bootstrap.sh :
[ MATCH --boost=(.*) : $(ARGV) ]
$(BOOST_ROOT)
$(BOOST)
$(.boost-build-file:D)/../boost
] ;
#~ Attempts to find the Boost.Build files...
local boost-build-src = [ if-has-file bootstrap.jam :
[ MATCH --boost-build=(.*) : $(ARGV) ]
$(BOOST_BUILD_PATH)
$(BOOST_BUILD)
$(boost-src)/tools/build/v2
] ;
#~ Set some common vars to refer to the Boost sources...
BOOST ?= $(boost-src) ;
BOOST_ROOT ?= $(boost-src) ;
#~ And load up Boost.Build...
boost-build $(boost-build-src) ;

View File

@@ -1,101 +0,0 @@
# Copyright 2006-2007 Rene Rivera
# 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)
build-project downloads ;
build-project history ;
build-project news ;
import feature ;
import property ;
import path ;
import set ;
feature.feature title : : free ;
feature.feature uri : : free ;
feature.feature count : : free ;
feature.feature cwd : : free ;
feature.feature update-file : : free ;
rule get ( property : properties * )
{
local r = [ property.select $(property) : $(properties) ] ;
return $(r:G=) ;
}
rule rss ( targets * : sources * : properties * )
{
TITLE on $(targets)
= [ get <title> : $(properties) ] ;
LINK on $(targets)
= [ get <uri> : $(properties) ] ;
COUNT on $(targets)
= [ get <count> : $(properties) ] ;
BB2RSS on $(targets)
= [ path.native [ path.join [ get <cwd> : $(properties) ] bbook2rss.py ] ] ;
JAMSHELL on $(targets)
= % ;
PYTHON on $(targets)
= [ property.select <python.interpreter> : $(properties) ] ;
UPDATE_FILE on $(targets)
= [ get <update-file> : $(properties) ] ;
DEPENDS $(targets) : [ get <update-file> : $(properties) ] ;
}
actions rss
{
"$(PYTHON:G=:E=python)" "$(BB2RSS)" "--channel-title=$(TITLE)" "--channel-link=$(LINK)" "--count=$(COUNT)" "--update-file=$(UPDATE_FILE)" "--output=$(<)" "$(>)"
}
rule glob-rss ( p + )
{
local files = [ glob $(p:S=.qbk) ] ;
files = $(files:S=.xml) ;
local result ;
for local f in $(files)
{
local d = $(f:D) ;
result += $(d:B)//$(f:D=) ;
}
return $(result) ;
}
path-constant CWD : . ;
make downloads.rss
: [ set.difference
[ glob-rss history/boost_1_46_1 history/boost_1_46_0 downloads/* ] :
[ glob-rss downloads/bjam* ]
]
: @rss :
<title>"Boost Downloads"
<uri>"http://www.boost.org/feed/downloads.rss"
<count>5
<location>$(CWD)
<cwd>$(CWD)
<update-file>downloads-hashes.txt
;
make history.rss : [ glob-rss history/* ]
: @rss :
<title>"Boost History"
<uri>"http://www.boost.org/feed/history.rss"
<location>$(CWD)
<cwd>$(CWD)
<update-file>history-hashes.txt
;
make news.rss
: [ set.difference
[ glob-rss news/* history/* ] :
## Uncomment the following line out to hide the item from the result.
#~ [ glob-rss history/boost_1_40_0 ]
]
: @rss :
<title>"Boost News"
<uri>"http://www.boost.org/feed/news.rss"
<count>5
<location>$(CWD)
<cwd>$(CWD)
<update-file>news-hashes.txt
;

View File

@@ -1,2 +0,0 @@
history/boost_1_46_0.qbk,a3a47e0af538e0c3b611c31efb5e7d0cbd4b27a99f77bc8f01a3c6a0cd17d999,edcd6035c761c9ec8424f8a02c268285a3d66ca9cc7d225e41c890a233afcec6
history/boost_1_46_1.qbk,5ad8f1323c49dcdf19ed6717502b4e2d002110cb2f07f4c66f5846df4bb728ab,ae5d583f54f987ac38cbedc82f1309af8abb4d4f9158977e7695da46c209c91d

View File

@@ -1,14 +0,0 @@
# Copyright 2006-2007 Rene Rivera
# 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)
import quickbook ;
for local qbk in [ glob *.qbk ]
{
quickbook.to-boostbook $(qbk:S=.xml)
: $(qbk)
: <location>.
<include>..
;
}

View File

@@ -1,59 +0,0 @@
history/boost_1_10_3.qbk,9240764403ca3c325db3cdf4c0066b5e7b47ba5ba823a186a025dc5a3a1a787f,9a2cfd227461b9e809e311178decc5f317ab473b5e72454ccb4f8531b8ab5a66
history/boost_1_10_4.qbk,0689082a973500ec14b00028b1e5f2a60648c64c307eb4364f2558253153ce9e,74e7a2ed82e40bfdeebca7e7198266bb7f04d7288ec97f5522e1cbff4f5b7237
history/boost_1_11_0.qbk,67382ac34c7c0e451e0e3bba2879e9bdcc12e33972a93fc69b60d6b3bc24dce7,07c1bc1d88ef77d15ae13ef24757201dd3033af49ab723c66b68c00eefa7b931
history/boost_1_11_1.qbk,413c4c979d4d80c6614be34a5a3325029cae62907e22ca3e535d70ed88db38a6,f2abf0cacaec346d9ae8f3a9371a37d8c02254df20b5f883930645d843a5abe4
history/boost_1_11_2.qbk,a4293ce0c46af865584bccf3f7354d82ee97c51866b43d34b4718cc1ce0f0725,8456870430969fa017687746fc779d672e12e0afd8e3e2be84ae39bc868afca1
history/boost_1_12_0.qbk,2a2dff5a3eef04b47230d85bfb8eddb103fdc1c15cc246df7f8a44d0a7e40e1e,2d9de129320c56c266092237627b51237e3762fea9a027f4b771ca62a6fdba84
history/boost_1_13_0.qbk,21f0a59c0d4435c7ad05767a6ccacec9d3afa77acdbf03b83284eb7bc9d30d91,f2ed76e90260dccb4a32ff172fa1fb90264fbfa9d7e33f1eb97726937dcb5ebb
history/boost_1_14_0.qbk,fab0872295832be003520f4107b36fc362fcabcfebbd81144218d5725799a72a,bcc75b1d0fdda11f545f03298c4007d9970cf2894f6149fd9d69dcd27cf06c00
history/boost_1_14_1.qbk,34c5c8b487b4d5118c94b850700be76d61b732020e03c74b595efbc1a20b304a,bf962fbda02e87f11c7a400fb57c980b4d9813083493f41a42e3db074e99fcc9
history/boost_1_14_2.qbk,23845765a7583d95f17645c8fc1e6b75e38aba0bc549ebfa45e0e3d1c432392e,31eeef2f6d348dee6e8e2873eb45acaba4a33e71d9dc7c55eec6989f19e74afa
history/boost_1_14_3.qbk,84994a759139b0855659f85d84ec8e26b63f0d570aef1edc1a1b09aa89236b04,a74b9dc8b6f0b6797ac56b75cb74b31e813e36b2ecaee0c444154086f43805ca
history/boost_1_15_0.qbk,64a74adf448937845c73f2927acd5320da956960c77a32620f9b1b4e764b9bc0,3d162a9c3908547bc3a286c2777f9efbc20a447dafaebc4fb9339709200967f6
history/boost_1_15_1.qbk,d9030c305a156f2c0c6e59a80ec2ebd4df88cd93cf7d11a95ec8ec5770c4e93d,e314efbae110dd64b15db20060d829278dc17f9614be9d9e3c771f2d92c1098e
history/boost_1_16_0.qbk,58953d476076c6d8d27316cb0414223f8a1b956cbf998dd40becc5a288ba9301,ebed71e04c4f2ea41625b1ec3bfb6ffd2a365300e4393105c6429ef64d5cedde
history/boost_1_16_1.qbk,e9cfe78093c2462b4166e779f2740fe6589eb5214ea9f3298416f25d3e1e0395,bd79d606846fe583b1340996014bee1bb2cdd9214fc3c9c5d66ae3d1b7bc10ad
history/boost_1_17_0.qbk,6438f2276c790ee013de72047c723747f088ce6757e1ea137383d08f2c6369bc,fc53015ccd60ab8f66628742f059ce687402cee1340f4afd665f906982451577
history/boost_1_18_0.qbk,f925c43a9967532c6bfb609999cf9932ca4a3523cac323225abdd99caed66ad8,33fd07359c57c51641c78809cf28f826eca14b560ce726f8133a2935ad5f117c
history/boost_1_18_1.qbk,ac4d5eb8957d6034bfbfc0ef57489871c5112914a3dd521259b2b3a2420cc835,44cb7c2a88ef9255bdb4efe7042d7f5882b0622ce825fa08e59ed06ea287e279
history/boost_1_18_2.qbk,2778a5854208d54f004f4203f39fcdad9ee9718392cf968d835438d3975b0012,5fc9e7685da619e5df09d8df4edf97f2607db0566151ebf8076e10947dfe6ea6
history/boost_1_18_3.qbk,1eef2eefbe325964ad040dc16940aa00798617196807c1e423c05a8579c95f88,77effd7092648dc513a630f6cb57ed533f42612beac29410d93c998e527c4a73
history/boost_1_19_0.qbk,5b95dbd6c984ee0dad1a981b0e850319ca2a7573c2bb85516bb50e689a7908f0,5a6ff21def74e85819dd460e1e3020011682f0bfad8f797387fc57b92a66c0ca
history/boost_1_20_0.qbk,cbbee6d4143caa4d06a378502c0a99bc92bba0092a87aa96f54712554ee02382,af3e877522abdbef56d0e39bc3880eee7ea3060a1697309b26b0c931d3d4c616
history/boost_1_20_1.qbk,5fdd753b16f712313c71ef2e9475f81af47ef92aea3b25646224722d7ae144a2,695bd43ab0d8d137aacbf9763a12676c2cf264791d882cb4ee20d0ae13497a91
history/boost_1_20_2.qbk,6fe8c0b5d027e6337fd652736f00c1d6d3784faea7918db9d7d344d0df88e7fa,f5d0588994320737a6e9fcdd3b6181abe33c6fa290195fb0be216a1f743daae7
history/boost_1_21_0.qbk,c4fcb70496be7d8f351c2e66c05f6619308b1b3587503365da891721b137e54a,e554bb024b9761a1df2669a209d12622c7137bdab4551fb28715df9c9e661eaf
history/boost_1_21_1.qbk,ea216b3c0896abdb2979b773c5ac64f4203b0a33842e146ea35a7eed44187859,bb8c15b4e16a6eb299ed4059daa64123726cd7fd0de845351b6d589f90cb7d17
history/boost_1_21_2.qbk,4e39a6e9abf9f3cadefa2f0118c16b3248eca21f3a6e82092d8107fecb88c5f7,b2170c6ba85f2cdd9d987d9d66043e0141d813578808f379874baa60bcdfb312
history/boost_1_22_0.qbk,fed6f6b97207175851e441540f057eef41aa2fde9698fbe7ca3876d715c3d020,4d212ff5c4f3e37ef013628a32fd79a0e5e7de9e3cd82c06b3529e128a04c2ed
history/boost_1_23_0.qbk,ce6ba3ffc607f8385943ff3ec6da9d7801df760330a586ec2e17462440f7e3de,477eeb738f991286054054039869b0662cfeeb41675bf99e6fb19a706f2145de
history/boost_1_24_0.qbk,99e21a2b4afa220f7f1fb76e0d8daa6b33d477a13f4003bcb4e6362e42f276b4,e1f83436b7fdc9877b3bdc5a82a93b8e34af9697cd9be1906af310ea50f9be85
history/boost_1_25_0.qbk,122dfbf8228a9e6426d1f3802202a991c9cae26112d2eb01df2c687884a8102d,103fa0c4c926351489732999dbbeb85b45dfec4016ae51ad999b52f7ddd58555
history/boost_1_25_1.qbk,d1bd9c0d14d8ecfda7772eacdd77770326ba94772b9ec9da21ccfbc308af5b77,3fd767b7e089cf91660546a6c0eddf92e4e695816891d3fc87d0601698cbcc4f
history/boost_1_26_0.qbk,5e09d51ba46a956dd5cc6670ce86a3c0dc1bef222b19f4ae636b6ed60abdc742,7025054be7efb776ced6c93fd7e3501ed38a28c13dfac448aabce8bfc46ad3b8
history/boost_1_27_0.qbk,ff4159154e1b4e7a3d515731df06ebab5624c4b3d08f9ec1f79451b18269fdb4,a9683c30baf9e31eef7d0d75cdc2eac079b5069c4685f4168199438c30144fa6
history/boost_1_28_0.qbk,cddd7dab0104f8b3151fc8cce324dff0c34135b7e2313f1382b782b9b2231138,4b525cf5fa0f6e6ae6949b026816cceae04eaaee25d3cdd009493683053c776b
history/boost_1_29_0.qbk,0e836ed411a1f5a53e75e860018b2b2ca4ab1cc3ad8544146cf0f4807b3485fe,e2c904c19eb64fdae9aa43395c65bda51eb0a99c367649ccce744902bd71bb5b
history/boost_1_30_0.qbk,a1d9822b63927c494baadbfbe3001f964d54920294fafe2b3b7a7419d3248342,deeb8423aeeb2f9ab9593134529af465dfdb8f129b3c1daa6a0a249a5baeb15d
history/boost_1_30_1.qbk,b86adefd51df94cc6c0e7fb539c63b72a3bb3cf2a2ee9922b6707030e9667d20,f941941f8b984f9e3afaab20deee8954404a279aef4da577c60e9de0716ce410
history/boost_1_30_2.qbk,ab06fe46b37714a58c55f0b6c8ef635dcde6e1fb6e8b682956275cf18c5ea693,3c1da34aec9d4d052c0167c862013d6accde2a8ff54508ca2aa9c24ed58be4ac
history/boost_1_31_0.qbk,e5c9ba807efecce7adfe2b79e85803c4a78cf15b5cc2bf6157fdb0428cbf7ad3,d339c9b8311acd31c589a9c807bfdd8b32d4ee0f1e3302efc2bc0c779868b823
history/boost_1_32_0.qbk,ad4cd6d8b407a169bb25d752798f13d9ff3df4f5bd8293f653685accd76ad65e,ba66bddfa22bb7ec12ecfd0bea568ffe6060ff60ab1f7610fc3f02a1d4efc50d
history/boost_1_33_0.qbk,47447e0da8cad3d75ef31b26067399b7e3be6ae87353773b383832efd48ac2b1,1c585fc312c3bcda5513007b305fe58144d62af9825b0b2b727071dd62fe708f
history/boost_1_33_1.qbk,1d923fdf5782719b57d9449abd36ba6940d5a48e9e206242a6700ece736597c3,6dd8234275971105f1764df912f49549fabe1ee4635728d6ab85d202d01cce40
history/boost_1_34_0.qbk,79ad2eba7d4b10547f5f8f6d1be055639cdc661ac47ecc1b49f3fc53fa9a996d,5490a672df11abac04dd53f8465af893a36444080f6931b6a73cb004737a435e
history/boost_1_34_1.qbk,8de6f8182e7f39fbe19f8a406c6e5943e65b3d8bf3b5785f5e987b748ba84dba,dea50dec707051d13b88b6ef83ce522703ffd136585ceb2a388f8cfd9f3900c6
history/boost_1_35_0.qbk,57d63e7992a16556d9d10eb55122139150842e5c82db4240672637d500571aa6,e40b1698c1d92bfca56285bdb9d38dd9688f4cea47f469a61aca534864caabae
history/boost_1_36_0.qbk,926eef99602cf999fc1e5af98c8d3d8f1e76d36a5472bda0507e3bcb5d3c7bf8,89d1b4969e1d7061a3bcb562e365d367f049e0473eb4ec1e909bfcd928abd9c9
history/boost_1_37_0.qbk,3736c373799bf0bd6711b254b2e954aabf520b004f79173a50ab44410164bb72,5e7a3d8e15b622bc9dd81334c978ca919c59ac38738155ab8dfc96da05fc5f78
history/boost_1_38_0.qbk,0dc18e6d36a36e650b7bdef522c7bb499ca65090e8300e52cb9f7c0bd246a417,158b0cf4d9c12d3505bac822292c11b062ceda908933e8d741b2ce2390d8f815
history/boost_1_39_0.qbk,9b8b61a593e7434a14b6a4849e9752a950bb948216b0ecaa21adaef847db0e75,c710f5c506f8db0cb45357e5d439dda886f7982b76e69ac72459202f1d3f33be
history/boost_1_40_0.qbk,1cbd35d1bbf7fba519658d0465006dc3ccde0b96240f3ce081cc2235babd7861,f7facd471c80ed74249b82ad0f71bf1aba7f152e3966069b3ea1e51cbb44649b
history/boost_1_41_0.qbk,826427c5daba1dc00aea14a2c57c6141dcdba4fc383c1c4616beb57d0c79aee5,4e919f57c667fec2e599d48c69b30bb2f10a7dd1d8ba551efbac83131c0ffa34
history/boost_1_42_0.qbk,36765d15b10a22aaa541044a5109f9f4d7366b9f54809f44d55e1d9d162a1537,0c0c2b687cdb2ef6680aad359a9f3eb4fb002fe14363041906ec585663211521
history/boost_1_43_0.qbk,242b5e8f79076daf044d3298e84c5e6afce6f075c9ea94a80bb55ad5ee49b45a,26924935e36618f705723425e30a045ff0d06a13ec27645115ad490f744ef9c3
history/boost_1_44_0.qbk,5afefb7a3ac845e5bca131096f43532bc849a358a76fb5b81d1771c859567fe7,38b3363ee32e6ac268e029baaa675b4a6e21cc5ff2abb6310f9cc19d8ccc5ce5
history/boost_1_45_0.qbk,26ea33eb12d21314ae3a4c3eaa2dab5ace7d90929a1a3073b3bda7b99ff3c5b6,efa947fe7348a82a0dd9d03dc01d3f9fef69d42f3e761bc9a6491453b24d43d2
history/boost_1_46_0.qbk,a3a47e0af538e0c3b611c31efb5e7d0cbd4b27a99f77bc8f01a3c6a0cd17d999,edcd6035c761c9ec8424f8a02c268285a3d66ca9cc7d225e41c890a233afcec6
history/boost_1_46_1.qbk,5ad8f1323c49dcdf19ed6717502b4e2d002110cb2f07f4c66f5846df4bb728ab,ae5d583f54f987ac38cbedc82f1309af8abb4d4f9158977e7695da46c209c91d
history/unversioned.qbk,2810bfebb2d0739fad2f520df2c386dde484dd28bcd117422b9a95f6df449d8e,8002a54cd484904089f5ece182b03e50d50160c1e1e6b276be44bcf91c8214fb

View File

@@ -1,14 +0,0 @@
# Copyright 2006-2007 Rene Rivera
# 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)
import quickbook ;
for local qbk in [ glob *.qbk ]
{
quickbook.to-boostbook $(qbk:S=.xml)
: $(qbk)
: <location>.
<include>..
;
}

View File

@@ -1,5 +0,0 @@
history/boost_1_43_0.qbk,242b5e8f79076daf044d3298e84c5e6afce6f075c9ea94a80bb55ad5ee49b45a,26924935e36618f705723425e30a045ff0d06a13ec27645115ad490f744ef9c3
history/boost_1_44_0.qbk,5afefb7a3ac845e5bca131096f43532bc849a358a76fb5b81d1771c859567fe7,38b3363ee32e6ac268e029baaa675b4a6e21cc5ff2abb6310f9cc19d8ccc5ce5
history/boost_1_45_0.qbk,26ea33eb12d21314ae3a4c3eaa2dab5ace7d90929a1a3073b3bda7b99ff3c5b6,efa947fe7348a82a0dd9d03dc01d3f9fef69d42f3e761bc9a6491453b24d43d2
history/boost_1_46_0.qbk,a3a47e0af538e0c3b611c31efb5e7d0cbd4b27a99f77bc8f01a3c6a0cd17d999,edcd6035c761c9ec8424f8a02c268285a3d66ca9cc7d225e41c890a233afcec6
history/boost_1_46_1.qbk,5ad8f1323c49dcdf19ed6717502b4e2d002110cb2f07f4c66f5846df4bb728ab,ae5d583f54f987ac38cbedc82f1309af8abb4d4f9158977e7695da46c209c91d

View File

@@ -1,14 +0,0 @@
# Copyright 2006-2007 Rene Rivera
# 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)
import quickbook ;
for local qbk in [ glob *.qbk ]
{
quickbook.to-boostbook $(qbk:S=.xml)
: $(qbk)
: <location>.
<include>..
;
}

View File

@@ -1,21 +0,0 @@
# Copyright Rene Rivera 2007.
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Usage:
#
# bjam [options | properties | targets]
#
# Options:
#
# --boost=<BOOST> The directotory of a Boost source tree.
# Default; BOOST env var (if found)
# Default; ../boost (if found)
#
# --boost-build=<BOOST_BUILD>
# The directory for the Boost.Build v2 files.
# Default; BOOST_BUILD_PATH env var (if found)
# Default; BOOST_BUILD env var (if found)
# Default; <BOOST>/tools/build/v2 (if found)

View File

@@ -20,9 +20,6 @@ refresh Reconvert all the quickbook files and regenerate the html
docs Update the documentation list from doc/libraries.xml.
Requires php to be on the path and the site to be configured.
start Setup the state file and regenerate html files from the old
hashes files.
----------------------------------------------------------------------
Copyright 2011 Daniel James

View File

@@ -19,9 +19,6 @@ refresh Reconvert all the quickbook files and regenerate the html
docs Update the documentation list from doc/libraries.xml.
Requires php to be on the path and the site to be configured.
start Setup the state file and regenerate html files from the old
hashes files.
"""
import os, sys, subprocess, glob, re, time, xml.dom.minidom, codecs
@@ -88,10 +85,6 @@ def main(argv):
return update_quickbook(False)
elif command == 'refresh':
return update_quickbook(True)
elif command == 'start':
status = convert_hash_files()
if(status != 0): return status
return update_quickbook(True)
else:
print __doc__
return
@@ -102,33 +95,6 @@ def update_php_docs():
except:
print "PHP documentation serialization failed."
def convert_hash_files():
hashes = {}
for hash_file in glob.glob('feed/*-hashes.txt'):
new_hashes = load_hashes(hash_file)
for qbk_file in new_hashes:
full_path = 'feed/%s' % qbk_file
if(full_path in hashes and hashes[full_path] != new_hashes[qbk_file]):
print "Contradiction for %s" % qbk_file
return -1
else:
hashes[full_path] = new_hashes[qbk_file]
state = {}
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):
if qbk_file in hashes:
state = hashes[qbk_file]
state['dir_location'] = location
boost_site.state.save(hashes, 'site-tools/state/feed-pages.txt')
return 0
def load_hashes(hash_file):
qbk_hashes = {}