X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=build.xml;h=4dbd098e1468fd18569e88d50c960055cb638207;hb=95a1db611fe9566fcaa98e05bc14aa01124ad650;hp=4e53a6d733a349a3a4e06fda7bd16b84ec119400;hpb=c9e1bd707806233eefcaa5497a7a99a95ae3da51;p=org.ibex.core.git
diff --git a/build.xml b/build.xml
index 4e53a6d..4dbd098 100644
--- a/build.xml
+++ b/build.xml
@@ -7,7 +7,7 @@
-
+
@@ -76,7 +76,13 @@
-
+
+
+
+
+
+
+
@@ -87,21 +93,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
-
-
-
-
-
-
-
-
-
-
@@ -122,15 +113,19 @@
-
-
-
+
+
+
/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/