local FF FBDEST                   &&
mkdir -p ${FB_PREFIX}/intl        &&
if [[ $FB_CLIENT == n ]]; then
# prepare an install image
  cd $SOURCE_DIRECTORY/gen        &&
  ./install/makeInstallImage.sh   &&
# config files
  cd $SOURCE_DIRECTORY/gen/install/misc                         &&
  install_config_file firebird.conf $FB_PREFIX/firebird.conf    &&
  install_config_file aliases.conf  $FB_PREFIX/aliases.conf     &&
  install_config_file fbintl.conf   $FB_PREFIX/intl/fbintl.conf
else
  cd $SOURCE_DIRECTORY/gen/firebird    &&
  for FF in bin include lib;do
    FBDEST=$FB_PREFIX/$FF              &&
    mkdir -p $FBDEST                   &&
    cp -ar $FF/* $FBDEST/$FF
  done
fi
