@@ -8,10 +8,15 @@ if [ -z "${TCLVERS}" ]; then echo 'ERROR: The TCLVERS environment variable is not set' >&2 exit 1 fi +if [ -z "${TCLVERS2}" ]; then + echo 'ERROR: The TCLVERS2 environment variable is not set' >&2 + + exit 1 +fi KITSHVERS="0.0" BUILDDIR="$(pwd)/build/kitsh-${KITSHVERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" @@ -203,11 +208,14 @@ cp kit runkit echo "set argv [list {${KITTARGET_NAME}} starpack.vfs {${ENABLECOMPRESSION}}]" > setup.tcl echo 'if {[catch { clock seconds }]} { proc clock args { return 0 } }' >> setup.tcl echo 'source installvfs.tcl' >> setup.tcl - echo 'Running: echo | ./runkit' + TCL_LIBRARY="$(pwd)/starpack.vfs/lib/tcl${TCLVERS2}" + export TCL_LIBRARY + + echo 'Running: echo | ./runkit setup.tcl' echo | ./runkit setup.tcl || exit 1 fi # Cleanup if [ "${KITTARGET}" = "kitdll" ]; then