Changeset 14469


Ignore:
Timestamp:
Oct 8, 2005, 4:53:27 AM (15 years ago)
Author:
jmpp
Message:

Submitted by: jmpp@

Proposed, partial, additions to get the script also checking the fresh index into CVS
for those who prefer that mean over rsync. A proper environment to perform a successfull
"cvs ci" on the new file is still lacking, however.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/portmgr/IndexRegen.sh

    r14468 r14469  
    1616I_OUT=/tmp/portindex.out
    1717FAILURES=/tmp/dp_index_failures.out
     18LOG=/tmp/regen.out
    1819DATE=$(date +'%A %Y-%m-%d at %H:%M:%S')
    1920MAILTO=portmgr@opendarwin.org
     
    2627if [ $? == 0 ]; then {
    2728    rm -f PortIndex && portindex | tee ${I_OUT} | grep -A2 Failed > ${FAILURES}
    28     { cat ${FAILURES}; tail -n 5 ${I_OUT}; } | mail -s "Indexing Run on ${DATE}" ${MAILTO}
     29    { cat ${FAILURES}; tail -n 5 ${I_OUT}; } > ${LOG}
    2930    cp -f PortIndex ${RSYNC}
     31    cvs ci -F ${LOG} PortIndex
     32    cat ${LOG} | mail -s "Indexing Run on ${DATE}" ${MAILTO}
    3033}
    3134else
     
    3336fi
    3437
    35 rm -f ${SU_OUT} ${IO_UT} ${FAILURES}
     38rm -f ${SU_OUT} ${IO_UT} ${FAILURES} ${LOG}
    3639
    3740exit 0
Note: See TracChangeset for help on using the changeset viewer.