diff options
author | Britney Fransen <brfransen@gmail.com> | 2013-11-01 22:24:22 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2013-11-01 22:24:22 (GMT) |
commit | eac54d053f7fdbde04d6a821bc964e78f50d143a (patch) | |
tree | 3b3c7598bd919261047de21080be422e728da56b /abs/core/mythtv/stable-0.27/git_src/checkout_mythtv.sh | |
parent | 1ac8c7303657d8a15ab356f392c5fa23d7303441 (diff) | |
download | linhes_pkgbuild-eac54d053f7fdbde04d6a821bc964e78f50d143a.zip linhes_pkgbuild-eac54d053f7fdbde04d6a821bc964e78f50d143a.tar.gz linhes_pkgbuild-eac54d053f7fdbde04d6a821bc964e78f50d143a.tar.bz2 |
mythtv stable-0.27 git_src: initial commit. refs #933
Diffstat (limited to 'abs/core/mythtv/stable-0.27/git_src/checkout_mythtv.sh')
-rwxr-xr-x | abs/core/mythtv/stable-0.27/git_src/checkout_mythtv.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.27/git_src/checkout_mythtv.sh b/abs/core/mythtv/stable-0.27/git_src/checkout_mythtv.sh new file mode 100755 index 0000000..f0fc6bd --- /dev/null +++ b/abs/core/mythtv/stable-0.27/git_src/checkout_mythtv.sh @@ -0,0 +1,40 @@ +#!/bin/bash +#Quick script used to checkout the MythTV source +#This source should be used build all mythplugins & main program + +_gitroot="https://github.com/MythTV/mythtv.git" +_gitname="mythtv" +_gitbranch="fixes/0.27" + +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 checkout $_gitbranch + git pull + echo "The local files are updated." +else + git clone -b $_gitbranch $_gitroot +fi + +if [ -d $_gitname ] +then + cd $_gitname + if [ $_current == True ] + then + git rev-parse HEAD > $startdir/git_hash + else + git checkout $_checkoutHASH + fi + pwd + ls + sh ./version.sh `pwd` +fi +echo "GIT checkout done or server timeout" |