Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | ## Script to build and test the latest python from svn. It basically |
| 4 | ## does this: |
| 5 | ## svn up ; ./configure ; make ; make test ; make install ; cd Doc ; make |
| 6 | ## |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 7 | ## Logs are kept and rsync'ed to the webhost. If there are test failure(s), |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 8 | ## information about the failure(s) is mailed. |
| 9 | ## |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 10 | ## The user must be a member of the webmaster group locally and on webhost. |
| 11 | ## |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 12 | ## This script is run on the PSF's machine as user neal via crontab. |
| 13 | ## |
| 14 | ## Yes, this script would probably be easier in python, but then |
| 15 | ## there's a bootstrap problem. What if Python doesn't build? |
| 16 | ## |
| 17 | ## This script should be fairly clean Bourne shell, ie not too many |
| 18 | ## bash-isms. We should try to keep it portable to other Unixes. |
| 19 | ## Even though it will probably only run on Linux. I'm sure there are |
| 20 | ## several GNU-isms currently (date +%s and readlink). |
| 21 | ## |
| 22 | ## Perhaps this script should be broken up into 2 (or more) components. |
| 23 | ## Building doc is orthogonal to the rest of the python build/test. |
| 24 | ## |
| 25 | |
| 26 | ## FIXME: we should detect test hangs (eg, if they take more than 45 minutes) |
| 27 | |
| 28 | ## FIXME: we should run valgrind |
| 29 | ## FIXME: we should run code coverage |
| 30 | |
| 31 | ## Utilities invoked in this script include: |
Neal Norwitz | d3a5867 | 2006-01-02 23:22:41 +0000 | [diff] [blame] | 32 | ## basename, date, dirname, expr, grep, readlink, uname |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 33 | ## cksum, make, mutt, rsync, svn |
| 34 | |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 35 | ## remember where did we started from |
| 36 | DIR=`dirname $0` |
| 37 | if [ "$DIR" = "" ]; then |
| 38 | DIR="." |
| 39 | fi |
| 40 | |
| 41 | ## make directory absolute |
| 42 | DIR=`readlink -f $DIR` |
Neal Norwitz | d3a5867 | 2006-01-02 23:22:41 +0000 | [diff] [blame] | 43 | FULLPATHNAME="$DIR/`basename $0`" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 44 | ## we want Misc/.. |
| 45 | DIR=`dirname $DIR` |
| 46 | |
| 47 | ## Configurable options |
| 48 | |
| 49 | FAILURE_SUBJECT="Python Regression Test Failures" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 50 | #FAILURE_MAILTO="YOUR_ACCOUNT@gmail.com" |
Martin v. Löwis | 924eca7 | 2008-12-05 07:20:46 +0000 | [diff] [blame] | 51 | FAILURE_MAILTO="python-checkins@python.org" |
Guido van Rossum | d8faa36 | 2007-04-27 19:54:29 +0000 | [diff] [blame] | 52 | #FAILURE_CC="optional--uncomment and set to desired address" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 53 | |
| 54 | REMOTE_SYSTEM="neal@dinsdale.python.org" |
Georg Brandl | 4f3359f | 2008-12-05 07:32:39 +0000 | [diff] [blame] | 55 | REMOTE_DIR="/data/ftp.python.org/pub/docs.python.org/dev/py3k" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 56 | RESULT_FILE="$DIR/build/index.html" |
Benjamin Peterson | 9ddc2d9 | 2009-06-27 22:00:30 +0000 | [diff] [blame] | 57 | INSTALL_DIR="/tmp/python-test-3.2/local" |
Georg Brandl | 5812bdf | 2010-01-03 14:30:52 +0000 | [diff] [blame] | 58 | RSYNC_OPTS="-C -e ssh -rlogD" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 59 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 60 | # Always run the installed version of Python. |
| 61 | PYTHON=$INSTALL_DIR/bin/python |
| 62 | |
| 63 | # Python options and regression test program that should always be run. |
Georg Brandl | e1b5ac6 | 2008-06-04 13:06:58 +0000 | [diff] [blame] | 64 | REGRTEST_ARGS="-E $INSTALL_DIR/lib/python3.0/test/regrtest.py" |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 65 | |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 66 | REFLOG="build/reflog.txt.out" |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 67 | # These tests are not stable and falsely report leaks sometimes. |
Neal Norwitz | f415d5f | 2006-02-19 18:48:19 +0000 | [diff] [blame] | 68 | # The entire leak report will be mailed if any test not in this list leaks. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 69 | # Note: test_XXX (none currently) really leak, but are disabled |
| 70 | # so we don't send spam. Any test which really leaks should only |
| 71 | # be listed here if there are also test cases under Lib/test/leakers. |
Collin Winter | 9a4414d | 2009-05-18 22:32:26 +0000 | [diff] [blame] | 72 | LEAKY_TESTS="test_(asynchat|cmd_line|docxmlrpc|dumbdbm|file|ftplib|httpservers|imaplib|popen2|socket|smtplib|sys|telnetlib|threadedtempfile|threading|threadsignals|xmlrpc)" |
Guido van Rossum | 5205653 | 2007-05-10 14:04:07 +0000 | [diff] [blame] | 73 | |
| 74 | # These tests always fail, so skip them so we don't get false positives. |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 75 | _ALWAYS_SKIP="" |
Guido van Rossum | 5205653 | 2007-05-10 14:04:07 +0000 | [diff] [blame] | 76 | ALWAYS_SKIP="-x $_ALWAYS_SKIP" |
Neal Norwitz | f415d5f | 2006-02-19 18:48:19 +0000 | [diff] [blame] | 77 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 78 | # Skip these tests altogether when looking for leaks. These tests |
| 79 | # do not need to be stored above in LEAKY_TESTS too. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 80 | # test_logging causes hangs, skip it. |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 81 | # KBK 21Apr09: test_httpservers causes hangs, skip for now. |
| 82 | LEAKY_SKIPS="-x test_compiler test_logging test_httpservers" |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 83 | |
| 84 | # Change this flag to "yes" for old releases to only update/build the docs. |
Neal Norwitz | 88b78d8 | 2006-02-14 08:14:16 +0000 | [diff] [blame] | 85 | BUILD_DISABLED="no" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 86 | |
| 87 | ## utility functions |
| 88 | current_time() { |
| 89 | date +%s |
| 90 | } |
| 91 | |
| 92 | update_status() { |
| 93 | now=`current_time` |
| 94 | time=`expr $now - $3` |
| 95 | echo "<li><a href=\"$2\">$1</a> <font size=\"-1\">($time seconds)</font></li>" >> $RESULT_FILE |
| 96 | } |
| 97 | |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 98 | place_summary_first() { |
| 99 | testf=$1 |
| 100 | sed -n '/^[0-9][0-9]* tests OK\./,$p' < $testf \ |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 101 | | egrep -v '\[[0-9]+ refs\]' > $testf.tmp |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 102 | echo "" >> $testf.tmp |
| 103 | cat $testf >> $testf.tmp |
| 104 | mv $testf.tmp $testf |
| 105 | } |
| 106 | |
| 107 | count_failures () { |
| 108 | testf=$1 |
| 109 | n=`grep -ic " failed:" $testf` |
| 110 | if [ $n -eq 1 ] ; then |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 111 | n=`grep " failed:" $testf | sed -e 's/ .*//'` |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 112 | fi |
| 113 | echo $n |
| 114 | } |
| 115 | |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 116 | mail_on_failure() { |
| 117 | if [ "$NUM_FAILURES" != "0" ]; then |
Guido van Rossum | d8faa36 | 2007-04-27 19:54:29 +0000 | [diff] [blame] | 118 | dest=$FAILURE_MAILTO |
| 119 | # FAILURE_CC is optional. |
| 120 | if [ "$FAILURE_CC" != "" ]; then |
| 121 | dest="$dest -c $FAILURE_CC" |
| 122 | fi |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 123 | if [ "x$3" != "x" ] ; then |
| 124 | (echo "More important issues:" |
| 125 | echo "----------------------" |
| 126 | egrep -v "$3" < $2 |
| 127 | echo "" |
| 128 | echo "Less important issues:" |
| 129 | echo "----------------------" |
| 130 | egrep "$3" < $2) |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 131 | else |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 132 | cat $2 |
| 133 | fi | mutt -s "$FAILURE_SUBJECT $1 ($NUM_FAILURES)" $dest |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 134 | fi |
| 135 | } |
| 136 | |
| 137 | ## setup |
| 138 | cd $DIR |
Georg Brandl | 5812bdf | 2010-01-03 14:30:52 +0000 | [diff] [blame] | 139 | make clobber > /dev/null 2>&1 |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 140 | cp -p Modules/Setup.dist Modules/Setup |
| 141 | # But maybe there was no Makefile - we are only building docs. Clear build: |
| 142 | rm -rf build/ |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 143 | mkdir -p build |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 144 | rm -rf $INSTALL_DIR |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 145 | ## get the path we are building |
| 146 | repo_path=$(grep "url=" .svn/entries | sed -e s/\\W*url=// -e s/\"//g) |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 147 | |
| 148 | ## create results file |
| 149 | TITLE="Automated Python Build Results" |
Neal Norwitz | b896759 | 2006-01-16 04:37:22 +0000 | [diff] [blame] | 150 | echo "<html>" >> $RESULT_FILE |
| 151 | echo " <head>" >> $RESULT_FILE |
| 152 | echo " <title>$TITLE</title>" >> $RESULT_FILE |
| 153 | echo " <meta http-equiv=\"refresh\" content=\"43200\">" >> $RESULT_FILE |
| 154 | echo " </head>" >> $RESULT_FILE |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 155 | echo "<body>" >> $RESULT_FILE |
| 156 | echo "<h2>Automated Python Build Results</h2>" >> $RESULT_FILE |
| 157 | echo "<table>" >> $RESULT_FILE |
| 158 | echo " <tr>" >> $RESULT_FILE |
| 159 | echo " <td>Built on:</td><td>`date`</td>" >> $RESULT_FILE |
| 160 | echo " </tr><tr>" >> $RESULT_FILE |
| 161 | echo " <td>Hostname:</td><td>`uname -n`</td>" >> $RESULT_FILE |
| 162 | echo " </tr><tr>" >> $RESULT_FILE |
| 163 | echo " <td>Platform:</td><td>`uname -srmpo`</td>" >> $RESULT_FILE |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 164 | echo " </tr><tr>" >> $RESULT_FILE |
| 165 | echo " <td>URL:</td><td>$repo_path</td>" >> $RESULT_FILE |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 166 | echo " </tr>" >> $RESULT_FILE |
| 167 | echo "</table>" >> $RESULT_FILE |
| 168 | echo "<ul>" >> $RESULT_FILE |
| 169 | |
| 170 | ## update, build, and test |
| 171 | ORIG_CHECKSUM=`cksum $FULLPATHNAME` |
| 172 | F=svn-update.out |
| 173 | start=`current_time` |
| 174 | svn update >& build/$F |
| 175 | err=$? |
| 176 | update_status "Updating" "$F" $start |
Neal Norwitz | 88b78d8 | 2006-02-14 08:14:16 +0000 | [diff] [blame] | 177 | if [ $err = 0 -a "$BUILD_DISABLED" != "yes" ]; then |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 178 | ## FIXME: we should check if this file has changed. |
| 179 | ## If it has changed, we should re-run the script to pick up changes. |
| 180 | if [ "$ORIG_CHECKSUM" != "$ORIG_CHECKSUM" ]; then |
| 181 | exec $FULLPATHNAME $@ |
| 182 | fi |
| 183 | |
| 184 | F=svn-stat.out |
| 185 | start=`current_time` |
| 186 | svn stat >& build/$F |
| 187 | ## ignore some of the diffs |
| 188 | NUM_DIFFS=`egrep -vc '^. (@test|db_home|Lib/test/(regrtest\.py|db_home))$' build/$F` |
| 189 | update_status "svn stat ($NUM_DIFFS possibly important diffs)" "$F" $start |
| 190 | |
| 191 | F=configure.out |
| 192 | start=`current_time` |
| 193 | ./configure --prefix=$INSTALL_DIR --with-pydebug >& build/$F |
| 194 | err=$? |
| 195 | update_status "Configuring" "$F" $start |
| 196 | if [ $err = 0 ]; then |
| 197 | F=make.out |
| 198 | start=`current_time` |
| 199 | make >& build/$F |
| 200 | err=$? |
| 201 | warnings=`grep warning build/$F | egrep -vc "te?mpnam(_r|)' is dangerous,"` |
| 202 | update_status "Building ($warnings warnings)" "$F" $start |
| 203 | if [ $err = 0 ]; then |
Neal Norwitz | d19a4d4 | 2006-01-02 22:10:10 +0000 | [diff] [blame] | 204 | ## make install |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 205 | F=make-install.out |
| 206 | start=`current_time` |
| 207 | make install >& build/$F |
| 208 | update_status "Installing" "$F" $start |
| 209 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 210 | if [ ! -x $PYTHON ]; then |
Guido van Rossum | 5205653 | 2007-05-10 14:04:07 +0000 | [diff] [blame] | 211 | ln -s ${PYTHON}3.* $PYTHON |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 212 | fi |
| 213 | |
Neal Norwitz | d19a4d4 | 2006-01-02 22:10:10 +0000 | [diff] [blame] | 214 | ## make and run basic tests |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 215 | F=make-test.out |
| 216 | start=`current_time` |
Benjamin Peterson | a28e702 | 2010-01-09 18:53:06 +0000 | [diff] [blame] | 217 | $PYTHON $REGRTEST_ARGS -W -u urlfetch >& build/$F |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 218 | NUM_FAILURES=`count_failures build/$F` |
| 219 | place_summary_first build/$F |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 220 | update_status "Testing basics ($NUM_FAILURES failures)" "$F" $start |
Neal Norwitz | 02c408d | 2006-01-03 02:18:01 +0000 | [diff] [blame] | 221 | mail_on_failure "basics" build/$F |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 222 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 223 | F=make-test-opt.out |
| 224 | start=`current_time` |
Benjamin Peterson | a28e702 | 2010-01-09 18:53:06 +0000 | [diff] [blame] | 225 | $PYTHON -O $REGRTEST_ARGS -W -u urlfetch >& build/$F |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 226 | NUM_FAILURES=`count_failures build/$F` |
| 227 | place_summary_first build/$F |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 228 | update_status "Testing opt ($NUM_FAILURES failures)" "$F" $start |
| 229 | mail_on_failure "opt" build/$F |
| 230 | |
Neal Norwitz | d19a4d4 | 2006-01-02 22:10:10 +0000 | [diff] [blame] | 231 | ## run the tests looking for leaks |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 232 | F=make-test-refleak.out |
| 233 | start=`current_time` |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 234 | ## ensure that the reflog exists so the grep doesn't fail |
| 235 | touch $REFLOG |
Alexandre Vassalotti | e223eb8 | 2009-07-29 20:12:15 +0000 | [diff] [blame] | 236 | $PYTHON $REGRTEST_ARGS -R 4:3:$REFLOG -u network $LEAKY_SKIPS >& build/$F |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 237 | LEAK_PAT="($LEAKY_TESTS|sum=0)" |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 238 | NUM_FAILURES=`egrep -vc "$LEAK_PAT" $REFLOG` |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 239 | place_summary_first build/$F |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 240 | update_status "Testing refleaks ($NUM_FAILURES failures)" "$F" $start |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 241 | mail_on_failure "refleak" $REFLOG "$LEAK_PAT" |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 242 | |
Neal Norwitz | d19a4d4 | 2006-01-02 22:10:10 +0000 | [diff] [blame] | 243 | ## now try to run all the tests |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 244 | F=make-testall.out |
| 245 | start=`current_time` |
Neal Norwitz | d19a4d4 | 2006-01-02 22:10:10 +0000 | [diff] [blame] | 246 | ## skip curses when running from cron since there's no terminal |
| 247 | ## skip sound since it's not setup on the PSF box (/dev/dsp) |
Benjamin Peterson | a28e702 | 2010-01-09 18:53:06 +0000 | [diff] [blame] | 248 | $PYTHON $REGRTEST_ARGS -W -uall -x test_curses test_linuxaudiodev test_ossaudiodev &_ALWAYS_SKIP >& build/$F |
Christian Heimes | a156e09 | 2008-02-16 07:38:31 +0000 | [diff] [blame] | 249 | NUM_FAILURES=`count_failures build/$F` |
| 250 | place_summary_first build/$F |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 251 | update_status "Testing all except curses and sound ($NUM_FAILURES failures)" "$F" $start |
Neal Norwitz | d3a5867 | 2006-01-02 23:22:41 +0000 | [diff] [blame] | 252 | mail_on_failure "all" build/$F |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 253 | fi |
| 254 | fi |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | ## make doc |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 259 | cd $DIR/Doc |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 260 | F="make-doc.out" |
| 261 | start=`current_time` |
Georg Brandl | 5812bdf | 2010-01-03 14:30:52 +0000 | [diff] [blame] | 262 | make clean > ../build/$F 2>&1 |
| 263 | make checkout html >> ../build/$F 2>&1 |
| 264 | err=$? |
Neal Norwitz | 461aa5b | 2006-01-02 20:07:16 +0000 | [diff] [blame] | 265 | update_status "Making doc" "$F" $start |
| 266 | if [ $err != 0 ]; then |
| 267 | NUM_FAILURES=1 |
| 268 | mail_on_failure "doc" ../build/$F |
| 269 | fi |
| 270 | |
| 271 | echo "</ul>" >> $RESULT_FILE |
| 272 | echo "</body>" >> $RESULT_FILE |
| 273 | echo "</html>" >> $RESULT_FILE |
| 274 | |
| 275 | ## copy results |
Georg Brandl | 9920437 | 2010-03-12 21:29:28 +0000 | [diff] [blame] | 276 | ## (not used anymore, the daily build is now done directly on the server) |
| 277 | #chgrp -R webmaster build/html |
| 278 | #chmod -R g+w build/html |
| 279 | #rsync $RSYNC_OPTS build/html/* $REMOTE_SYSTEM:$REMOTE_DIR |
| 280 | #cd ../build |
| 281 | #rsync $RSYNC_OPTS index.html *.out $REMOTE_SYSTEM:$REMOTE_DIR/results/ |