smalltalk
changeset 476 25c3df1d5c43
parent 454 e8676bb3d081
child 482 94e7d89d7844
equal deleted inserted replaced
475:2c69de841062 476:25c3df1d5c43
    48 if test -x `dirname $0`/stx; then
    48 if test -x `dirname $0`/stx; then
    49     STX_BINDIR=`dirname $0`
    49     STX_BINDIR=`dirname $0`
    50     STX=$STX_BINDIR/stx
    50     STX=$STX_BINDIR/stx
    51 #    cd $STX_BINDIR
    51 #    cd $STX_BINDIR
    52 fi
    52 fi
       
    53 
       
    54 if [ "$STX_LIBDIR" != "" ]
       
    55 then
       
    56     if [ ! -f $STX_LIBDIR/smalltalk.rc ]
       
    57     then
       
    58 	echo "smalltalk [warning]: ignore wrong STX_LIBDIR setting"
       
    59 	STX_LIBDIR=""
       
    60     fi
       
    61 fi
       
    62 
    53 
    63 
    54 # notice: STXLIBDIR is filled in here by install-sh script
    64 # notice: STXLIBDIR is filled in here by install-sh script
    55 if test -z "$STX_LIBDIR"
    65 if test -z "$STX_LIBDIR"
    56 then
    66 then
    57 	bindir=`dirname $0`
    67 	bindir=`dirname $0`
    66 	then
    76 	then
    67 	    STX_LIBDIR=`cd ${bindir}/../lib ; pwd`
    77 	    STX_LIBDIR=`cd ${bindir}/../lib ; pwd`
    68 	fi
    78 	fi
    69 fi
    79 fi
    70 
    80 
       
    81 if [ -z "$STX_LIBDIR" ]
       
    82 then
       
    83     if [ -d ../lib ]
       
    84     then
       
    85 	STX_LIBDIR=`cd ../lib ; pwd`
       
    86     fi
       
    87 fi
    71 if [ ! -d "$STX_LIBDIR" ]
    88 if [ ! -d "$STX_LIBDIR" ]
    72 then
    89 then
    73     if [ -d ../lib ]
    90     if [ -d ../lib ]
    74     then
    91     then
    75 	STX_LIBDIR=`cd ../lib ; pwd`
    92 	STX_LIBDIR=`cd ../lib ; pwd`