# arg 1: the new package version
post_install() {
grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp
sed -e '/\#WebOn/,/\#WebOn/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml
grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml
}
# arg 1: the old package version
post_remove() {
mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp
sed -e '/\#WebOn/,/\#WebOn/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml
}
op=$1
shift
$op $*