diff --git a/build/jam/HelperRules b/build/jam/HelperRules index 2e077df478..908418a6a9 100644 --- a/build/jam/HelperRules +++ b/build/jam/HelperRules @@ -51,6 +51,20 @@ rule FFilter return $(newList) ; } +rule FGetGrist +{ + # FGetGrist ; + # + # Returns the grist of a target, not including leading "<" and trailing ">". + + local grist = $(1[1]:G) ; + if ! $(grist) { + return ; + } + + return [ Match <(.*)> : $(grist) ] ; +} + rule FSplitPath { # SplitPath ;