summaryrefslogtreecommitdiffstats
path: root/abs/extra/mythappletrailers/mythappletrailers.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-08-30 22:26:00 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-08-30 22:26:00 (GMT)
commit1f175a7b07b9553ce98d0546ac04dbb925ec0bc9 (patch)
treec969070115611a8a75f23d468aa5e0cf86a08121 /abs/extra/mythappletrailers/mythappletrailers.install
parentc4bd4457b5d640e1c8f5afbca7cd54c53691e5fc (diff)
downloadlinhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.zip
linhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.tar.gz
linhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.tar.bz2
RESYNC EXTRA:
synced extra-testing -> extra repo Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'abs/extra/mythappletrailers/mythappletrailers.install')
-rw-r--r--abs/extra/mythappletrailers/mythappletrailers.install16
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