summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-18 09:22:19 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-18 09:22:19 (GMT)
commit9e66bf52c05515e088d091840fbf3cb39542f480 (patch)
tree0688ce6ffd4525390776ec55be41d07b37d02b15 /abs
parentd43ec60bc83b73c75bdd09726d93ddf44018b096 (diff)
downloadlinhes_pkgbuild-9e66bf52c05515e088d091840fbf3cb39542f480.zip
linhes_pkgbuild-9e66bf52c05515e088d091840fbf3cb39542f480.tar.gz
linhes_pkgbuild-9e66bf52c05515e088d091840fbf3cb39542f480.tar.bz2
linhes-scripts:No need to updated the menu on a mythtv upgrade.
Diffstat (limited to 'abs')
-rw-r--r--abs/core-testing/linhes-scripts/PKGBUILD2
-rw-r--r--abs/core-testing/linhes-scripts/linhes_update2.sh9
2 files changed, 8 insertions, 3 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD
index f17a1a4..60291cf 100644
--- a/abs/core-testing/linhes-scripts/PKGBUILD
+++ b/abs/core-testing/linhes-scripts/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=linhes-scripts
pkgver=1
-pkgrel=31
+pkgrel=32
pkgdesc="Various scripts that help to make LinHES, LinHES."
arch=('i686' 'x86_64')
license=('GPL2')
diff --git a/abs/core-testing/linhes-scripts/linhes_update2.sh b/abs/core-testing/linhes-scripts/linhes_update2.sh
index 6041c54..c002e07 100644
--- a/abs/core-testing/linhes-scripts/linhes_update2.sh
+++ b/abs/core-testing/linhes-scripts/linhes_update2.sh
@@ -1,14 +1,18 @@
#!/bin/bash
echo -e "Performing updates." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 300000 -A centre &
sudo pacman -Syuf --noconfirm && sudo killall -9 osd_cat
+if grep -q Check\ for\ updates /usr/share/mythtv/linhes.xml
+then
+exit
+else
mv /usr/share/mythtv/linhes.xml /tmp/linhes.xml.tmp
sed -e '/\#UpdatesAv/,/\#UpdatesAv/d' < /tmp/linhes.xml.tmp > /usr/share/mythtv/linhes.xml
mv /usr/share/mythtv/linhes.xml /tmp
grep -v -e /mythmenu /tmp/linhes.xml > /tmp/linhes.xml.tmp
echo "<!--#Check for updates-->" >> /tmp/linhes.xml.tmp
echo " <button>" >> /tmp/linhes.xml.tmp
-echo " <type>UPDATES</type>" >> /tmp/linhes.xml.tmp
-echo " <text>Update LinHES</text>" >> /tmp/linhes.xml.tmp
+echo " <type>UPGRADE</type>" >> /tmp/linhes.xml.tmp
+echo " <text>Upgrade LinHES</text>" >> /tmp/linhes.xml.tmp
echo " <action>MENU update.xml</action>" >> /tmp/linhes.xml.tmp
echo " </button>" >> /tmp/linhes.xml.tmp
echo "<!--#Check for updates-->" >> /tmp/linhes.xml.tmp
@@ -17,3 +21,4 @@ echo "</mythmenu>" >> /tmp/linhes.xml.tmp
mv /tmp/linhes.xml.tmp /usr/share/mythtv/linhes.xml
rm -fr /tmp/to_be_upgraded
echo -e "Update complete." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre
+fi