summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-20 22:17:04 (UTC)
committer llornkcor <llornkcor>2002-07-20 22:17:04 (UTC)
commitc806157a8390ff6d2eb9be9909cc4f0458b91ba8 (patch) (unidiff)
treeb66813baee13248ebc17ea459a3a7a58dce8c686
parent4d2de7638c9b8797b71f378a802c83d53842f03e (diff)
downloadopie-c806157a8390ff6d2eb9be9909cc4f0458b91ba8.zip
opie-c806157a8390ff6d2eb9be9909cc4f0458b91ba8.tar.gz
opie-c806157a8390ff6d2eb9be9909cc4f0458b91ba8.tar.bz2
sorry no need for these
Diffstat (more/less context) (ignore 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 @@
1#!/bin/sh
2
3OPIEDIR=/opt/QtPalmtop
4MIMEFILE=$OPIEDIR/etc/mime.types
5MEDIAPLAYER=$OPIEDIR/apps/Applications/opieplayer.desktop
6MIMETYPE="audio/x-mod"
7 MIMELINE="$MIMETYPE669 amf apun dsm far gdm imf it med mod mtm nst s3m stm stx ult uni xm"
8
9grep -q "$MIMELINE" $MIMEFILE
10if [ $? != 0 ]; then
11 echo "appending mod/s3m/etc to $MIMEFILE"
12
13 echo "$MIMELINE" >> $MIMEFILE
14fi
15
16grep -q "$MIMETYPE" $MEDIAPLAYER
17if [ $? != 0 ]; then
18 echo "appending $MIMETYPE to $MEDIAPLAYER"
19
20 tmpfile=/tmp/qpe-modplugin-$$.tmp
21 cat $MEDIAPLAYER | sed -e "s,^MimeType=\(.*\)\$,MimeType=\\1;$MIMETYPE," > $tmpfile
22 mv $tmpfile $MEDIAPLAYER
23fi
24
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 @@
1#!/bin/sh
2
3QPEDIR=/opt/QtPalmtop
4MIMEFILE=$OPIEDIR/etc/mime.types
5MEDIAPLAYER=$OPIEDIR/apps/Applications/opieplayer.desktop
6MIMETYPE="audio/x-mod"
7 MIMELINE="$MIMETYPE669 amf apun dsm far gdm imf it med mod mtm nst s3m stm stx ult uni xm"
8
9tmpfile=/tmp/qpe-modplugin$$.tmp
10
11grep -q "$MIMELINE" $MIMEFILE
12if [ $? == 0 ]; then
13 echo "removing mod/s3m/etc from $MIMEFILE"
14
15 grep -v "$MIMELINE" $MIMEFILE > $tmpfile
16 mv $tmpfile $MIMEFILE
17fi
18
19grep -q "$MIMETYPE" $MEDIAPLAYER
20if [ $? == 0 ]; then
21 echo "removing $MIMETYPE from $MEDIAPLAYER"
22
23 cat $MEDIAPLAYER | sed -e "s,^MimeType=\(.*\);$MIMETYPE\(\.*\)\$,MimeType=\\1\\2," > $tmpfile
24 mv $tmpfile $MEDIAPLAYER
25fi
26