Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 89844 invoked by uid 500); 28 Jan 2003 12:03:07 -0000 Mailing-List: contact forrest-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-cvs@xml.apache.org Received: (qmail 89833 invoked from network); 28 Jan 2003 12:03:07 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 28 Jan 2003 12:03:07 -0000 Received: (qmail 18740 invoked by uid 1352); 28 Jan 2003 12:03:07 -0000 Date: 28 Jan 2003 12:03:07 -0000 Message-ID: <20030128120307.18739.qmail@icarus.apache.org> From: jefft@apache.org To: xml-forrest-cvs@apache.org Subject: cvs commit: xml-forrest/src/resources/forrestbot/scripts publish_livesite X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jefft 2003/01/28 04:03:07 Modified: src/resources/forrestbot/scripts publish_livesite Log: optimize checkins of large dirs Revision Changes Path 1.4 +6 -2 xml-forrest/src/resources/forrestbot/scripts/publish_livesite Index: publish_livesite =================================================================== RCS file: /home/cvs/xml-forrest/src/resources/forrestbot/scripts/publish_livesite,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- publish_livesite 28 Jan 2003 11:21:02 -0000 1.3 +++ publish_livesite 28 Jan 2003 12:03:07 -0000 1.4 @@ -44,15 +44,19 @@ addfiles `find $i -type f` continue fi + local TXTFILES + local BINFILES MIME=`file -bi $i` echo "New file $i has MIME type $MIME" if [ `echo "$MIME" | grep -q 'text'` ]; then echo "Adding $i as text" - cvsdo add $i + TXTFILES="$TXTFILES $i" else echo "Adding $i as binary" - cvs add -kb $i + BINFILES="$BINFILES $i" fi + echo cvsdo add $TXTFILES + echo cvs add -kb $BINFILES done } NEW_FILES=`cvs up | grep '^\?' | cut -d\ -f 2`