Implement rule AddDirectoryToHaikuImage in installoptionalpackage.

Fixes #9584.
This commit is contained in:
Matt Madia 2013-03-27 17:45:03 -04:00
parent 2b41b37891
commit cf2f912782

View File

@ -216,6 +216,21 @@ function InstallSourceArchive()
}
function AddDirectoryToHaikuImage()
{
# AddDirectoryToHaikuImage directoryTokens : attributeFiles
# Wrapper for Jam rule
ParseFunctionArguments "\$@"
local dirTokens="/boot/\${functionArgs[0]}"
TrimLeadingSpace dirTokens
TrimEndingSpace dirTokens
dirTokens=\${dirTokens//' '/\/}
mkdir -p "\${dirTokens}"
}
function AddSymlinkToHaikuImage()
{
# AddSymlinkToHaikuImage <dir tokens> : <link target> [ : <link name> ]