From c806157a8390ff6d2eb9be9909cc4f0458b91ba8 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 20 Jul 2002 22:17:04 +0000 Subject: sorry no need for these --- 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 - -- cgit v0.9.0.2