diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-24 00:51:21 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-24 00:51:21 (GMT) |
commit | 03016189a278df360e6830976c72f96d6d08056f (patch) | |
tree | 5d4228377b1aea7c5af31e88b575582a8af7c5be /abs/extra-testing/miro/miro.install | |
parent | 33c0f818a9694819fd08ae9d32263e915338a13d (diff) | |
download | linhes_pkgbuild-03016189a278df360e6830976c72f96d6d08056f.zip linhes_pkgbuild-03016189a278df360e6830976c72f96d6d08056f.tar.gz linhes_pkgbuild-03016189a278df360e6830976c72f96d6d08056f.tar.bz2 |
.install will now add/remove Miro from appropriate menu on install/removal.
Diffstat (limited to 'abs/extra-testing/miro/miro.install')
-rw-r--r-- | abs/extra-testing/miro/miro.install | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/abs/extra-testing/miro/miro.install b/abs/extra-testing/miro/miro.install index f37f11d..1f1121f 100644 --- a/abs/extra-testing/miro/miro.install +++ b/abs/extra-testing/miro/miro.install @@ -1,17 +1,23 @@ +# arg 1: the new package version post_install() { - update-desktop-database -q + 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() { - post_install $1 -} - post_remove() { - 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 } op=$1 shift - $op $* - |