summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-21 18:24:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-21 18:24:40 (GMT)
commit3cc80e213251314ee93964ce232aee7e05757f55 (patch)
treeb4a68a0987ec3e10d495119db5dec1c5c1d9dc92
parent294a757e2774990e7a788d6437089e730118b5d1 (diff)
downloadlinhes_pkgbuild-3cc80e213251314ee93964ce232aee7e05757f55.zip
linhes_pkgbuild-3cc80e213251314ee93964ce232aee7e05757f55.tar.gz
linhes_pkgbuild-3cc80e213251314ee93964ce232aee7e05757f55.tar.bz2
mythtv/git_src checkout. Add the ability to checkout the lastest mythtv, or stick with a known hash.
-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