#!/bin/ksh
echo "Adding compilation reports from `pwd` to log files."
if [ -f r2h.out ]
then
	echo "Adding <r2h.out> at the end of <${LOGS}r2h.log> file."
        echo "" >>${LOGS}r2h.log
        echo "" >>${LOGS}r2h.log
        echo "" >>${LOGS}r2h.log
        echo "" >>${LOGS}r2h.log
        echo "" >>${LOGS}r2h.log
	echo "R2H.OUT report from `pwd` directory" >>${LOGS}r2h.log
	echo "Date: `date`" >>${LOGS}r2h.log
        echo "" >>${LOGS}r2h.log
	cat r2h.out >>${LOGS}r2h.log
fi

if [ -f e2p.out ]
then
        echo "Adding <e2p.out> at the end of <${LOGS}e2p.log> file."
        echo "" >>${LOGS}e2p.log
        echo "" >>${LOGS}e2p.log
        echo "" >>${LOGS}e2p.log
        echo "" >>${LOGS}e2p.log
        echo "" >>${LOGS}e2p.log
        echo "E2P.OUT report from `pwd` directory" >>${LOGS}e2p.log
        echo "Date: `date`" >>${LOGS}e2p.log
        echo "" >>${LOGS}e2p.log
	cat e2p.out >>${LOGS}e2p.log
fi

if [ -f s2p.out ]
then
        echo "Adding <s2p.out> at the end of <${LOGS}s2p.log> file."
        echo "" >>${LOGS}s2p.log
        echo "" >>${LOGS}s2p.log
        echo "" >>${LOGS}s2p.log
        echo "" >>${LOGS}s2p.log
        echo "" >>${LOGS}s2p.log
        echo "S2P.OUT report from `pwd` directory" >>${LOGS}s2p.log
        echo "Date: `date`" >>${LOGS}s2p.log
        echo "" >>${LOGS}s2p.log
	cat s2p.out >>${LOGS}s2p.out
fi

if [ -f wwwalias.out ]
then
        echo "Adding <wwwalias.out> at the end of <${LOGS}alias.log> file."
        echo "" >>${LOGS}alias.log
        echo "" >>${LOGS}alias.log
        echo "" >>${LOGS}alias.log
        echo "" >>${LOGS}alias.log
        echo "" >>${LOGS}alias.log
        echo "WWWALIAS.OUT report from `pwd` directory" >>${LOGS}alias.log
        echo "Date: `date`" >>${LOGS}alias.log
        echo "" >>${LOGS}alias.log
        cat alias.out >>${LOGS}alias.out
fi


