#!/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"