author | llornkcor <llornkcor> | 2002-07-20 22:17:04 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-20 22:17:04 (UTC) |
commit | c806157a8390ff6d2eb9be9909cc4f0458b91ba8 (patch) (unidiff) | |
tree | b66813baee13248ebc17ea459a3a7a58dce8c686 | |
parent | 4d2de7638c9b8797b71f378a802c83d53842f03e (diff) | |
download | opie-c806157a8390ff6d2eb9be9909cc4f0458b91ba8.zip opie-c806157a8390ff6d2eb9be9909cc4f0458b91ba8.tar.gz opie-c806157a8390ff6d2eb9be9909cc4f0458b91ba8.tar.bz2 |
sorry no need for these
-rwxr-xr-x | core/multimedia/opieplayer/modplug/opie-modplugin.postinst | 24 | ||||
-rwxr-xr-x | core/multimedia/opieplayer/modplug/opie-modplugin.postrm | 26 |
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 | |||
3 | OPIEDIR=/opt/QtPalmtop | ||
4 | MIMEFILE=$OPIEDIR/etc/mime.types | ||
5 | MEDIAPLAYER=$OPIEDIR/apps/Applications/opieplayer.desktop | ||
6 | MIMETYPE="audio/x-mod" | ||
7 | MIMELINE="$MIMETYPE669 amf apun dsm far gdm imf it med mod mtm nst s3m stm stx ult uni xm" | ||
8 | |||
9 | grep -q "$MIMELINE" $MIMEFILE | ||
10 | if [ $? != 0 ]; then | ||
11 | echo "appending mod/s3m/etc to $MIMEFILE" | ||
12 | |||
13 | echo "$MIMELINE" >> $MIMEFILE | ||
14 | fi | ||
15 | |||
16 | grep -q "$MIMETYPE" $MEDIAPLAYER | ||
17 | if [ $? != 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 | ||
23 | fi | ||
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 | |||
3 | QPEDIR=/opt/QtPalmtop | ||
4 | MIMEFILE=$OPIEDIR/etc/mime.types | ||
5 | MEDIAPLAYER=$OPIEDIR/apps/Applications/opieplayer.desktop | ||
6 | MIMETYPE="audio/x-mod" | ||
7 | MIMELINE="$MIMETYPE669 amf apun dsm far gdm imf it med mod mtm nst s3m stm stx ult uni xm" | ||
8 | |||
9 | tmpfile=/tmp/qpe-modplugin$$.tmp | ||
10 | |||
11 | grep -q "$MIMELINE" $MIMEFILE | ||
12 | if [ $? == 0 ]; then | ||
13 | echo "removing mod/s3m/etc from $MIMEFILE" | ||
14 | |||
15 | grep -v "$MIMELINE" $MIMEFILE > $tmpfile | ||
16 | mv $tmpfile $MIMEFILE | ||
17 | fi | ||
18 | |||
19 | grep -q "$MIMETYPE" $MEDIAPLAYER | ||
20 | if [ $? == 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 | ||
25 | fi | ||
26 | |||