diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-21 23:16:29 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-21 23:16:29 (GMT) |
commit | 292eb99b4d0d02630447009843f58f7f6e008070 (patch) | |
tree | 0e527514b66b3111adb6a5b49240e52fbc80bff7 /abs/extra/miro/miro.install | |
parent | dd8f22f6bef0f6654437b19ce88fb218c61f8947 (diff) | |
download | linhes_pkgbuild-292eb99b4d0d02630447009843f58f7f6e008070.zip linhes_pkgbuild-292eb99b4d0d02630447009843f58f7f6e008070.tar.gz linhes_pkgbuild-292eb99b4d0d02630447009843f58f7f6e008070.tar.bz2 |
miro: converted miro to use gen_is_xml.py
Diffstat (limited to 'abs/extra/miro/miro.install')
-rw-r--r-- | abs/extra/miro/miro.install | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/abs/extra/miro/miro.install b/abs/extra/miro/miro.install index 02b2c06..4411be4 100644 --- a/abs/extra/miro/miro.install +++ b/abs/extra/miro/miro.install @@ -1,20 +1,7 @@ # arg 1: the new package version post_install() { update-desktop-database -q - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml - mv /usr/share/mythtv/is.xml /tmp - grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp - echo "<!--#Miro-->" >> /tmp/is.xml.tmp - echo " <button>" >> /tmp/is.xml.tmp - echo " <type>STREAM</type>" >> /tmp/is.xml.tmp - echo " <text>Miro Player</text>" >> /tmp/is.xml.tmp - echo " <action>EXEC /usr/bin/miro</action>" >> /tmp/is.xml.tmp - echo " </button>" >> /tmp/is.xml.tmp - echo "<!--#Miro-->" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "</mythmenu>" >> /tmp/is.xml.tmp - mv /tmp/is.xml.tmp /usr/share/mythtv/is.xml + /usr/LH/bin/gen_is_xml.py if [ -d /myth/democracy ] then ln -s /myth/democracy /home/mythtv/.miro @@ -39,30 +26,14 @@ post_install() { chown -R mythtv.mythtv /myth/miro } -post_update() { - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml - mv /usr/share/mythtv/is.xml /tmp - grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp - echo "<!--#Miro-->" >> /tmp/is.xml.tmp - echo " <button>" >> /tmp/is.xml.tmp - echo " <type>STREAM</type>" >> /tmp/is.xml.tmp - echo " <text>Miro Player</text>" >> /tmp/is.xml.tmp - echo " <action>EXEC /usr/bin/miro</action>" >> /tmp/is.xml.tmp - echo " </button>" >> /tmp/is.xml.tmp - echo "<!--#Miro-->" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "</mythmenu>" >> /tmp/is.xml.tmp - mv /tmp/is.xml.tmp /usr/share/mythtv/is.xml +post_upgrade() { + /usr/LH/bin/gen_is_xml.py } post_remove() { - update-desktop-database -q - rm -fr /home/mythtv/.miro /myth/video/Miro /myth/miro /myth/democracy - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml + update-desktop-database -q + rm -fr /home/mythtv/.miro /myth/video/Miro /myth/miro /myth/democracy + /usr/LH/bin/gen_is_xml.py } op=$1 |