summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/dolphin-emu/dolphin-emu.install
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2012-06-10 09:20:22 (GMT)
committerCecil <knoppmyth@gmail.com>2012-06-10 09:20:22 (GMT)
commit2a94d52b081284e7f8165948fae50b3efabcd625 (patch)
treeffde052c683f889fc73b1865c0ce1d4c3722927e /abs/extra/community/dolphin-emu/dolphin-emu.install
parent5011a58602b07baa129e2df183f7e0bb8996f092 (diff)
downloadlinhes_pkgbuild-2a94d52b081284e7f8165948fae50b3efabcd625.zip
linhes_pkgbuild-2a94d52b081284e7f8165948fae50b3efabcd625.tar.gz
linhes_pkgbuild-2a94d52b081284e7f8165948fae50b3efabcd625.tar.bz2
dolphin-emu:Added menu entry for Dolphin. Added script that parse directory to create menu entry for games.
Diffstat (limited to 'abs/extra/community/dolphin-emu/dolphin-emu.install')
-rw-r--r--abs/extra/community/dolphin-emu/dolphin-emu.install36
1 files changed, 36 insertions, 0 deletions
diff --git a/abs/extra/community/dolphin-emu/dolphin-emu.install b/abs/extra/community/dolphin-emu/dolphin-emu.install
new file mode 100644
index 0000000..6acdd50
--- /dev/null
+++ b/abs/extra/community/dolphin-emu/dolphin-emu.install
@@ -0,0 +1,36 @@
+post_install() {
+ mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp
+ grep -v -e /mythmenu /tmp/game.xml > /tmp/game.xml.tmp
+ echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
+ echo " <button>" >> /tmp/game.xml.tmp
+ echo " <type>MENU_GAME</type>" >> /tmp/game.xml.tmp
+ echo " <text>Dolphin Emulator</text>" >> /tmp/game.xml.tmp
+ echo " <action>MENU dolphin-emu.xml</action>" >> /tmp/game.xml.tmp
+ echo " </button>" >> /tmp/game.xml.tmp
+ echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
+ echo "" >> /tmp/game.xml.tmp
+ echo "</mythmenu>" >> /tmp/game.xml.tmp
+ mv /tmp/game.xml.tmp /usr/share/mythtv/themes/defaultmenu/game.xml
+}
+
+post_upgrade() {
+ mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp/game.xml.tmp
+ sed -e '/\#Dolphin-Emu/,/\#Dolphin-Emu/d' < /tmp/game.xml.tmp > /usr/share/mythtv/themes/defaultmenu/game.xml
+ mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp
+ grep -v -e /mythmenu /tmp/game.xml > /tmp/game.xml.tmp
+ echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
+ echo " <button>" >> /tmp/game.xml.tmp
+ echo " <type>MENU_GAME</type>" >> /tmp/game.xml.tmp
+ echo " <text>Dolphin Emulator</text>" >> /tmp/game.xml.tmp
+ echo " <action>MENU dolphin-emu.xml</action>" >> /tmp/game.xml.tmp
+ echo " </button>" >> /tmp/game.xml.tmp
+ echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
+ echo "" >> /tmp/game.xml.tmp
+ echo "</mythmenu>" >> /tmp/game.xml.tmp
+ mv /tmp/game.xml.tmp /usr/share/mythtv/themes/defaultmenu/game.xml
+}
+
+post_remove() {
+ mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp/game.xml.tmp
+ sed -e '/\#Dolphin-Emu/,/\#Dolphin-Emu/d' < /tmp/game.xml.tmp > /usr/share/mythtv/themes/defaultmenu/game.xml
+}