From f9ff978c9c58d6da052d1802c680da415c5a9212 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 6 Apr 2006 01:38:54 +0000 Subject: fixed up scripts to work better for others svn path=/trunk/; revision=4817 --- scripts/checkout-developer-layout.sh | 5 ++++- scripts/nightly-build.sh | 29 +++++++++++++++++++++++++++++ scripts/update-developer-layout.sh | 24 ++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100755 scripts/nightly-build.sh create mode 100755 scripts/update-developer-layout.sh (limited to 'scripts') diff --git a/scripts/checkout-developer-layout.sh b/scripts/checkout-developer-layout.sh index c37d0a57..1a075140 100755 --- a/scripts/checkout-developer-layout.sh +++ b/scripts/checkout-developer-layout.sh @@ -37,10 +37,13 @@ fi mkdir pure-data cd pure-data -for section in abstractions doc extensions externals pd packages scripts; do +for section in abstractions doc extensions externals packages scripts; do cvs checkout $section done +# For Pd-extended, "pd" needs to be a specific version currently, not HEAD +cvs checkout -r v0-39-2 pd + # Gem is still separate echo -e "\n\n The password to the Gem anonymous CVS access is blank, so just press Enter\n" export CVSROOT=:pserver:anonymous@cvs.gem.iem.at:/cvsroot/pd-gem diff --git a/scripts/nightly-build.sh b/scripts/nightly-build.sh new file mode 100755 index 00000000..622aa971 --- /dev/null +++ b/scripts/nightly-build.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/.. +UNAME=`uname -s` +RECIPIENTS="hans@eds.org" +DATE=`date +%Y-%m-%d_%H.%M.%S` +LOGFILE="/tmp/pd-autobuild-${DATE}.txt" + +cd $cvs_root_dir +scripts/update-developer-layout.sh + +# Apple Mac OS X +if [ "${UNAME}" == "Darwin" ]; then +cd packages/darwin_app +fi + +# GNU/Linux +if [ "${UNAME}" == "Darwin" ]; then +cd packages/linux_make +fi + +# MinGW for MS Windows +if [ "${UNAME}" == "MINGW32_NT-5.1" ]; then +cd packages/win32_inno +fi + +make install && make package > $LOGFILE 2>&1 + +cat $LOGFILE | mail -s "Pd Autobuild Log on $UNAME - $DATE" $RECIPIENTS diff --git a/scripts/update-developer-layout.sh b/scripts/update-developer-layout.sh new file mode 100755 index 00000000..0247fcb8 --- /dev/null +++ b/scripts/update-developer-layout.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# this script updates all code from CVS in the standard developer's layout. +# + +# Usage: just run it and it should find things if you have your stuff layed +# out in the standard dev layout, or used checkout-developer-layout.sh to +# checkout your pd source tree + +# Be aware that SourceForge's anonymous CVS server is generally 24 hours +# behind the authenticated CVS. + +cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/.. + +cd $cvs_root_dir + +# don't update the "pd" tree yet, since Pd-extended is still built against a +# static tag, and not HEAD +for section in abstractions doc extensions externals packages scripts Gem GemLibs; do + echo "$section" + cd $section + cvs up + cd .. +done -- cgit v1.2.1