Skip to content
Permalink
Browse files

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.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14469 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmpalacios committed Oct 8, 2005
1 parent a65d1bb commit a79e85c0117af3d253fa0805d9af668cb6bb297d
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/portmgr/IndexRegen.sh
@@ -15,6 +15,7 @@ DPORTS=${PREFIX}/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dport
SU_OUT=/tmp/dpselfupdate.out
I_OUT=/tmp/portindex.out
FAILURES=/tmp/dp_index_failures.out
LOG=/tmp/regen.out
DATE=$(date +'%A %Y-%m-%d at %H:%M:%S')
MAILTO=portmgr@opendarwin.org
RSYNC=/Volumes/bigsrc/darwinports/portindex/
@@ -25,14 +26,16 @@ cd ${DPORTS}
port -d sync > ${SU_OUT} 2>&1
if [ $? == 0 ]; then {
rm -f PortIndex && portindex | tee ${I_OUT} | grep -A2 Failed > ${FAILURES}
{ cat ${FAILURES}; tail -n 5 ${I_OUT}; } | mail -s "Indexing Run on ${DATE}" ${MAILTO}
{ cat ${FAILURES}; tail -n 5 ${I_OUT}; } > ${LOG}
cp -f PortIndex ${RSYNC}
cvs ci -F ${LOG} PortIndex
cat ${LOG} | mail -s "Indexing Run on ${DATE}" ${MAILTO}
}
else
cat ${SU_OUT} | mail -s "Indexing Failure on ${DATE}" ${MAILTO}
fi

rm -f ${SU_OUT} ${IO_UT} ${FAILURES}
rm -f ${SU_OUT} ${IO_UT} ${FAILURES} ${LOG}

exit 0

0 comments on commit a79e85c

Please sign in to comment.
You can’t perform that action at this time.