cd INSTALL_ROOT &&
find . | cpio --pass-through --make-directories --verbose "${INSTALL_ROOT}/" &&

cd  "${SOURCE_DIRECTORY}/doc"  &&

mkdir -p "${INSTALL_ROOT}/usr/share/man/man1" &&
for  MANPAGE  in  `ls  *.1`;  do
  gzip  -9  "${MANPAGE}"  &&
  cp  "${MANPAGE}.gz"  "${INSTALL_ROOT}/usr/share/man/man1"
done  &&

if spell_ok texinfo; then
  cp  bashref.info  "${INSTALL_ROOT}/usr/share/info/bash.info"  &&
  install-info  --info-dir="${INSTALL_ROOT}/usr/share/info"     \
                 "${INSTALL_ROOT}/usr/share/info/bash.info"
fi &&

#
# Install login setup scripts (Bug #9473) here instead of in FINAL
#

#
# Install etc/profile.d scripts
#
for i in dummy lc.sh;  do
  if  install_config_file  "${SCRIPT_DIRECTORY}/profile.d/$i"   \
                           "${INSTALL_ROOT}/etc/profile.d/$i";  then
    chmod  0755  "${INSTALL_ROOT}/etc/profile.d/$i"
  fi
done  &&

#Install configuration file for the lc.sh script
install_config_file "${SCRIPT_DIRECTORY}/profile.d/locale.conf"  \
                    "${INSTALL_ROOT}/etc/sysconfig/locale"       &&

if  install_config_file  "${SCRIPT_DIRECTORY}/profile"   \
                         "${INSTALL_ROOT}/etc/profile";  then
  chmod  0755  "${INSTALL_ROOT}/etc/profile"
fi  &&

#
# Bug #9672
#
if  install_config_file  "${SCRIPT_DIRECTORY}/bashrc"   \
                         "${INSTALL_ROOT}/etc/bashrc";  then
  chmod  0755  "${INSTALL_ROOT}/etc/bashrc"
fi  &&

#
# Bug #9673
#
if  install_config_file  "${SCRIPT_DIRECTORY}/skel/bash_profile"    \
                         "${INSTALL_ROOT}/etc/skel/.bash_profile";  then
  chmod  0755  "${INSTALL_ROOT}/etc/skel/.bash_profile"
fi  &&

#
# Bug #9626
# bashrc should not symlink to bash_profile
#
if  [  -h  "${TRACK_ROOT}/etc/skel/.bashrc"  ];  then
  rm  -f  "${TRACK_ROOT}/etc/skel/.bashrc"
fi  &&

if  install_config_file  "${SCRIPT_DIRECTORY}/skel/bashrc"    \
                         "${INSTALL_ROOT}/etc/skel/.bashrc";  then
  chmod  0755  "${INSTALL_ROOT}/etc/skel/.bashrc"
fi  &&

if  install_config_file  "${SCRIPT_DIRECTORY}/skel/bash_logout"    \
                         "${INSTALL_ROOT}/etc/skel/.bash_logout";  then
  chmod  0755  "${INSTALL_ROOT}/etc/skel/.bash_logout"
fi

#
# End Bug #9473
#
