jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalka...@apache.org
Subject svn commit: r760555 - /incubator/jspwiki/scripts/make_jspwiki_nightly.sh
Date Tue, 31 Mar 2009 18:07:03 GMT
Author: jalkanen
Date: Tue Mar 31 18:07:02 2009
New Revision: 760555

URL: http://svn.apache.org/viewvc?rev=760555&view=rev
Log:
Added first version.

Added:
    incubator/jspwiki/scripts/make_jspwiki_nightly.sh   (with props)

Added: incubator/jspwiki/scripts/make_jspwiki_nightly.sh
URL: http://svn.apache.org/viewvc/incubator/jspwiki/scripts/make_jspwiki_nightly.sh?rev=760555&view=auto
==============================================================================
--- incubator/jspwiki/scripts/make_jspwiki_nightly.sh (added)
+++ incubator/jspwiki/scripts/make_jspwiki_nightly.sh Tue Mar 31 18:07:02 2009
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+#  This script is used to build the JSPWiki nightly builds.
+#  Assumptions: java and ant are available in the classpath. Also sha1 program is required.
+#
+#  Puts the resulting nightly src and bin build in your public_html/JSPWiki/nightly directory.
+#
+
+BUILDDIR=/tmp/jspwiki-nightly/
+PUBLIC_HTML=$HOME/public_html/JSPWiki/
+
+rm -rf ${BUILDDIR}
+mkdir -p ${BUILDDIR}
+cd ${BUILDDIR}
+svn export http://svn.apache.org/repos/asf/incubator/jspwiki/trunk JSPWiki
+
+cd JSPWiki
+ant dist -Dbuild.properties=$HOME/Projects/jspwiki_nightly_build.properties
+
+WIKIVER=`java -cp build/JSPWiki.jar org.apache.wiki.Release`
+
+echo "Building release for JSPWiki $WIKIVER"
+
+BUILDDATE=`date +%d%m%y`
+DESTDIR=${PUBLIC_HTML}/nightly/
+DESTBIN=jspwiki-${WIKIVER}-${BUILDDATE}-bin.zip
+DESTSRC=jspwiki-${WIKIVER}-${BUILDDATE}-src.zip
+
+mkdir -p ${DESTDIR}
+rm -rf ${DESTDIR}/*
+cp -a releases/JSPWiki-bin.zip ${DESTDIR}/${DESTBIN}
+cp -a releases/JSPWiki-src.zip ${DESTDIR}/${DESTSRC}
+
+cd ${DESTDIR}
+ln -s ${DESTBIN} JSPWiki-latest.zip
+sha1 < ${DESTBIN} > JSPWiki-bin-latest.sha1 
+sha1 < ${DESTSRC} > JSPWiki-src-latest.sha1
+
+jar xf ${DESTBIN}
+
+mv JSPWiki/README JSPWiki/ReleaseNotes JSPWiki/ChangeLog . && rm -rf JSPWiki
+
+chmod 755 *
+
+rm -rf ${BUILDDIR}
+

Propchange: incubator/jspwiki/scripts/make_jspwiki_nightly.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message