Check-in [0282bb8da7]
Overview
Comment:Added support for not building under newer versions of Tcl
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0282bb8da797d210f6ded41df662db0a1f4e585b
User & Date: rkeene on 2010-09-26 04:38:22
Other Links: manifest | tags
Context
2010-09-26
04:38
Added support for TCLVERS beginning with "cvs_" to indicate a CVS version of Tcl/Tk check-in: 3d4318cfe7 user: rkeene tags: trunk
04:38
Added support for not building under newer versions of Tcl check-in: 0282bb8da7 user: rkeene tags: trunk
04:38
Added build status output check-in: 740690ff29 user: rkeene tags: trunk
Changes

Modified itcl/build.sh from [b421315dfc] to [0f3e73b2cc].

    18     18   BUILDDIR="$(pwd)/build/itcl${ITCLVERS}"
    19     19   OUTDIR="$(pwd)/out"
    20     20   INSTDIR="$(pwd)/inst"
    21     21   export ITCLVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR
    22     22   
    23     23   rm -rf 'build' 'out' 'inst'
    24     24   mkdir 'build' 'out' 'inst' || exit 1
           25  +
           26  +# Determine if Itcl is even needed
           27  +(
           28  +	TCL_VERSION="unknown"
           29  +	if [ -f "${TCLCONFIGDIR}/tclConfig.sh" ]; then
           30  +		source "${TCLCONFIGDIR}/tclConfig.sh"
           31  +	fi
           32  +
           33  +	if echo "${TCL_VERSION}" | grep '^8\.[45]$' >/dev/null; then
           34  +		# Itcl is required for Tcl 8.4 and Tcl 8.5
           35  +
           36  +		exit 0
           37  +	fi
           38  +
           39  +	if [ "${TCL_VERSION}" = "unknown" ]; then
           40  +		# If we don't know what version of Tcl we are building, build
           41  +		# Itcl just in case.
           42  +
           43  +		exit 0
           44  +	fi
           45  +
           46  +	# All other versions do not require Itcl
           47  +	echo "Skipping building Itcl, not required for ${TCL_VERSION}"
           48  +	exit 1
           49  +) || exit 0
    25     50   
    26     51   if [ ! -f "${SRC}" ]; then
    27     52   	mkdir 'src' >/dev/null 2>/dev/null
    28     53   
    29     54   	wget -O "${SRC}" "${SRCURL}" || exit 1
    30     55   fi
    31     56