From: megacz Date: Fri, 30 Jan 2004 06:53:10 +0000 (+0000) Subject: 2003/02/25 23:18:30 X-Git-Tag: RC3~1374 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=1bba14733d8d9374b798c8540be9056ad27cd874 2003/02/25 23:18:30 darcs-hash:20040130065310-2ba56-2ba6b1a887f1bf03707be8113e02c5514c59b439.gz --- diff --git a/Makefile b/Makefile index b5e680e..c8ec000 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ all_platforms := Win32 Linux Java2 ## Platform-Neutral ########################################################################### -.SILENT: update-build $(jikes_java_objects) .headers $(gcj_java_objects) $(all_platforms) PalmOS bin/org/xwt/builtin.xwar +.SILENT: new-release update-build $(jikes_java_objects) .headers $(gcj_java_objects) $(all_platforms) PalmOS bin/org/xwt/builtin.xwar compile: $(jikes_java_objects) bin/org/xwt/builtin.xwar @@ -61,6 +61,7 @@ update-build: cvs commit -m 'updated build' next.build echo committed. + ## GCJ-Derived Platforms ####################################################################### # if the user doesn't change gcc_path, and it's not built, then we'll try to build it @@ -133,3 +134,36 @@ PalmOS: echo "PalmOS is not yet supported" false + +## dist.xwt.org ############################################################################ + +current_build := $(shell cat next.build) + +new-release: + test `uname -n` = gosset.megacz.com || \ + (echo -e "um, new-release is only intended for use on xwt.org...\nedit the Makefile if you really know what you're doing."; false) + echo "***********************************************************" + echo "* This build is $(current_build)" + echo "***********************************************************" + + make --silent update-build + (make --silent new-release-private &> .make-new-release.out) || \ + (cat .make-new-release.out | mail -s "Build $(current_build) FAILED" cvs@xwt.org; false) + cat .make-new-release.out | \ + mail -s "Unsigned binaries of build $(current_build) are now available" cvs@xwt.org + +new-release-private: + # preserve gcc across builds so we don't have to remake it + mv gcc/Makefile Makefile.gcc + mkdir -p ~/dist.xwt.org-gcc + rm -rf gcc + ln -s ~/dist.xwt.org-gcc gcc + mv Makefile.gcc gcc/Makefile + + # build it + make all + + cp bin-Java2/xwt.jar /var/www/dist.xwt.org/xwt-$(current_build).jar.unsigned + cp bin-Win32/xwt.exe /var/www/dist.xwt.org/xwt-$(current_build).exe.unsigned + cp bin-Linux/xwt.linux /var/www/dist.xwt.org/xwt-$(current_build).linux.unsigned +