Changeset 2427 for trunk/base


Ignore:
Timestamp:
Apr 9, 2003, 5:48:52 AM (18 years ago)
Author:
landonf (Landon Fuller)
Message:

Update config.sh to work on NetBSD
Add some evil variable substitution using sed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/scripts/config.sh

    r2426 r2427  
    11#!/bin/sh
    22args=`getopt c: $*`
    3 if [ $? != 0 ] || [ $# == 0 ]; then
     3if [ $? -ne 0 ] || [ $# -eq 0 ]; then
    44        echo "Usage: $0 [-c <tcl directory>] <action> <options>"
    55        echo "Actions:"
     
    2222done
    2323
    24 if [ "$tclDir" == "" ]; then
     24if [ "$tclDir" = "" ]; then
    2525        for i in /usr/lib/ /usr/local/lib /usr/pkg/lib /System/Library/Tcl/8.3
    2626        do
     
    3737fi
    3838
    39 if [ "$tclConfig" == "" ]; then
     39if [ "$tclConfig" = "" ]; then
    4040        echo "Could not find tclConfig.sh"
    4141        exit 3
     
    6262                libName=$1; shift; objFiles=$*
    6363                tclLd="$TCL_SHLIB_LD $tclLd $objFiles -o $libName$TCL_SHLIB_SUFFIX $TCL_LIB_SPEC"
    64                 tclLdClean=`echo $tclLd | sed s/\\\${[A-Za-z_]*}//g`
     64                tclLdClean=`echo $tclLd | sed s/\\\${TCL_CC}/"$TCL_CC"/g | sed s/\\\${[A-Za-z_]*}//g`
    6565                echo "$tclLdClean"
    6666                $tclLdClean
     
    7070                exit 0;;
    7171        installdir)
    72                 if [ `uname -s` == "Darwin" ]; then
     72                if [ `uname -s` = "Darwin" ]; then
    7373                        if [ -d /System/Library/Tcl/$TCL_VERSION ]; then
    7474                                echo "/System/Library/Tcl/$TCL_VERSION/darwinports1.0"
Note: See TracChangeset for help on using the changeset viewer.