diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
commit | b172f79fadb565ecfbcec9508f9377d8618a4f4c (patch) | |
tree | bf8823b07e3313c3afa000a9b31e4f9a735cb818 /abs/extra/mythappletrailers/mythappletrailers.install | |
parent | f9d54ab7c3853208484e304bc6cf40ab0f79d400 (diff) | |
parent | 5e7027c6194237ca1dc5fcbb3648483a970fb500 (diff) | |
download | linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.zip linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.gz linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/extra/mythappletrailers/mythappletrailers.install')
-rw-r--r-- | abs/extra/mythappletrailers/mythappletrailers.install | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/abs/extra/mythappletrailers/mythappletrailers.install b/abs/extra/mythappletrailers/mythappletrailers.install index 0f6d8fa..96f6717 100644 --- a/abs/extra/mythappletrailers/mythappletrailers.install +++ b/abs/extra/mythappletrailers/mythappletrailers.install @@ -1,7 +1,7 @@ # arg 1: the new package version post_install() { - ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/appletrailer.xml - mv /usr/share/mythtv/is.xml /tmp + ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp echo "<!--#MythAppleTrailers-->" >> /tmp/is.xml.tmp echo " <button>" >> /tmp/is.xml.tmp @@ -12,24 +12,24 @@ post_install() { echo "<!--#MythAppleTrailers-->" >> /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 + 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() { - if [ -e /usr/share/mythtv/appletrailer.xml ] + if [ -e /usr/share/mythtv/themes/defaultmenu/appletrailer.xml ] then exit else - ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/appletrailer.xml + ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml fi } # arg 1: the old package version post_remove() { - rm -fr /usr/share/mythtv/appletrailer.xml - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#MythAp/,/\#MythAp/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml + rm -fr /usr/share/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaulmenu/mythappletrailer.xml + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp + sed -e '/\#MythAp/,/\#MythAp/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml } op=$1 |