X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=build.xml;h=50a8df4699afa6d21dbf246e7e45646da13349a7;hb=3503f639cc10b863dee5718ab8cba42f1a370b61;hp=98fac385ba317abe163cec6d847e5edd8a025bfc;hpb=ede6697137df81fc81fa4bdbcd35954206b79919;p=org.ibex.core.git
diff --git a/build.xml b/build.xml
index 98fac38..50a8df4 100644
--- a/build.xml
+++ b/build.xml
@@ -7,19 +7,10 @@
-
-
-
-
-
-
-
-
-
@@ -30,24 +21,10 @@
find . -name \*\~ | xargs rm -f
find . -name \#\*\# | xargs rm -f
- rm -rf bin-* bin xwt/html/dist/
+ rm -rf bin-* bin
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -67,7 +44,6 @@
-
@@ -75,132 +51,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cvs commit -m "automatically updated build-id via org.xwt.tasks.BuildIdTask" build.properties
-
-
-
-
-
-
-
-
-
-
-
-
-
- /home/megacz/bin/sign/sign ${build-id}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- # 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
- mkdir -p /xwt
- mkdir -p /xwt-new
- cd /xwt
- tar cf - . | tar xf - -C /xwt-new
-
-
-
- # tidy up and rsync our changes
- find www/html -name \*~ | xargs rm -f
- rm www/html/tmp.[0-9]
- rsync -Pv --delete --exclude=html/dist/\* -rze ssh www/ root@${host}:/xwt-new/www/
- rsync -u -Pv -rze ssh www/html/dist/ root@${host}:/xwt-new/www/html/dist/
-
-
-
-
- # stop services
- /etc/init.d/xwt-cluster stop
-
- 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/
-
- ln -s /xwt/www/webapps /xwt/www/webapps/ROOT
- ln -s /xwt/www/webapps /xwt/www/webapps/WEB-INF
- ln -s /xwt/www/launch /xwt/www/launch/ROOT
- ln -s /xwt/www/launch /xwt/www/launch/WEB-INF
- ln -s /xwt/www/wiki /xwt/www/wiki/ROOT
- ln -s /xwt/www/wiki /xwt/www/wiki/WEB-INF
-
- test ${host} == "xwt-staging.org" && echo -e "User-agent: *\nDisallow: /\n" > /xwt/www/html/robots.txt
- echo ${staging-flag} > /xwt/staging-flag
-
- /etc/init.d/xwt-cluster start
-
-
-
-
-