diff options
author | Cecil <knoppmyth@gmail.com> | 2012-04-26 21:37:21 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2012-04-26 21:37:21 (GMT) |
commit | c7112b961322bf9c20282e3bbfb95b2ccf3fa97f (patch) | |
tree | da4450d043b175a7aebb3a93c858b294995b765e /abs/core/mythtv/stable-0.25/git_src/checkout_mythweb.sh | |
parent | f2394fa3f2984a3a4e74a19b2596f279ec3517ba (diff) | |
parent | c8fc2fc2156fdeb0e9a54e7be48c8f02fdff848e (diff) | |
download | linhes_pkgbuild-c7112b961322bf9c20282e3bbfb95b2ccf3fa97f.zip linhes_pkgbuild-c7112b961322bf9c20282e3bbfb95b2ccf3fa97f.tar.gz linhes_pkgbuild-c7112b961322bf9c20282e3bbfb95b2ccf3fa97f.tar.bz2 |
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/mythtv/stable-0.25/git_src/checkout_mythweb.sh')
-rw-r--r-- | abs/core/mythtv/stable-0.25/git_src/checkout_mythweb.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.25/git_src/checkout_mythweb.sh b/abs/core/mythtv/stable-0.25/git_src/checkout_mythweb.sh new file mode 100644 index 0000000..6e8e67e --- /dev/null +++ b/abs/core/mythtv/stable-0.25/git_src/checkout_mythweb.sh @@ -0,0 +1,38 @@ +#!/bin/bash +#Quick script used to checkout the Mythweb source +#This source should be used build all mythplugins & main program +#76df8e6c8f7b84a157607d8c25fd19f39d8dc830 +_gitroot="https://github.com/MythTV/mythweb.git" +_gitname="mythweb" +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_web` + +if [ -d $_gitname ] +then + cd $_gitname + git checkout fixes/0.25 + 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_web + else + git checkout $_checkoutHASH + fi + pwd + ls +fi +echo "GIT checkout done or server timeout" + + |