Diff

Differences From Artifact [bed9e43849]:

To Artifact [9916a29d8c]:


     1      1   #! /bin/bash
     2      2   
     3      3   TCLVERS="8.4.19"
     4         -if echo "$1" | grep '^[0-9][0-9]*\.' >/dev/null || echo "$1" | grep '^cvs_' >/dev/null; then
            4  +if echo "$1" | grep '^[0-9][0-9]*\.' >/dev/null || echo "$1" | egrep '^(cvs|fossil)_' >/dev/null; then
     5      5   	TCLVERS="$1"
     6      6   
     7      7   	shift
     8      8   fi
     9      9   export TCLVERS
    10     10   
    11     11   # Determine appropriate mode
................................................................................
   101    101   if [ -f "kit.rc" ]; then
   102    102   	KITCREATOR_RC="$(pwd)/kit.rc"
   103    103   else
   104    104   	KITCREATOR_RC="$(echo "$(pwd)/kitsh/buildsrc"/kitsh-*/kit.rc)"
   105    105   fi
   106    106   export KITCREATOR_ICON KITCREATOR_RC
   107    107   
          108  +# Determine how we invoke a Tcl interpreter
          109  +if [ -z "${TCLSH_NATIVE}" ]; then
          110  +	TCLSH_NATIVE="false"
          111  +fi
          112  +for testsh in "${TCLSH_NATIVE}" tclsh tclsh8.4 tclsh8.5 tclsh8.6 "${TCLKIT:-tclkit}"; do
          113  +	if echo 'exit 0' | "${testsh}" >/dev/null 2>/dev/null; then
          114  +		TCLSH_NATIVE="${testsh}"
          115  +
          116  +		break
          117  +	fi
          118  +done
          119  +export TCLSH_NATIVE
          120  +
          121  +# Do build
   108    122   failedpkgs=""
   109    123   buildfailed="0"
   110    124   for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
   111    125   	echo -n "Building ${pkg} ..."
   112    126   
   113    127   	failed="0"
   114    128   	(