Author: biurrun Date: Wed Mar 3 17:55:27 2010 New Revision: 2103 Log: Only update the script if running as the autobuild user. This helps running the script manually during testing. Modified: trunk/tools/autobuild/pisa_autobuild Modified: trunk/tools/autobuild/pisa_autobuild ============================================================================== --- trunk/tools/autobuild/pisa_autobuild Wed Mar 3 16:46:21 2010 (r2102) +++ trunk/tools/autobuild/pisa_autobuild Wed Mar 3 17:55:27 2010 (r2103) @@ -55,7 +55,9 @@ svn co -q $SVN_REPO_URL "$CHECKOUT_DIR" # Perform a self-update if the autobuild script in the repository has changed. -if ! cmp -s "$0" "$AUTOBUILD_SCRIPT" ; then +# Only do this when running as the autobuild user so as not to interfere with +# manual testing of this script. +if test "$PISA_AUTOBUILDER" = "yes" && ! cmp -s "$0" "$AUTOBUILD_SCRIPT" ; then cp "$AUTOBUILD_SCRIPT" $0 rm -rf "$CHECKOUT_DIR" exec $0