# We need this directory in the path for the following utilities
# cut, dirname, tail, and uniq
export PATH="$SOURCE_DIRECTORY/src:$PATH"    && 

#horrible hack, some of my best work ;-)
./src/ginstall  src/ginstall                 \
                ${INSTALL_ROOT}/bin/install  &&
make    install  DESTDIR=$INSTALL_ROOT       &&

#some problems with everything in /bin
for i in \
    install env ptx sha1sum split sum tac tr tsort unexpand dirname expr factor cut \
    sort md5sum hostid id logname nice nohup pathchk pinky printenv printf seq tee \
    tty users who whoami yes ;
do ln -sfn "../../bin/$i" "${INSTALL_ROOT}/usr/bin/$i"
done  &&

mkdir  -p  ${INSTALL_ROOT}/etc/profile.d/          &&
install  -m  0644  $SCRIPT_DIRECTORY/coreutils.sh  \
           ${INSTALL_ROOT}/etc/profile.d/
