@@ -112,12 +112,16 @@ unset TCLBUILDDIR export TCLCONFIGDIR TCLPRIVATE CFLAGS CPPFLAGS fi # Determine platform -PLATFORM="$(./platform)" -export PLATFORM +if [ -z "${FORCE_PLATFORM}" ]; then + PLATFORM="$(./platform)" + export PLATFORM +else + PLATFORM="${FORCE_PLATFORM}" +fi # Build all appropriate directories faileddirs="" for dir in */; do export dir @@ -166,11 +170,10 @@ if [ -n "${faileddirs}" ]; then echo "The following failed to build:${faileddirs}" fi # Create tarfile of built packages -PLATFORM="$(./platform)" DATECODE="$(date +%Y%m%d%H%M)" OUTFILEBASE="tclpkgs-${PLATFORM}-${DATECODE}" tar -cf - */out | bzip2 -9c > "${OUTFILEBASE}.tar.bz2" exit 0