cd $SOURCE_DIRECTORY &&
# copy the libs and create symlinks
for foo in $(find -executable -type f); do
  bar=$(basename $foo)
  cp $foo ${INSTALL_ROOT}/usr/lib/$bar &&
  ln -s ${INSTALL_ROOT}/usr/lib/$bar ${INSTALL_ROOT}/usr/lib/$(expr match "${bar}" '\([a-z_]*\.so\)')
done &&

#install the include files
mkdir ${INSTALL_ROOT}/usr/include/tbb &&
cp -a $SOURCE_DIRECTORY/include/tbb/* ${INSTALL_ROOT}/usr/include/tbb
 
