|
Boost-Build : |
Subject: Re: [Boost-build] Installing directories and sub dirs in Jamroot
From: Juraj IvanÄiÄ (juraj.ivancic_at_[hidden])
Date: 2009-10-15 03:57:42
cleo wrote:
>
> "
> See
>
> http://www.boost.org/doc/tools/build/doc/html/bbv2/tasks/installing.html
> Section "Preserving Directory Hierarchy".
> "
>
> Thanks. This works. The only issue I have is that some of the directory
> names have periods in them, causing this error:
>
> error: Unable to find file or target named
> error: 'tests/unit1/200/220.1'
> error: referred from project at
> error: '.'
>
> Is there a way around this, or do I have to rename the directories?
My last suggestion fails to work on directories with dot and files
without dot.
Improved version:
import path ;
rule get-files ( dir )
{
local result ;
local filesAndDirs = [ path.glob-tree $(dir) : * ] ;
for i in $(filesAndDirs)
{
if [ CHECK_IF_FILE $(i) ]
{
result += $(i) ;
}
}
return $(result) ;
}
install dataToInstall
:
[ get-files /path/aaa ]
:
<location>/destination/path
<install-source-root>/path/aaa
;
Boost-Build 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