#!/bin/sh : ${BASE=/Builds/R-builds/nightly} : ${DEP="${BASE}/deploy"} : ${RDIRS=`cat ${BASE}/builds`} OS=snowleopard ARS="i386 ppc x86_64 ppc64 universal" for RD in ${RDIRS}; do echo " - ${RD}" mkdir -p "${DEP}/${OS}/${RD}" 2>/dev/null # mkdir -p "${DEP}/${OS}/${RD}/universal" 2>/dev/null # mv ${BASE}/${RD}-*.dmg ${DEP}/${OS}/${RD}/universal/ 2>/dev/null # mv ${BASE}/${RD}-${OS}*.tar.gz ${DEP}/${OS}/${RD}/universal/ 2>/dev/null # gver=`sed -n 's/\([0-9]\{1,\}\.[0-9]\{1,\}\).*/\1/p' ${BASE}/${RD}/VERSION 2>/dev/null` # if [ -n "${gver}" ]; then # mv ${BASE}/R-GUI-*-${gver}-*.* ${DEP}/${OS}/${RD}/universal/ 2>/dev/null # fi for ARCH in ${ARS}; do if [ -e "$BASE/${OS}-$ARCH" ]; then echo " ${ARCH}" TDIR="${DEP}/${OS}/${RD}/${ARCH}" mkdir -p "${TDIR}" 2>/dev/null rm -f ${TDIR}/FAILED ${TDIR}/SUCCESS for f in SUCCESS FAILED check.err conf.err build.err check conf build build.log; do if [ -e "${BASE}/${OS}-${ARCH}/${RD}.$f" ]; then cp "${BASE}/${OS}-${ARCH}/${RD}.$f" "${TDIR}/$f" fi done if [ -e "${BASE}/${OS}-${ARCH}/build.log" ]; then cp "${BASE}/${OS}-${ARCH}/build.log" "${TDIR}/build.log" fi fi done done