You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by cr...@apache.org on 2006/01/06 23:16:52 UTC

svn commit: r366579 - /jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt

Author: craigmcc
Date: Fri Jan  6 14:16:49 2006
New Revision: 366579

URL: http://svn.apache.org/viewcvs?rev=366579&view=rev
Log:
Snapshot of the nightly build script that currently runs on my machine
to build the Jakarta Commons artifacts.

Added:
    jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt   (with props)

Added: jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt?rev=366579&view=auto
==============================================================================
--- jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt (added)
+++ jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt Fri Jan  6 14:16:49 2006
@@ -0,0 +1,200 @@
+#! /bin/sh
+
+# This is a snapshot of the nightly build script that currently runs
+# for Jakarta Commons, by Craig McClanahan <craigmcc AT apache.org>.
+# Feel free to use it as the beginnings for thinking about what a zone
+# hosted nightly build environment might look like.
+#
+# UPLOAD PREREQUISITE:  In order to run unattended, the username that
+# this script runs under must have SSH keys configured for login with
+# no passwords.  That's probably not what we want on a public server,
+# so some other strategy (rsync) might be better to get the build
+# artifacts onto the web server.
+
+# =============================================================================
+# buildCommons - Build and Upload Jakarta Nightly Commons Distributions
+# =============================================================================
+
+
+export BUILD_HOME=/home/craigmcc/Build
+export CLASSPATH=.
+export TSTAMP=`date +%Y%m%d`
+
+echo \<html\>
+echo \<head\>
+echo \<title\>Jakarta COMMONS Build And Upload For $TSTAMP\</title\>
+echo \</head\>
+echo \<body bgcolor="white"\>
+
+echo \<h2\>Build Environment Settings\</h2\>
+echo \<pre\>
+echo CLASSPATH = $CLASSPATH
+echo PATH = $PATH
+echo \</pre\>
+
+
+# =============================================================================
+#       D o w n l o a d   R e p o s i t o r i e s
+# =============================================================================
+
+echo \<h1\>Update Commons Proper Sources\</h1\>
+echo \<pre\>
+cd $BUILD_HOME/jakarta/commons
+svn checkout http://svn.apache.org/repos/asf/jakarta/commons/trunks-proper
+echo \</pre\>\<br\>
+
+echo \<h1\>Update Commons Sandbox Sources\</h1\>
+echo \<pre\>
+cd $BUILD_HOME/jakarta/commons
+svn checkout http://svn.apache.org/repos/asf/jakarta/commons/trunks-sandbox
+echo \</pre\>\<br\>
+
+
+# =============================================================================
+#       P r o c e s s   C o m m o n s   P a c k a g e s
+# =============================================================================
+
+
+# Respect inter-package dependencies in ordering of this list!!!
+export PACKAGES="logging discovery collections beanutils digester pool dbcp"
+export PACKAGES="$PACKAGES codec httpclient jxpath lang latka math modeler"
+export PACKAGES="$PACKAGES validator betwixt cli el fileupload jexl io"
+export PACKAGES="$PACKAGES feedparser launcher net primitives dbutils"
+export PACKAGES="$PACKAGES configuration chain daemon jelly attributes"
+export PACKAGES="$PACKAGES resources email vfs"
+
+for PACKAGE in $PACKAGES; do
+
+  echo \<h1\>Processing Commons Package $PACKAGE\</h1\>
+
+  echo \<h3\>Clean Up Previous Build\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/jakarta/commons/trunks-proper/$PACKAGE
+  ant clean
+  rm -rf $BUILD_HOME/source/commons-$PACKAGE
+  rm -rf $BUILD_HOME/upload/commons-${PACKAGE}*
+  echo \<pre\>\<br\>
+
+  echo \<h3\>Prepare Source Directory\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/jakarta/commons/trunks-proper
+  rm -rf $BUILD_HOME/source/commons-${PACKAGE}
+  mv $PACKAGE commons-${PACKAGE}
+  cp -R commons-${PACKAGE} $BUILD_HOME/source
+  mv commons-${PACKAGE} $PACKAGE
+  cd $BUILD_HOME
+  find source/commons-${PACKAGE} -name .svn -exec echo rm -rf {} \; > clean.sh
+  sh clean.sh
+  rm clean.sh
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Create Source Distribution\</h3\>
+  echo \<pre\>
+  BASENAME=$BUILD_HOME/upload/commons-$PACKAGE-src-$TSTAMP
+  cd $BUILD_HOME/source
+  tar zcf ${BASENAME}.tar.gz commons-${PACKAGE}
+  zip -q -r ${BASENAME}.zip commons-${PACKAGE}
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Compile Binary Distribution\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/jakarta/commons/trunks-proper/$PACKAGE
+  # ant dist
+  ant -Dlibdir=$HOME/.ant/repository/commons-$PACKAGE dist
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Create Binary Distribution\</h3\>
+  echo \<pre\>
+  BASENAME=$BUILD_HOME/upload/commons-$PACKAGE-$TSTAMP
+  cd $BUILD_HOME/jakarta/commons/trunks-proper/$PACKAGE
+  mv dist commons-${PACKAGE}
+  tar zcf ${BASENAME}.tar.gz commons-${PACKAGE}
+  zip -q -r ${BASENAME}.zip commons-${PACKAGE}
+  mv commons-${PACKAGE} dist
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Upload Source and Binary Distributions\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/upload
+  scp commons-$PACKAGE-$TSTAMP.* commons-$PACKAGE-src-$TSTAMP.* \
+   craigmcc@cvs.apache.org:/www/cvs.apache.org/builds/jakarta-commons/nightly/commons-$PACKAGE/
+  echo \</pre\>\<br\>
+
+done
+
+
+# =============================================================================
+#       P r o c e s s   S a n d b o x   P a c k a g e s
+# =============================================================================
+
+
+# Respect inter-package dependencies in ordering of this list!!!
+export PACKAGES="benchmark convert id pipeline proxy"
+export PACKAGES="$PACKAGES scxml services sql"
+
+
+for PACKAGE in $PACKAGES; do
+
+  echo \<h1\>Processing Sandbox Package $PACKAGE\</h1\>
+
+  echo \<h3\>Clean Up Previous Build\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/jakarta/commons/trunks-sandbox/$PACKAGE
+  ant clean
+  rm -rf $BUILD_HOME/source/commons-$PACKAGE
+  rm -rf $BUILD_HOME/upload/commons-${PACKAGE}*
+  echo \<pre\>\<br\>
+
+  echo \<h3\>Prepare Source Directory\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/jakarta/commons/trunks-sandbox
+  rm -rf $BUILD_HOME/source/commons-${PACKAGE}
+  mv $PACKAGE commons-${PACKAGE}
+  cp -R commons-${PACKAGE} $BUILD_HOME/source
+  mv commons-${PACKAGE} $PACKAGE
+  cd $BUILD_HOME
+  find source/commons-${PACKAGE} -name .svn -exec echo rm -rf {} \; > clean.sh
+  sh clean.sh
+  rm clean.sh
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Create Source Distribution\</h3\>
+  echo \<pre\>
+  BASENAME=$BUILD_HOME/upload/commons-$PACKAGE-src-$TSTAMP
+  cd $BUILD_HOME/source
+  tar zcf ${BASENAME}.tar.gz commons-${PACKAGE}
+  zip -q -r ${BASENAME}.zip commons-${PACKAGE}
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Compile Binary Distribution\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/jakarta/commons/trunks-sandbox/$PACKAGE
+  # ant dist
+  ant -Dlibdir=$HOME/.ant/repository/commons-$PACKAGE dist
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Create Binary Distribution\</h3\>
+  echo \<pre\>
+  BASENAME=$BUILD_HOME/upload/commons-$PACKAGE-$TSTAMP
+  cd $BUILD_HOME/jakarta/commons/trunks-sandbox/$PACKAGE
+  mv dist commons-${PACKAGE}
+  tar zcf ${BASENAME}.tar.gz commons-${PACKAGE}
+  zip -q -r ${BASENAME}.zip commons-${PACKAGE}
+  mv commons-${PACKAGE} dist
+  echo \</pre\>\<br\>
+
+  echo \<h3\>Upload Source and Binary Distributions\</h3\>
+  echo \<pre\>
+  cd $BUILD_HOME/upload
+  scp commons-$PACKAGE-$TSTAMP.* commons-$PACKAGE-src-$TSTAMP.* \
+   craigmcc@cvs.apache.org:/www/cvs.apache.org/builds/jakarta-commons/nightly/commons-$PACKAGE/
+  echo \</pre\>\<br\>
+
+done
+
+
+echo \<h1\>Processing Complete\</h1\>
+
+echo \</body\>
+echo \</html\>
+

Propchange: jakarta/commons/proper/commons-build/trunk/nightly-build-script.txt
------------------------------------------------------------------------------
    svn:executable = *



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org