diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-09-17 23:34:24 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-09-17 23:34:24 (GMT) |
commit | d4367e3fc20521235cdfc5e5eb03e7988840e32f (patch) | |
tree | 5ca35b498d8303b59b30292e349cb4435e039603 /abs/core/mythtv/stable-29/git_src/checkout_mythweb.sh | |
parent | 4739d37f1b813536b0f8d665a03f6f22a902f3e2 (diff) | |
download | linhes_pkgbuild-d4367e3fc20521235cdfc5e5eb03e7988840e32f.zip linhes_pkgbuild-d4367e3fc20521235cdfc5e5eb03e7988840e32f.tar.gz linhes_pkgbuild-d4367e3fc20521235cdfc5e5eb03e7988840e32f.tar.bz2 |
mythtv: add 29-fixes
Diffstat (limited to 'abs/core/mythtv/stable-29/git_src/checkout_mythweb.sh')
-rwxr-xr-x | abs/core/mythtv/stable-29/git_src/checkout_mythweb.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-29/git_src/checkout_mythweb.sh b/abs/core/mythtv/stable-29/git_src/checkout_mythweb.sh new file mode 100755 index 0000000..1e8f5bf --- /dev/null +++ b/abs/core/mythtv/stable-29/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 + +_gitroot="https://github.com/MythTV/mythweb.git" +_gitname="mythweb" +_gitbranch="fixes/29" + +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 $_gitbranch + git pull + echo "The local files are updated." + cd $startdir +else + git clone -b $_gitbranch $_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 +fi +echo "GIT checkout done or server timeout" |