diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-03-15 22:23:32 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-03-15 22:23:32 (GMT) |
commit | bec97d89de5f8cb9293263543f1aaf6780b525c2 (patch) | |
tree | 4f42a3f980b062f356ea960c234856423c402f44 /abs/extra-testing/miro/miro.install | |
parent | 57fcd7a307d18f3a377b92d46eb81adc0221d796 (diff) | |
download | linhes_pkgbuild-bec97d89de5f8cb9293263543f1aaf6780b525c2.zip linhes_pkgbuild-bec97d89de5f8cb9293263543f1aaf6780b525c2.tar.gz linhes_pkgbuild-bec97d89de5f8cb9293263543f1aaf6780b525c2.tar.bz2 |
Updated Miro.
Diffstat (limited to 'abs/extra-testing/miro/miro.install')
-rw-r--r-- | abs/extra-testing/miro/miro.install | 46 |
1 files changed, 8 insertions, 38 deletions
diff --git a/abs/extra-testing/miro/miro.install b/abs/extra-testing/miro/miro.install index 4ee823b..380c860 100644 --- a/abs/extra-testing/miro/miro.install +++ b/abs/extra-testing/miro/miro.install @@ -1,43 +1,13 @@ -# arg 1: the new package version post_install() { - 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 - if [ -d /myth/democracy ] - then - ln -s /myth/democracy /home/mythtv/.miro - ln -s /myth/miro/Movies /myth/video/Miro - exit 1 - else - if [ -d /myth/miro ] - then - ln -s /myth/miro /home/mythtv/.miro - ln -s /myth/miro/Movies /myth/video/Miro - exit 1 - else - if [ ! -d /myth/miro -o /myth/democracy ] - then - mkdir -p /myth/miro/Movies - ln -s /myth/miro /home/mythtv/.miro - ln -s /myth/miro/Movies /home/mythtv/Movies - ln -s /myth/miro/Movies /myth/video/Miro - fi - fi - fi + update-desktop-database -q } + +post_upgrade() { + post_install $1 +} + post_remove() { - rm -fr /home/mythtv/.miro /myth/video/Miro /myth/miro /myth/democracy + update-desktop-database -q } -op=$1 -shift -$op $* + |