summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xcore/multimedia/opieplayer/modplug/opie-modplugin.postinst24
-rwxr-xr-xcore/multimedia/opieplayer/modplug/opie-modplugin.postrm26
2 files changed, 0 insertions, 50 deletions
diff --git a/core/multimedia/opieplayer/modplug/opie-modplugin.postinst b/core/multimedia/opieplayer/modplug/opie-modplugin.postinst
deleted file mode 100755
index c6ba49b..0000000
--- a/core/multimedia/opieplayer/modplug/opie-modplugin.postinst
+++ b/dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-OPIEDIR=/opt/QtPalmtop
-MIMEFILE=$OPIEDIR/etc/mime.types
-MEDIAPLAYER=$OPIEDIR/apps/Applications/opieplayer.desktop
-MIMETYPE="audio/x-mod"
-MIMELINE="$MIMETYPE 669 amf apun dsm far gdm imf it med mod mtm nst s3m stm stx ult uni xm"
-
-grep -q "$MIMELINE" $MIMEFILE
-if [ $? != 0 ]; then
- echo "appending mod/s3m/etc to $MIMEFILE"
-
- echo "$MIMELINE" >> $MIMEFILE
-fi
-
-grep -q "$MIMETYPE" $MEDIAPLAYER
-if [ $? != 0 ]; then
- echo "appending $MIMETYPE to $MEDIAPLAYER"
-
- tmpfile=/tmp/qpe-modplugin-$$.tmp
- cat $MEDIAPLAYER | sed -e "s,^MimeType=\(.*\)\$,MimeType=\\1;$MIMETYPE," > $tmpfile
- mv $tmpfile $MEDIAPLAYER
-fi
-
diff --git a/core/multimedia/opieplayer/modplug/opie-modplugin.postrm b/core/multimedia/opieplayer/modplug/opie-modplugin.postrm
deleted file mode 100755
index c043682..0000000
--- a/core/multimedia/opieplayer/modplug/opie-modplugin.postrm
+++ b/dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-QPEDIR=/opt/QtPalmtop
-MIMEFILE=$OPIEDIR/etc/mime.types
-MEDIAPLAYER=$OPIEDIR/apps/Applications/opieplayer.desktop
-MIMETYPE="audio/x-mod"
-MIMELINE="$MIMETYPE 669 amf apun dsm far gdm imf it med mod mtm nst s3m stm stx ult uni xm"
-
-tmpfile=/tmp/qpe-modplugin$$.tmp
-
-grep -q "$MIMELINE" $MIMEFILE
-if [ $? == 0 ]; then
- echo "removing mod/s3m/etc from $MIMEFILE"
-
- grep -v "$MIMELINE" $MIMEFILE > $tmpfile
- mv $tmpfile $MIMEFILE
-fi
-
-grep -q "$MIMETYPE" $MEDIAPLAYER
-if [ $? == 0 ]; then
- echo "removing $MIMETYPE from $MEDIAPLAYER"
-
- cat $MEDIAPLAYER | sed -e "s,^MimeType=\(.*\);$MIMETYPE\(\.*\)\$,MimeType=\\1\\2," > $tmpfile
- mv $tmpfile $MEDIAPLAYER
-fi
-