diff options
Diffstat (limited to 'cad/astk-serveur/files.client/patch-bin_astk')
-rw-r--r-- | cad/astk-serveur/files.client/patch-bin_astk | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/cad/astk-serveur/files.client/patch-bin_astk b/cad/astk-serveur/files.client/patch-bin_astk index 48826284a493..d28765d365b3 100644 --- a/cad/astk-serveur/files.client/patch-bin_astk +++ b/cad/astk-serveur/files.client/patch-bin_astk @@ -1,33 +1,27 @@ ---- ./bin/astk.orig 2009-12-23 15:53:05.000000000 +0100 -+++ ./bin/astk 2010-02-02 19:30:34.000000000 +0100 -@@ -17,20 +17,14 @@ +--- bin/astk.orig 2011-12-20 13:33:00.000000000 +0100 ++++ bin/astk 2012-05-08 12:31:09.000000000 +0200 +@@ -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` +- local this=`readlink -n -f $1` +- local bin=`dirname $this` +- prefix=`dirname $bin` -} -- --set_prefix $0 +prefix=%%inst_dir%%/ASTK_CLIENT - # set environment - if [ -f /etc/codeaster/profile.sh ]; then - . /etc/codeaster/profile.sh - fi --if [ -f $prefix/etc/codeaster/profile.sh ]; then -- . $prefix/etc/codeaster/profile.sh -+if [ -f ?ASTER_ROOT?/etc/codeaster/profile.sh ]; then -+ . ?ASTER_ROOT?/etc/codeaster/profile.sh - fi - - # start tcl/tk interpreter -@@ -38,5 +32,5 @@ +-set_prefix $0 +- +-ASTER_ROOT=$prefix ++ASTER_ROOT=?ASTER_ROOT? + ASTER_ETC=$ASTER_ROOT/etc + if [ "$ASTER_ROOT" = "/usr" ]; then + ASTER_ETC=/etc +@@ -43,5 +37,5 @@ WISHEXECUTABLE=wish fi --$WISHEXECUTABLE $prefix/lib/astk/astk.tcl -- $* & +-$WISHEXECUTABLE $ASTER_ROOT/lib/astk/astk.tcl -- $* & +$WISHEXECUTABLE $prefix/lib/astk.tcl -- $* & |