#!/bin/SH# This was a script that help you get your team member's Productivity# By analyzing his/her code commitinginchSVN Repository, forThe day before# # can get a rough num forComparing between team members by using itinchThe below#./svn_ana.SHSvn_account_name |WC-l#uname=Walkerpassword=123if[$#-lt1 ] Then EchoUsage: $0 AccountEcho-E"Where account is the SVN acconut name want to analyze"Exit-1fiUser=$1Today=`Date+%y-%m-%d ' Yesterday=`Date-V-1D +%y-%m-%d ' Revisions=$ (svn log-r{$today}:{$yesterday}--username $uname--password $password |grep$user'\ '|awk '{print $}')Echo "$revision"Lastrev=Init forRawrevinch$revisions Do Echo "$rawrev"Rev=$(Echo$rawrev |TR-d r) Rev2=`Expr$rev-1` if["$lastrev"="Init"]; ThenLastrev=$revfiDummy=$(Echo$revisions |grep$rev 2)if[$?-eq0 ] ThenContinuefiSVNdiff-r$rev2: $lastrev--username $uname--password $password--diff-cmddiff-x-d |grep-V =======================|grep-V'\---'Lastrev=Init Done
To view a script for a developer Code modification (available on the iOS platform)