diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-03-16 12:58:08 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-03-16 12:58:08 (GMT) |
commit | de3a21c0408251a1eea6f22bb5fbf2930e9c9d4e (patch) | |
tree | 15606aaf2b8a8e6ea4bbdd8b02e3ff415f9ec042 /abs/core/mythtv/stable-0.28/git_src/checkout_mythweb.sh | |
parent | fdf037dbc9eb74a71eec0ed5f7f30cb9b11434f1 (diff) | |
download | linhes_pkgbuild-de3a21c0408251a1eea6f22bb5fbf2930e9c9d4e.zip linhes_pkgbuild-de3a21c0408251a1eea6f22bb5fbf2930e9c9d4e.tar.gz linhes_pkgbuild-de3a21c0408251a1eea6f22bb5fbf2930e9c9d4e.tar.bz2 |
mythtv: initial commit for 0.28
Diffstat (limited to 'abs/core/mythtv/stable-0.28/git_src/checkout_mythweb.sh')
-rwxr-xr-x | abs/core/mythtv/stable-0.28/git_src/checkout_mythweb.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.28/git_src/checkout_mythweb.sh b/abs/core/mythtv/stable-0.28/git_src/checkout_mythweb.sh new file mode 100755 index 0000000..94b872e --- /dev/null +++ b/abs/core/mythtv/stable-0.28/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/0.28" + +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" |