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

Author: Konstantin Dmitriev <[email protected]>
Date:   Sun May  9 16:26:07 2010 +0700

Use short revision id for "synfig --info" and about dialog.

---

 synfig-core/build_tools/autorevision.sh   |    2 +-
 synfig-studio/build_tools/autorevision.sh |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/synfig-core/build_tools/autorevision.sh 
b/synfig-core/build_tools/autorevision.sh
index c8f4cf2..e47de2b 100644
--- a/synfig-core/build_tools/autorevision.sh
+++ b/synfig-core/build_tools/autorevision.sh
@@ -15,7 +15,7 @@
 
 get_git_id(){
        export SCM=git
-       export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 
2 -d ' '`
+       export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 
2 -d ' ' | cut -c -6`
        export BRANCH="`cd "$1"; git branch -a --no-color --contains HEAD | sed 
-e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' 
'//`"
        if ( echo $BRANCH | egrep origin/master > /dev/null ); then
                #give a priority to master branch
diff --git a/synfig-studio/build_tools/autorevision.sh 
b/synfig-studio/build_tools/autorevision.sh
index d8a5c8b..517732b 100644
--- a/synfig-studio/build_tools/autorevision.sh
+++ b/synfig-studio/build_tools/autorevision.sh
@@ -15,7 +15,7 @@
 
 get_git_id(){
        export SCM=git
-       export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 
2 -d ' '`
+       export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 
2 -d ' ' | cut -c -6`
        export BRANCH="`cd "$1"; git branch -a --no-color --contains HEAD | sed 
-e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' 
'//`"
        if ( echo $BRANCH | egrep origin/master > /dev/null ); then
                #give a priority to master branch


------------------------------------------------------------------------------

_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to