forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrestbot/scripts publish_livesite
Date Tue, 28 Jan 2003 12:03:07 GMT
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`
  
  
  

Mime
View raw message