[wp-hackers] Nightly build generation

Kitty kitty at mookitty.co.uk
Tue Nov 30 04:54:32 UTC 2004


Ok, this works, tested in gentoo/obsd:

#!/bin/sh

BUILD_DATE=$(date '+%Y-%m-%d')

if cd /tmp/build-nightly && rm -rf ./* ; then	# [1]
  cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/cafelog \
  export -D tomorrow wordpress 2>&1 > error.log
  tar -czvf wordpress-$BUILD_DATE.tar.gz wordpress/ 2>&1 >> error.log
  zip -r -9 wordpress-$BUILD_DATE wordpress/ 2>&1 >> error.log	# [2]
  scp wordpress-.* admin at wordpress.org:/nightly/ 2>&1 >> error.log
  echo "$BUILD_DATE nightly created\r\n"$(cat error.log) \
  | mail -s "Nightly build status report" matt at example.com	# [3]
else
  echo "couldn't find build dir."
fi

[1] will nuke the contents of the /tmp/build-nightly/ dir
[2] use -r instead of -R to only zip WP dir
[3] the output will be longish, but complete, no output unless error in
finding build dir to be handled by cron.
-- 
Cheers,		     Blog: http://blog.mookitty.co.uk
Kitty		     PC Repair: http://www.girltech.net
		     WP Plugins: http://mookitty.co.uk/devblog
Support proactive security: http://www.openbsd.org/orders.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/hackers_wordpress.org/attachments/20041129/4c3e121b/attachment.bin


More information about the hackers mailing list