Added rule FGetGrist. I almost used it... ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17955 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -51,6 +51,20 @@ rule FFilter
|
|||||||
return $(newList) ;
|
return $(newList) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rule FGetGrist
|
||||||
|
{
|
||||||
|
# FGetGrist <target> ;
|
||||||
|
#
|
||||||
|
# Returns the grist of a target, not including leading "<" and trailing ">".
|
||||||
|
|
||||||
|
local grist = $(1[1]:G) ;
|
||||||
|
if ! $(grist) {
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
return [ Match <(.*)> : $(grist) ] ;
|
||||||
|
}
|
||||||
|
|
||||||
rule FSplitPath
|
rule FSplitPath
|
||||||
{
|
{
|
||||||
# SplitPath <path> ;
|
# SplitPath <path> ;
|
||||||
|
|||||||
Reference in New Issue
Block a user