Author: Konstantin Dmitriev <ksee.zelga...@gmail.com>
Date:   Mon Feb 21 13:00:52 2011 +0600

Autobuild script: Detect revision the same way, as other scripts do in 
build_tools dir.

---

 autobuild/synfigstudio-linux-build.sh |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/autobuild/synfigstudio-linux-build.sh 
b/autobuild/synfigstudio-linux-build.sh
index 86f9b7b..5906b36 100644
--- a/autobuild/synfigstudio-linux-build.sh
+++ b/autobuild/synfigstudio-linux-build.sh
@@ -674,8 +674,7 @@ initialize()
                        VERSION=${VERSION%%-*}
                fi
                [[ $DEBUG == 1 ]] && BREED=${BREED}_debug
-               REVISION=`git show --pretty=medium $SELECTEDREVISION | head -n 
3 |tail -n 1 | sed 's/Date: *//' | sed 's/ +.*//'`
-               REVISION=`date --date="${REVISION}" +%Y%m%d`
+               REVISION=`git show --pretty=format:%ci HEAD |  head -c 10 | tr 
-d '-'`
                echo
                echo
                echo "BUILDING synfigstudio-$VERSION-$REVISION.$BREED.$RELEASE"


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to