Index: server/buildpkgs/build_all.sh ================================================================== --- server/buildpkgs/build_all.sh +++ server/buildpkgs/build_all.sh @@ -28,11 +28,11 @@ if [ "${DISTCLEAN}" = "1" ]; then rm -rf tcl fi if [ "${CLEANONLY}" = "0" ]; then - TCLVERS="8.4.19" + TCLVERS="8.5.9" TCLPRIVATE="$(pwd)/tcl/build/tcl${TCLVERS}" PROJROOTDIR="$(pwd)" TCLINSTDIR="$(pwd)/tcl/inst" export TCLVERS TCLPRIVATE PROJROOTDIR TCLINSTDIR @@ -134,11 +134,17 @@ PLATFORM="${FORCE_PLATFORM}" fi # Build all appropriate directories faileddirs="" -for dir in */; do +if [ -z "${DIRS}" ]; then + DIRS="`echo */`" + PKGHASHCODE='' +else + PKGHASHCODE="$(echo "${DIRS}" | sed 's@[/ ]@@g' | openssl sha1 | awk '{ print $1 }')" +fi +for dir in ${DIRS}; do export dir if [ ! -f "${dir}/build.sh" ]; then continue fi @@ -184,9 +190,14 @@ echo "The following failed to build:${faileddirs}" fi # Create tarfile of built packages DATECODE="$(date +%Y%m%d%H%M)" -OUTFILEBASE="tclpkgs-${PLATFORM}-${DATECODE}" + +if [ -z "${PKGHASHCODE}" ]; then + OUTFILEBASE="tclpkgs-${PLATFORM}-${DATECODE}" +else + OUTFILEBASE="tclpkgs-${PKGHASHCODE}-${PLATFORM}-${DATECODE}" +fi tar -cf - */out | bzip2 -9c > "${OUTFILEBASE}.tar.bz2" exit 0 ADDED server/buildpkgs/dbus-tcl/build.sh Index: server/buildpkgs/dbus-tcl/build.sh ================================================================== --- /dev/null +++ server/buildpkgs/dbus-tcl/build.sh @@ -0,0 +1,51 @@ +#! /bin/bash + +if [ ! -x "../platform" ]; then + echo "No platform script found, aborting." >&2 + + exit 1 +fi + +if [ "${PLATFORM}" = "tcl" ]; then + rm -rf out + + exit 0 +fi + +VERS=1.0 +SRC="src/dbus-tcl-${VERS}.tar.gz" +SRCURL="http://sourceforge.net/projects/dbus-tcl/files/dbus-tcl/${VERS}/dbus-tcl${VERS}.tar.gz/download" +BUILDDIR="dbus-tcl${VERS}" +WORKDIR="${TMPDIR:-/tmp}/dbus-tcl-$$${RANDOM}${RANDOM}${RANDOM}" +PLATDIR="$(pwd)/out/${PLATFORM}" + +export VERS SRC SRCURL BUILDDIR WORKDIR PLATDIR + +if [ ! -f "${SRC}" ]; then + mkdir src >/dev/null 2>/dev/null + + wget -O "${SRC}" "${SRCURL}" || exit 1 +fi + +( + rm -rf build + mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null + mkdir build + + cd build/ || exit 1 + + gzip -dc "../${SRC}" | tar -xf - + cd "${BUILDDIR}" || exit 1 + + bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} + + ${MAKE:-make} || exit 1 + + ${MAKE:-make} install-binaries PKG_DIR='' || exit 1 + + rm -f "${PLATDIR}"/*.a +) || exit 1 + +../create_teapot "${PLATDIR}/teapot.txt" "dbus-tcl" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.5" "The DBus-Tcl project provides a Tcl interface to the dbus message bus system. It contains packages that allow Tcl programs to send and receive dbus signals, as well as invoke and respond to dbus method calls. http://dbus-tcl.sourceforge.net/" + +exit 0 Index: server/buildpkgs/dict/build.sh ================================================================== --- server/buildpkgs/dict/build.sh +++ server/buildpkgs/dict/build.sh @@ -7,10 +7,19 @@ fi if [ "${PLATFORM}" = "tcl" ]; then rm -rf out + exit 0 +fi + +# We only do anything on Tcl 8.4.x +if echo "${TCLVERS}" | grep '^8\.4\.'; then + true +else + rm -rf out + exit 0 fi VERS=8.5.2 SRC="src/tclDict-${VERS}.tar.gz"