summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh24
-rw-r--r--abs/core/mythtv/stable-0.25/git_src/git_hash1
2 files changed, 23 insertions, 2 deletions
diff --git a/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh b/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh
index 7691a29..8a5b6c5 100644
--- a/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh
+++ b/abs/core/mythtv/stable-0.25/git_src/checkout_mythtv.sh
@@ -1,18 +1,38 @@
#!/bin/bash
#Quick script used to checkout the MythTV source
#This source should be used build all mythplugins & main program
-
+#76df8e6c8f7b84a157607d8c25fd19f39d8dc830
_gitroot="https://github.com/MythTV/mythtv.git"
_gitname="mythtv"
+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 pull
+ cd $_gitname
+ git checkout master
+ git pull
+
+
echo "The local files are updated."
else
git clone -b fixes/0.25 $_gitroot
fi
+
+if [ -d $_gitname ]
+then
+ cd $_gitname
+ if [ $_current == True ]
+ then
+ git rev-parse HEAD > $startdir/git_hash
+ else
+ git checkout $_checkoutHASH
+ fi
+fi
echo "GIT checkout done or server timeout"
diff --git a/abs/core/mythtv/stable-0.25/git_src/git_hash b/abs/core/mythtv/stable-0.25/git_src/git_hash
new file mode 100644
index 0000000..b30db1a
--- /dev/null
+++ b/abs/core/mythtv/stable-0.25/git_src/git_hash
@@ -0,0 +1 @@
+f4d7bffcc71904d84b06046213ba453fa2aa2865