@@ -3,16 +3,23 @@ TCLVERS="8.4.19" export TCLVERS mode="build" if [ "$1" = "clean" ]; then + shift + mode="clean" fi if [ "$1" = "distclean" ]; then + shift + mode="distclean" fi +CONFIGUREEXTRA="$@" +export CONFIGUREEXTRA + failedpkgs="" buildfailed="0" for pkg in tcl tk itcl mk4tcl tclvfs kitsh; do if [ "${mode}" = "distclean" ]; then rm -rf "${pkg}/src"