Index: README ================================================================== --- README +++ README @@ -82,10 +82,15 @@ is: tk itcl mk4tcl If mk4tcl is not present a pure-Tcl implementation will be used instead. + 7. KITCREATOR_ALLENCODINGS + Set this variable to a non-empty string to generate a Tclkit + with all encodings rather than the default 8: + ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc + iso8859-2.enc koi8-r.enc macRoman.enc ------------------- Method of Operation ------------------- Summary: Index: tcl/build.sh ================================================================== --- tcl/build.sh +++ tcl/build.sh @@ -83,10 +83,32 @@ mkdir "${OUTDIR}/lib" || exit 1 cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/" 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 + + # Clean up encodings + if [ -z "${KITCREATOR_ALLENCODINGS}" ]; then + KEEPENCODINGS=" ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc iso8859-2.enc koi8-r.enc macRoman.enc " + export KEEPENCODINGS + find "${OUTDIR}/lib" -name 'encoding' -type d | while read encdir; do + ( + cd "${encdir}" || exit 1 + + for file in *; do + if echo " ${KEEPENCODINGS} " | grep " ${file} " >/dev/null; then + continue + fi + + rm -f "${file}" + done + ) + done + fi break done ) || exit 1