diff options
Diffstat (limited to 'net-p2p/mldonkey-serverspy/files/wrapper.sh')
-rw-r--r-- | net-p2p/mldonkey-serverspy/files/wrapper.sh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/net-p2p/mldonkey-serverspy/files/wrapper.sh b/net-p2p/mldonkey-serverspy/files/wrapper.sh deleted file mode 100644 index a47d229bf379..000000000000 --- a/net-p2p/mldonkey-serverspy/files/wrapper.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -PREFIX="%%PREFIX%%" -CONFIG="%%CONFIG%%" -IMAGE="%%IMAGE%%" -PROGRAM="${0}" -DIRNAME=${HOME}/.mldonkey-serverspy - -if [ ! -d ${DIRNAME} ] -then - mkdir -p ${DIRNAME} -fi - -if [ ! -h ${DIRNAME}/${PROGRAM##*/} ] -then - ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/} -fi - -if [ ! -f ${DIRNAME}/${IMAGE} -o ! -h ${DIRNAME}/${IMAGE} ] -then - ln -sf ${PREFIX}/share/mldonkey-serverspy/${IMAGE} \ - ${DIRNAME}/${IMAGE} -fi - -if [ ! -f ${DIRNAME}/${CONFIG} ] -then - rm -f ${DIRNAME}/${CONFIG} - cp -f ${PREFIX}/share/mldonkey-serverspy/${CONFIG} \ - ${DIRNAME}/${CONFIG} - - echo Edit the configuration file ${DIRNAME}/${CONFIG} then run ${PROGRAM##*/} again. -else - echo " ${*} " | grep " \-createdironly " || - { - cd ${DIRNAME} && - echo Running under ${DIRNAME} && - exec ./${PROGRAM##*/} "${@}" || - echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again - } -fi |