diff options
author | Miguel de Icaza <miguel@gnome.org> | 2005-11-10 20:37:06 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2005-11-10 20:37:06 +0300 |
commit | 81a08a653d1eca14735e31589b38492e4dc345c7 (patch) | |
tree | 177bc42e0939080ac81325e1a955968d15283afa /scripts | |
parent | 0278b90f43a6cca29192e8be3d495db5eadbbb22 (diff) |
Revert the script magic to do relocations, it does not work when the commands are symlinked
svn path=/trunk/mono/; revision=52862
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mono-service.in | 5 | ||||
-rw-r--r-- | scripts/script.in | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/scripts/mono-service.in b/scripts/mono-service.in index 950c2f66cb4..25b789902c4 100644 --- a/scripts/mono-service.in +++ b/scripts/mono-service.in @@ -1,7 +1,4 @@ #!/bin/sh -a=`which "$0"` -d=`dirname "$a"` - args="$@" assembly= while test x$1 != x; do @@ -32,4 +29,4 @@ if test x$assembly = x; then fi export MONO_DISABLE_SHM=1 -exec $d/@mono_interp@ @mono_instdir@/@framework_version@/@exe_name@.exe $args </dev/null >& /dev/null & +exec @bindir@/@mono_interp@ @mono_instdir@/@framework_version@/@exe_name@.exe $args </dev/null >& /dev/null & diff --git a/scripts/script.in b/scripts/script.in index 8952ac6d6ea..ef0e2bcffea 100644 --- a/scripts/script.in +++ b/scripts/script.in @@ -1,6 +1,2 @@ #!/bin/sh - -a=`which "$0"` -d=`dirname "$a"` - -exec $d/@mono_interp@ @mono_instdir@/@framework_version@/@exe_name@.exe "$@" +exec @bindir@/@mono_interp@ @mono_instdir@/@framework_version@/@exe_name@.exe "$@" |