summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-06-29 16:34:12 +0000
committerJon Hood <squinky86@gentoo.org>2004-06-29 16:34:12 +0000
commit2f071fb1c43776f59cde1329a33106fba53e367d (patch)
treefb85f36f37b56112a9b2dfebf4cc06a50fa1a052
parentsync IUSE (+perl) (Manifest recommit) (diff)
downloadgentoo-2-2f071fb1c43776f59cde1329a33106fba53e367d.tar.gz
gentoo-2-2f071fb1c43776f59cde1329a33106fba53e367d.tar.bz2
gentoo-2-2f071fb1c43776f59cde1329a33106fba53e367d.zip
better startup script (#52900)
-rw-r--r--net-p2p/xmule/ChangeLog5
-rw-r--r--net-p2p/xmule/files/xmule.sh22
2 files changed, 15 insertions, 12 deletions
diff --git a/net-p2p/xmule/ChangeLog b/net-p2p/xmule/ChangeLog
index d95933e9dde5..111f605b4ace 100644
--- a/net-p2p/xmule/ChangeLog
+++ b/net-p2p/xmule/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-p2p/xmule
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/ChangeLog,v 1.38 2004/06/28 16:20:56 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/ChangeLog,v 1.39 2004/06/29 16:34:12 squinky86 Exp $
+
+ 29 Jun 2004; Jon Hood <squinky86@gentoo.org> files/xmule.sh:
+ better startup script by Evert <evert.alpha@planet.nl>, closes #52900
*xmule-1.8.2-r3 (28 Jun 2004)
diff --git a/net-p2p/xmule/files/xmule.sh b/net-p2p/xmule/files/xmule.sh
index e749e2904658..4bc0f19b6b86 100644
--- a/net-p2p/xmule/files/xmule.sh
+++ b/net-p2p/xmule/files/xmule.sh
@@ -1,16 +1,16 @@
#!/bin/sh
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/files/xmule.sh,v 1.1 2004/06/28 16:20:57 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/files/xmule.sh,v 1.2 2004/06/29 16:34:12 squinky86 Exp $
-if [ ! -e ~/.xMule ]; then
- echo "Creating ~/.xMule..."
- mkdir ~/.xMule
- echo "Copying required files to ~/.xMule..."
- mkdir ~/.xMule/resource
- cp /usr/share/xmule/*.pm ~/.xMule/resource/
- echo "Starting xMule..."
- xmule-bin
-else
- xmule-bin
+if [ ! -d ~/.xMule ]; then
+ echo "Creating ~/.xMule..."
+ mkdir ~/.xMule || exit 1
fi
+if [ ! -d ~/.xMule/resource ]; then
+ echo "Copying required files to ~/.xMule..."
+ mkdir ~/.xMule/resource || exit 1
+ cp /usr/share/xmule/*.pm ~/.xMule/resource/ || exit 1
+ echo "Starting xMule..."
+fi
+exec xmule-bin