Update of /cvsroot/pure-data/scripts/auto-build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18323
Modified Files: Tag: branch-v0-39-2-extended pure-data-cvs-rsync-checkout run-automated-builder Added Files: Tag: branch-v0-39-2-extended pd-extended-release-auto-builder.sh Log Message: merged new scripts from HEAD
--- NEW FILE: pd-extended-release-auto-builder.sh --- #!/bin/sh # this script is the first attempt to have an automated updater and builder
# the source dir where this script is SCRIPT_DIR=`echo $0 | sed 's|(.*)/.*$|\1|'` . $SCRIPT_DIR/auto-build-common
# the name of this script SCRIPT=`echo $0| sed 's|.*/(.*)|\1|g'`
BUILD_DIR=. case $SYSTEM in linux) BUILD_DIR=linux_make echo "Configuring to use $BUILD_DIR on GNU/Linux" ;; darwin) BUILD_DIR=darwin_app echo "Configuring to use $BUILD_DIR on Darwin/Mac OS X" ;; mingw*) BUILD_DIR=win32_inno echo "Configuring to use $BUILD_DIR on MinGW/Windows" ;; cygwin*) BUILD_DIR=win32_inno echo "Configuring to use $BUILD_DIR on Cygwin/Windows" ;; *) echo "ERROR: Platform $SYSTEM not supported!" exit ;; esac
# convert into absolute path cd `echo $0 | sed 's|(.*)/.*$|\1|'`/../.. auto_build_root_dir=`pwd` echo "root: $auto_build_root_dir"
# let rsync handle the cleanup with --delete rsync -a --delete rsync://128.238.56.50/distros/pd-extended-release/ \ ${auto_build_root_dir}/
cd "${auto_build_root_dir}/packages/$BUILD_DIR" make -C "${auto_build_root_dir}/packages" patch make test_locations make package_clean make install && make package
upload_build () { platform_folder=$1 build_folder=$2 archive_format=$3
archive="${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format}"
echo "upload specs $1 $2 $3" echo "Uploading $archive" upload_filename=`ls -1 ${archive} | sed "s|.*/(.*).${archive_format}|\1-${HOSTNAME}.${archive_format}|"` case $SYSTEM in mingw*) test -e ${archive} && /c/cygwin/bin/sh --login -c \ "rsync -a ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename}" &&\ echo SUCCESS ;; *) test -e ${archive} && rsync -a ${archive} \ rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \ echo SUCCESS ;; esac }
case $SYSTEM in linux) upload_build linux_make build tar.bz2 ;; darwin) upload_build darwin_app . dmg ;; mingw*) upload_build win32_inno Output exe ;; cygwin*) upload_build win32_inno Output exe ;; esac
Index: pure-data-cvs-rsync-checkout =================================================================== RCS file: /cvsroot/pure-data/scripts/auto-build/pure-data-cvs-rsync-checkout,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** pure-data-cvs-rsync-checkout 18 Oct 2006 15:42:12 -0000 1.9 --- pure-data-cvs-rsync-checkout 11 Dec 2006 06:39:05 -0000 1.9.2.1 *************** *** 10,32 **** LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
! touch $LOGFILE ! ! # extended ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "pd-extended" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! su pd -c "/home/pd/rsync/pd-extended/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1
! # devel ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "pd-devel" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! su pd -c "cd /home/pd/rsync/pd-devel/pd && cvs up -Pd" >> $LOGFILE 2>&1 ! su pd -c "/home/pd/rsync/pd-devel/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1
! # main ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "pd-main" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! su pd -c "cd /home/pd/rsync/pd-main/pd && cvs up -APd" >> $LOGFILE 2>&1 ! su pd -c "/home/pd/rsync/pd-main/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1 --- 10,26 ---- LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
! function update_distro () ! { ! distro=$1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "$distro" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! /home/pd/rsync/$distro/scripts/update-developer-layout.sh >> $LOGFILE 2>&1 ! }
! touch $LOGFILE
! update_distro pd-extended ! update_distro pd-extended-release ! update_distro pd-main ! update_distro pd-devel
Index: run-automated-builder =================================================================== RCS file: /cvsroot/pure-data/scripts/auto-build/run-automated-builder,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** run-automated-builder 28 Nov 2006 14:52:14 -0000 1.15 --- run-automated-builder 11 Dec 2006 06:39:05 -0000 1.15.2.1 *************** *** 37,40 **** --- 37,41 ---- run_build_script pd-main run_build_script pd-extended + run_build_script pd-extended-release #run_build_script pd-devel