From bd68dfef60c156531e19e4406f0e7e31c89ff41d Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 23 Aug 2012 12:22:19 -0500
Subject: mythtv .25:  modified .intall file to call gen_lib_xml.py   instead
 of calling sed for xbmc

---
 abs/core/mythtv/stable-0.25/mythtv/mythtv.install | 26 ++++++-----------------
 1 file changed, 6 insertions(+), 20 deletions(-)

diff --git a/abs/core/mythtv/stable-0.25/mythtv/mythtv.install b/abs/core/mythtv/stable-0.25/mythtv/mythtv.install
index 58b669f..3b44668 100644
--- a/abs/core/mythtv/stable-0.25/mythtv/mythtv.install
+++ b/abs/core/mythtv/stable-0.25/mythtv/mythtv.install
@@ -1,36 +1,22 @@
 # arg 1:  the new package version
 post_install() {
-	gen_is_xml.py
+        gen_is_xml.py
+        gen_lib_xml.py
 }
 
 pre_upgrade() {
-	/bin/true
+        /bin/true
 }
 
 post_upgrade() {
-	gen_is_xml.py
-	pacxmbc=`pacman -Q xbmc`
-    if [ -z "$pacxbmc" ]
-	then
-		mv /usr/share/mythtv/themes/defaultmenu/library.xml /tmp
-		grep -v -e /mythmenu /tmp/library.xml > /tmp/library.xml.tmp
-		echo "<!--#XBMC-->" >> /tmp/library.xml.tmp
-		echo "   <button>" >> /tmp/library.xml.tmp
-		echo "     <type>MENU_XBMC</type>" >> /tmp/library.xml.tmp
-		echo "     <text>Launch XBMC</text>" >> /tmp/library.xml.tmp
-		echo "     <action>EXEC /usr/bin/xbmc</action>" >> /tmp/library.xml.tmp 
-		echo "   </button>" >> /tmp/library.xml.tmp
-		echo "<!--#XBMC-->" >> /tmp/library.xml.tmp
-		echo "" >> /tmp/library.xml.tmp
-		echo "</mythmenu>" >> /tmp/library.xml.tmp
-		mv /tmp/library.xml.tmp /usr/share/mythtv/themes/defaultmenu/library.xml
-	fi
+        gen_is_xml.py
+        gen_lib_xml.py
 }
 
 
 # arg 1:  the old package version
 post_remove() {
-	/bin/true
+        /bin/true
 
 }
 
-- 
cgit v0.12

