wmakeFunctions: Added a faster bash version of 'depToSource'
This commit is contained in:
parent
af5e1cc4cd
commit
36f1016f31
1 changed files with 20 additions and 7 deletions
|
|
@ -102,12 +102,25 @@ findObjectDir()
|
|||
fi
|
||||
}
|
||||
|
||||
depToSource()
|
||||
{
|
||||
sourceFile=$(echo ${depFile%.dep} | \
|
||||
sed -e s%platforms/${WM_OPTIONS}/%% -e s%Make/${WM_OPTIONS}/%% \
|
||||
-e s%platforms/${WM_OPTIONS}${WM_MPLIB}/%% \
|
||||
-e s%Make/${WM_OPTIONS}${WM_MPLIB}/%% )
|
||||
}
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
depToSource()
|
||||
{
|
||||
sourceFile=${depFile%.dep}
|
||||
sourceFile="${sourceFile/platforms\/${WM_OPTIONS}\//}"
|
||||
sourceFile="${sourceFile/Make\/${WM_OPTIONS}\//}"
|
||||
sourceFile="${sourceFile/platforms\/${WM_OPTIONS}${WM_MPLIB}\//}"
|
||||
sourceFile="${sourceFile/Make\/${WM_OPTIONS}${WM_MPLIB}\//}"
|
||||
}
|
||||
else
|
||||
depToSource
|
||||
{
|
||||
sourceFile=$(echo ${depFile%.dep} | \
|
||||
sed -e s%platforms/${WM_OPTIONS}/%% \
|
||||
-e s%Make/${WM_OPTIONS}/%% \
|
||||
-e s%platforms/${WM_OPTIONS}${WM_MPLIB}/%% \
|
||||
-e s%Make/${WM_OPTIONS}${WM_MPLIB}/%% )
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue