2009-10-05 Chris Toshok <toshok@ximian.com>
[moon.git] / perf / svn-dispatcher
blob72ade2f564fafed50e0d8c5b71386729d261edee
1 #!/bin/sh
3 revision_number=`svn info | grep "Last Changed Rev:" | awk '{print $4}'`
4 author=`svn info | grep "Last Changed Author:" | awk '{print $4}'`
5 changelog=`svn -v log -l1`
7 if [ -z "$revision_number" ]; then
8 echo "Failed to fetch revision number from SVN!"
9 exit 128
12 if [ -z "$author" ]; then
13 echo "Failed to fetch author from SVN!"
14 exit 128
17 if [ -z "$changelog" ]; then
18 echo "Failed to fetch changelog from SVN!"
19 exit 128
22 echo "Note: using database stored in your home directory... ~/moonlight-perf.db"
23 PERF_SHORT_NAME="$revision_number" PERF_AUTHOR="$author" PERF_CHANGE_LOG="$changelog" PERF_DATABASE_FILE="$HOME/moonlight-perf.db" make run-perf