X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=build.xml;h=4dbd098e1468fd18569e88d50c960055cb638207;hb=ee14de5ff3a1bc9a92c4b2c3e0b0d8cef433938d;hp=ad6fcea163bf12510e7fc33ff372340c16a932a3;hpb=e57ffbfe8c32c120fa7c2915a8481d994a69927e;p=org.ibex.core.git diff --git a/build.xml b/build.xml index ad6fcea..4dbd098 100644 --- a/build.xml +++ b/build.xml @@ -7,7 +7,7 @@ - + @@ -76,7 +76,13 @@ - + + + + + + + @@ -85,21 +91,6 @@ - - # throw on the prefix/suffix where needed - for A in `find www/html -name \*.html_` - do (cat www/html/prefix.html; cat $A; cat www/html/suffix.html; cat "$A"_ 2>/dev/null; cat www/html/tagline.html) > `echo $A | sed s/_\$//g` - done - - - - - - - - - - @@ -124,13 +115,17 @@ - + /home/megacz/bin/sign/sign ${build-id} - + @@ -142,12 +137,21 @@ excludes="org/xwt/mail/main.xwt" /> + + + + # throw on the prefix/suffix where needed + for A in `find www/html -name \*.html_` + do (cat www/html/prefix.html; cat $A; cat www/html/suffix.html; cat "$A"_ 2>/dev/null; cat www/html/tagline.html) > `echo $A | sed s/_\$//g` + done + + # first, clone the currently running copy of xwt, so we can use rsync to save bandwidth rm -rf /xwt-new @@ -169,9 +173,10 @@ /sbin/start-stop-daemon --stop --pidfile /var/log/xwt/apache.pid --exec /usr/sbin/apache /sbin/start-stop-daemon --stop --pidfile /var/log/xwt/tomcat.pid --user www-data - rm -rf /xwt-old - mv /xwt /xwt-old + rm -rf /xwt-`date +%d-%b-%H:%M` + mv /xwt /xwt-`date +%d-%b-%H:%M` mv /xwt-new /xwt + find /xwt-* -prune -type d -mtime +10 | xargs rm -rf mkdir /var/log/xwt &>/dev/null chown www-data /var/log/xwt/