2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-26 17:12:13 +00:00
Files
website/feed/build.jam

68 lines
1.6 KiB
Plaintext

# Copyright 2006 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 ] ] ;
}
actions rss
{
python "$(BB2RSS)" "--channel-title=$(TITLE)" "--channel-link=$(LINK)" "--count=$(COUNT)" "--output=$(<)" "$(>)"
}
path-constant CWD : . ;
make downloads.rss : [ 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)
;