summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Goller <morfic@gentoo.org>2005-01-09 05:39:27 +0000
committerDaniel Goller <morfic@gentoo.org>2005-01-09 05:39:27 +0000
commit32b16e4248fc25ac932544d91b69f344353c0586 (patch)
tree097c98b926ee296eb636e1c042007090352a1ff7 /games-emulation/mupen64/files
parentadded ~amd keyword. (Manifest recommit) (diff)
downloadgentoo-2-32b16e4248fc25ac932544d91b69f344353c0586.tar.gz
gentoo-2-32b16e4248fc25ac932544d91b69f344353c0586.tar.bz2
gentoo-2-32b16e4248fc25ac932544d91b69f344353c0586.zip
Updated start script
Diffstat (limited to 'games-emulation/mupen64/files')
-rw-r--r--games-emulation/mupen64/files/mupen6415
1 files changed, 12 insertions, 3 deletions
diff --git a/games-emulation/mupen64/files/mupen64 b/games-emulation/mupen64/files/mupen64
index 09189fd8d05e..e6ae559f0d95 100644
--- a/games-emulation/mupen64/files/mupen64
+++ b/games-emulation/mupen64/files/mupen64
@@ -2,6 +2,9 @@
if [ ! -d ~/.mupen64/save ] ; then
mkdir -p ~/.mupen64/save
+ if [ -h ~/.mupen64/plugins ]; then
+ rm ~/.mupen64/plugins
+ fi
mkdir -p ~/.mupen64/plugins
cd ~/.mupen64
ln -s GENTOO_DIR/mupen64 mupen64
@@ -9,11 +12,17 @@ if [ ! -d ~/.mupen64/save ] ; then
cp GENTOO_DIR/mupen64.ini .
fi
-cd ~/.mupen64
+cd ~/.mupen64/plugins
-cd plugins
cleanlinks
-ln -s GENTOO_DIR/plugins/*.{so,ini} .
+ln -sf GENTOO_DIR/plugins/*.so .
+for i in GENTOO_DIR/plugins/*.{ini,conf}; do
+ lfile=`basename $i`
+ if [ -h $lfile ]; then
+ rm $lfile
+ cp $i .
+ fi
+done
cd ..
# We must execute ./blah not /foo/bar/blah because mupen64 tries to