From ee14de5ff3a1bc9a92c4b2c3e0b0d8cef433938d Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:47:12 +0000 Subject: [PATCH] 2002/05/16 04:08:01 darcs-hash:20040130064712-2ba56-73ae957ace1282964bdd8a95c6744ad2aaf7df11.gz --- build.xml | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) 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/ -- 1.7.10.4