Index: tcl/build.sh ================================================================== --- tcl/build.sh +++ tcl/build.sh @@ -22,11 +22,26 @@ mkdir 'build' 'out' 'inst' || exit 1 if [ ! -f "${SRC}" ]; then mkdir 'src' >/dev/null 2>/dev/null - wget -O "${SRC}" "${SRCURL}" || exit 1 + if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then + CVSTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g') + export CVSTAG + + ( + cd src || exit 1 + + cvs -z3 -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl co -r "${CVSTAG}" -P tcl + + mv tcl "tcl${TCLVERS}" + + tar -cf - "tcl${TCLVERS}" | gzip -c > "../${SRC}" + ) + else + wget -O "${SRC}" "${SRCURL}" || exit 1 + fi fi ( cd 'build' || exit 1 Index: tk/build.sh ================================================================== --- tk/build.sh +++ tk/build.sh @@ -22,11 +22,26 @@ mkdir 'build' 'out' 'inst' || exit 1 if [ ! -f "${SRC}" ]; then mkdir 'src' >/dev/null 2>/dev/null - wget -O "${SRC}" "${SRCURL}" || exit 1 + if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then + CVSTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g') + export CVSTAG + + ( + cd src || exit 1 + + cvs -z3 -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tktoolkit co -r "${CVSTAG}" -P tk + + mv tk "tk${TCLVERS}" + + tar -cf - "tk${TCLVERS}" | gzip -c > "../${SRC}" + ) + else + wget -O "${SRC}" "${SRCURL}" || exit 1 + fi fi ( cd 'build' || exit 1