Module: synfig
Branch: master
Commit: 0a146b70060f29b894a369af20396d7f4246d107
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=0a146b70060f29b894a369af20396d7f4246d107

Author: Konstantin Dmitriev <ksee.zelga...@gmail.com>
Date:   Sun Jul 19 22:39:40 2009 +0700

Make synfigstudio-cph-monitor compatible with latest changes. Enable logging of 
git revision ID. Minor fixes.

---

 synfig-studio/trunk/synfigstudio-cph-monitor |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/synfig-studio/trunk/synfigstudio-cph-monitor 
b/synfig-studio/trunk/synfigstudio-cph-monitor
index 57ad242..76f77f4 100755
--- a/synfig-studio/trunk/synfigstudio-cph-monitor
+++ b/synfig-studio/trunk/synfigstudio-cph-monitor
@@ -17,7 +17,8 @@ trap writelog INT
 
 init()
 {
-echo "Synfig Crash Monitor is a tool to collect statistics about synfig 
crashes. All information is collected locally in ~/.synfig/cph directory."
+echo "Synfig Crash Monitor is a tool to collect statistics about synfig 
crashes."
+echo "All information is collected locally in ~/.synfig/cph directory."
 echo
 echo `date +%H:%M` "Synfig Crash Monitor started."
 STARTED=0
@@ -25,6 +26,7 @@ RUNTIME=0
 VERSION=''
 RELEASE=''
 BRANCH=''
+REVISION_ID=''
 CRASH=0
 [ ! -d ~/.synfig/cph ] && mkdir -p ~/.synfig/cph || true
 }
@@ -47,7 +49,7 @@ writelog()
                        fi
                fi
                #write log
-               echo $VERSION/$BRANCH/$RELEASE $RUNTIME $CRASH >> 
~/.synfig/cph/log
+               echo $VERSION/$BRANCH/$RELEASE/$REVISION_ID $RUNTIME $CRASH >> 
~/.synfig/cph/log
                CRASH=0
                RUNTIME=0
        else
@@ -109,12 +111,13 @@ mainloop()
                                fi
                                P=`dirname $P`
                                VERSION=`$P/synfig --info|head -n 1|cut -d '-' 
-f 2`
-                               RELEASE=`$P/synfig --info|egrep "Development 
version:"|cut -d ' ' -f 3`
+                               RELEASE=`$P/synfig --info|egrep "Revision:"|cut 
-d ' ' -f 2`
                                BRANCH=`$P/synfig --info|egrep "Branch:"|cut -d 
' ' -f 2-3`
+                               REVISION_ID=`$P/synfig --info|egrep "Revision 
ID:"|cut -d ' ' -f 3`
                                if [[ $BRANCH == '(no branch)' ]]; then
-                                       BRANCH=`$P/synfig --info|egrep 
"Revision ID:"|cut -d ' ' -f 3`
+                                       BRANCH=$REVISION_ID
                                fi
-                               echo `date +%H:%M` "Synfig 
$VERSION.$RELEASE.$BRANCH started."
+                               echo `date +%H:%M` "Synfig 
$VERSION.$RELEASE.$BRANCH.$REVISION_ID started."
                                echo `date +%H:%M` "Assuming Synfig installed 
in $P."
                        else
                                let RUNTIME=$RUNTIME+1


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to