/usr/share/boost-build/src/tools/types/register.jam is in libboost1.62-tools-dev 1.62.0+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # Copyright David Abrahams 2004. 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)
# This module's job is to automatically import all the type
# registration modules in its directory.
import type os path modules ;
# Register the given type on the specified OSes, or on remaining OSes
# if os is not specified. This rule is injected into each of the type
# modules for the sake of convenience.
local rule type ( type : suffixes * : base-type ? : os * )
{
if ! [ type.registered $(type) ]
{
if ( ! $(os) ) || [ os.name ] in $(os)
{
type.register $(type) : $(suffixes) : $(base-type) ;
}
}
}
.this-module's-file = [ modules.binding $(__name__) ] ;
.this-module's-dir = [ path.parent [ path.make $(.this-module's-file) ] ] ;
.sibling-jamfiles = [ path.glob $(.this-module's-dir) : *.jam ] ;
.sibling-modules = [ MATCH ^(.*)\.jam$ : $(.sibling-jamfiles) ] ;
# A loop over all modules in this directory
for m in $(.sibling-modules)
{
m = [ path.basename $(m) ] ;
m = types/$(m) ;
# Inject the type rule into the new module
IMPORT $(__name__) : type : $(m:B) : type ;
import $(m) ;
}
|