make_single &&
default_install &&
make_normal &&

mkdir -p "$INSTALL_ROOT/etc/profile.d/" &&

if install_config_file "$SPELL_DIRECTORY/profile.d/editor.sh" \
                       "$INSTALL_ROOT/etc/profile.d/editor.sh"; then

  chmod 0755 "$INSTALL_ROOT/etc/profile.d/editor.sh" &&

  local VILE_BIN="vile" &&

  if is_depends_enabled $SPELL libx11; then
    VILE_BIN="xvile"
  fi &&

  sedit "s:%VILE_BIN%:${VILE_BIN}:" "$INSTALL_ROOT/etc/profile.d/editor.sh"
fi
