diff options
Diffstat (limited to 'abs/core/mythtv/stable-30/git_src')
-rwxr-xr-x | abs/core/mythtv/stable-30/git_src/checkout_mythtv.sh | 40 | ||||
-rwxr-xr-x | abs/core/mythtv/stable-30/git_src/checkout_mythweb.sh | 38 | ||||
-rw-r--r-- | abs/core/mythtv/stable-30/git_src/git_hash | 1 | ||||
-rw-r--r-- | abs/core/mythtv/stable-30/git_src/git_hash_web | 1 |
4 files changed, 80 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-30/git_src/checkout_mythtv.sh b/abs/core/mythtv/stable-30/git_src/checkout_mythtv.sh new file mode 100755 index 0000000..6ad4f0d --- /dev/null +++ b/abs/core/mythtv/stable-30/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/30" + +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." + 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 + else + git checkout $_checkoutHASH + fi + cd mythtv + sh ./version.sh `pwd` +fi +echo "GIT checkout done or server timeout" diff --git a/abs/core/mythtv/stable-30/git_src/checkout_mythweb.sh b/abs/core/mythtv/stable-30/git_src/checkout_mythweb.sh new file mode 100755 index 0000000..5ba77cb --- /dev/null +++ b/abs/core/mythtv/stable-30/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/30" + +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" diff --git a/abs/core/mythtv/stable-30/git_src/git_hash b/abs/core/mythtv/stable-30/git_src/git_hash new file mode 100644 index 0000000..883dfc8 --- /dev/null +++ b/abs/core/mythtv/stable-30/git_src/git_hash @@ -0,0 +1 @@ +f11c5aba6ed1e88c22f1b3b6828fc085e1699b97 diff --git a/abs/core/mythtv/stable-30/git_src/git_hash_web b/abs/core/mythtv/stable-30/git_src/git_hash_web new file mode 100644 index 0000000..b192069 --- /dev/null +++ b/abs/core/mythtv/stable-30/git_src/git_hash_web @@ -0,0 +1 @@ +8dc8a715aae7db7bbc3b857a337a4761af8341f7 |