Index: README ================================================================== --- README +++ README @@ -87,10 +87,15 @@ 7. KITCREATOR_MINENCODINGS Set this variable to a non-empty string to generate a Tclkit without all encodings, only including the following: ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc iso8859-2.enc koi8-r.enc macRoman.enc + + 8. KITCREATOR_MINBUILD + Set this variable to a non-empty string to exclude unnecessary + packages from Tcl build. This excludes the following packages: + tcltest ------------------- Method of Operation ------------------- Summary: Index: kitsh/buildsrc/kitsh-0.0/mk4tcl.tcl ================================================================== --- kitsh/buildsrc/kitsh-0.0/mk4tcl.tcl +++ kitsh/buildsrc/kitsh-0.0/mk4tcl.tcl @@ -11,10 +11,12 @@ } } catch { load {} zlib +} +catch { package require zlib } if {[info comm mmap] == ""} { # mmap and mvec primitives in pure Tcl (a C version is present in critlib) Index: tcl/build.sh ================================================================== --- tcl/build.sh +++ tcl/build.sh @@ -85,11 +85,13 @@ rm -rf "${OUTDIR}/lib/pkgconfig" rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null # Clean up packages that are not needed - find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf + if [ -n "${KITCREATOR_MINBUILD}" ]; then + find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf + fi # Clean up encodings if [ -n "${KITCREATOR_MINENCODINGS}" ]; then KEEPENCODINGS=" ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc iso8859-2.enc koi8-r.enc macRoman.enc " export KEEPENCODINGS