summaryrefslogtreecommitdiff
path: root/multimedia/divxplayer/files/launcher.sh
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-01-26 13:28:19 +0000
committerjmmv <jmmv@pkgsrc.org>2004-01-26 13:28:19 +0000
commitbbb8af9c10e95bc70685526c9ec89b8098312e8b (patch)
tree9cbe0bda1b4b4f0625c900fbae70f8bdb6234d81 /multimedia/divxplayer/files/launcher.sh
parent8eb346a138989c6ca82917dcde6ab6c521b64631 (diff)
downloadpkgsrc-bbb8af9c10e95bc70685526c9ec89b8098312e8b.tar.gz
Move divxplayer to the multimedia category (coming from graphics).
This is version 0.2.0.
Diffstat (limited to 'multimedia/divxplayer/files/launcher.sh')
-rw-r--r--multimedia/divxplayer/files/launcher.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/divxplayer/files/launcher.sh b/multimedia/divxplayer/files/launcher.sh
new file mode 100644
index 00000000000..e455a68b6b6
--- /dev/null
+++ b/multimedia/divxplayer/files/launcher.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+PROGRAM="$0"
+DATADIR="%%DATADIR%%"
+DIVX_SKIN_DIR=${DATADIR}/Skins
+
+export DIVX_SKIN_DIR
+
+if [ -f ~/.divxPlayer/DivXPlayer.dbf ]
+then
+ rm -f ~/.divxPlayer/DivXPlayer.dbf
+fi
+
+exec ${PROGRAM}.bin "${@}"