From 3cc80e213251314ee93964ce232aee7e05757f55 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 21 Apr 2012 13:24:40 -0500 Subject: mythtv/git_src checkout. Add the ability to checkout the lastest mythtv, or stick with a known hash. --- .../mythtv/stable-0.25/git_src/checkout_mythtv.sh | 24 ++++++++++++++++++++-- abs/core/mythtv/stable-0.25/git_src/git_hash | 1 + 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 abs/core/mythtv/stable-0.25/git_src/git_hash diff --git a/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh b/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh index 7691a29..8a5b6c5 100644 --- a/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh +++ b/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh @@ -1,18 +1,38 @@ #!/bin/bash #Quick script used to checkout the MythTV source #This source should be used build all mythplugins & main program - +#76df8e6c8f7b84a157607d8c25fd19f39d8dc830 _gitroot="https://github.com/MythTV/mythtv.git" _gitname="mythtv" +startdir=`pwd` +#Set this to True, to update mythtv to the latest. +#If not true then it will use the hash stored in git_hash +_current="True" +_checkoutHASH=`cat git_hash` if [ -d $_gitname ] then - cd $_gitname && git pull + cd $_gitname + git checkout master + git pull + + echo "The local files are updated." else git clone -b fixes/0.25 $_gitroot fi + +if [ -d $_gitname ] +then + cd $_gitname + if [ $_current == True ] + then + git rev-parse HEAD > $startdir/git_hash + else + git checkout $_checkoutHASH + fi +fi echo "GIT checkout done or server timeout" diff --git a/abs/core/mythtv/stable-0.25/git_src/git_hash b/abs/core/mythtv/stable-0.25/git_src/git_hash new file mode 100644 index 0000000..b30db1a --- /dev/null +++ b/abs/core/mythtv/stable-0.25/git_src/git_hash @@ -0,0 +1 @@ +f4d7bffcc71904d84b06046213ba453fa2aa2865 -- cgit v0.12