mirror of
https://github.com/boostorg/website.git
synced 2026-02-22 03:52:10 +00:00
72 lines
1.7 KiB
Plaintext
72 lines
1.7 KiB
Plaintext
# 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 ;
|
|
|
|
feature.feature title : : free ;
|
|
feature.feature uri : : free ;
|
|
feature.feature count : : free ;
|
|
feature.feature cwd : : 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)
|
|
= % ;
|
|
}
|
|
|
|
actions rss
|
|
{
|
|
python "$(BB2RSS)" "--channel-title=$(TITLE)" "--channel-link=$(LINK)" "--count=$(COUNT)" "--output=$(<)" "$(>)"
|
|
}
|
|
|
|
path-constant CWD : . ;
|
|
|
|
make downloads.rss :
|
|
history/boost_1_34_1.xml
|
|
[ glob downloads/*.xml ]
|
|
: @rss :
|
|
<title>"Boost Downloads"
|
|
<uri>"http://www.boost.org/feed/download.rss"
|
|
<count>5
|
|
<location>$(CWD)
|
|
<cwd>$(CWD)
|
|
;
|
|
|
|
make history.rss : [ glob history/*.xml ]
|
|
: @rss :
|
|
<title>"Boost History"
|
|
<uri>"http://beta.boost.org/feed/history.rss"
|
|
<location>$(CWD)
|
|
<cwd>$(CWD)
|
|
;
|
|
|
|
make news.rss : [ glob news/*.xml ] [ glob history/*.xml ]
|
|
: @rss :
|
|
<title>"Boost News"
|
|
<uri>"http://beta.boost.org/feed/news.rss"
|
|
<count>5
|
|
<location>$(CWD)
|
|
<cwd>$(CWD)
|
|
;
|