diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-03-26 17:09:03 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-03-26 17:09:03 +0000 |
commit | 4dd481bc529ab76f6c64e0b1d21f3dfb9db9d241 (patch) | |
tree | e04c35551ccc8130bee6038657e32c25f8a1577c /net/mldonkey-gui-devel/files/wrapper.sh | |
parent | Hopefully fix the build on bento: (diff) |
Update to 2.04 rc1
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=77490
Diffstat (limited to 'net/mldonkey-gui-devel/files/wrapper.sh')
-rw-r--r-- | net/mldonkey-gui-devel/files/wrapper.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/mldonkey-gui-devel/files/wrapper.sh b/net/mldonkey-gui-devel/files/wrapper.sh new file mode 100644 index 000000000000..c25fd62bc133 --- /dev/null +++ b/net/mldonkey-gui-devel/files/wrapper.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%/bin" +PROGRAM="${0}" +DIRNAME=${HOME}/.mldonkey + +if [ ! -d ${DIRNAME} ] +then + mkdir -p ${DIRNAME} +fi + +echo " ${*} " | grep " \-createdironly " || +{ + cd ${DIRNAME} && + echo Running under ${DIRNAME} && + exec ${PREFIX}/${PROGRAM##*/}-real "${@}" || + echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again +} |