summaryrefslogtreecommitdiff
path: root/cad/astk-serveur/files.client/patch-bin_astk
blob: 3acc4cc967f88f3f9eb3eb9f8cc690c85c701675 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- bin/astk.orig	2017-07-13 07:40:52 UTC
+++ bin/astk
@@ -17,15 +17,9 @@
 #    1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
 # ==============================================================================
 
-set_prefix() {
-    local this=`readlink -n -f "$1"`
-    local bin=`dirname "${this}"`
-    prefix=`dirname "${bin}"`
-}
-
-set_prefix "$0"
+prefix=%%inst_dir%%/ASTK_CLIENT
 
-ASTER_ROOT="${prefix}"
+ASTER_ROOT="?ASTER_ROOT?"
 export ASTER_ROOT
 
 if [ -z "${ASTER_ETC}" ]; then
@@ -46,4 +40,4 @@ if [ -z "${WISHEXECUTABLE}" ]; then
    WISHEXECUTABLE=wish
 fi
 
-"${WISHEXECUTABLE}" "${ASTER_ROOT}"/lib/astk/astk.tcl -- "${@}" &
+"${WISHEXECUTABLE}" $prefix/lib/astk.tcl -- "${@}" &