notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2787 - in qa: magic metro tools transit transit/2450
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2787 - in qa: magic metro tools transit transit/2450
- Date: Wed, 08 Jun 2005 08:29:57 -0400
Author: niclas AT hedhman.org
Date: Wed Jun 8 08:29:55 2005
New Revision: 2787
Added:
qa/magic/build.properties (contents, props changed)
qa/magic/build.sh (contents, props changed)
qa/metro/
qa/metro/build.sh (contents, props changed)
qa/transit/build.properties (contents, props changed)
qa/transit/build.sh (contents, props changed)
Modified:
qa/tools/compile-rc.sh
qa/tools/prepare-rc.sh
qa/tools/repository-work.sh
qa/tools/upload-rc.sh
qa/transit/2450/build.properties
Log:
Some more work on QA tools.
Added: qa/magic/build.properties
==============================================================================
--- (empty file)
+++ qa/magic/build.properties Wed Jun 8 08:29:55 2005
@@ -0,0 +1,2 @@
+
+
Added: qa/magic/build.sh
==============================================================================
--- (empty file)
+++ qa/magic/build.sh Wed Jun 8 08:29:55 2005
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Script to build Magic with.
+#
+#
+
+LATEST_TRANSIT=`ls ../transit | grep "[0-9]" | sort -g | tail -1`
+
+read -p "Transit revision to build against [$LATEST_TRANSIT]:" TRANSIT_USED
+
+if [ -z $TRANSIT_USED ] ; then
+ TRANSIT_USED=$LATEST_TRANSIT
+fi
+
+cd $REVISION
+MODULE_DOCS=http://www.dpml.net
+MODULE_HOME=$MODULE_DOCS/central
+
+ant \
+ -Dproject.module.repository=http://www.dpml.net \
+ -Dproject.module.svn=http://scm.dpml.net/repos/dpml/qa \
+ -Dproject.module.docs=$MODULE_DOCS \
+ -Dproject.module.home=$MODULE_HOME \
+ -Dproject.module.license=$MODULE_HOME/about/legal/license.html \
+ -Dproject.module.notice=$MODULE_HOME/about/legal/notice.html \
+ -Dproject.module.publisher="The Digital Product Meta Library" \
+ -Ddpml.ant.version=1.6.4 \
+ -Ddpml.transit.uri=artifact:module:dpml/transit/dpml-transit#$TRANSIT_USED
\
+ -Ddpml.release.signature=$REVISION \
+ -file build.xml
Added: qa/metro/build.sh
==============================================================================
--- (empty file)
+++ qa/metro/build.sh Wed Jun 8 08:29:55 2005
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Script to build Magic with.
+#
+#
+
+LATEST_TRANSIT=`ls ../transit | tail -1`
+
+read -p "Transit revision to build against [$LATEST_TRANSIT]:" TRANSIT_USED
+read -p "Magic revision to build against [$LATEST_MAGIC]:" MAGIC_USED
+
+cd $REVISION
+
+MODULE_DOCS=http://www.dpml.net
+MODULE_HOME=$MODULE_DOCS/central
+
+ant \
+ -Dproject.module.repository=http://www.dpml.net \
+ -Dproject.module.svn=http://scm.dpml.net/repos/dpml/qa \
+ -Dproject.module.docs=$MODULE_DOCS \
+ -Dproject.module.home=$MODULE_HOME \
+ -Dproject.module.license=$MODULE_HOME/about/legal/license.html \
+ -Dproject.module.notice=$MODULE_HOME/about/legal/notice.html \
+ -Dproject.module.publisher="The Digital Product Meta Library" \
+ -Ddpml.ant.version=1.6.4 \
+ -Ddpml.transit.uri=artifact:module:dpml/transit/dpml-transit#$TRANSIT_USED
\
+ -Ddpml.magic.uri=artifact:module:dpml/magic/dpml-magic#$MAGIC_USED \
+ -Ddpml.release.signature=$REVISION \
+ -file build.xml
+
+
Modified: qa/tools/compile-rc.sh
==============================================================================
--- qa/tools/compile-rc.sh (original)
+++ qa/tools/compile-rc.sh Wed Jun 8 08:29:55 2005
@@ -3,9 +3,18 @@
echo "Starting Build."
-cd $PRODUCT/$REVISION
-rm -rf $HOME/.dpml $HOME/.ant/lib/dpml* $HOME/.java/.userPrefs/net/dpml/
-ant -Ddpml.release.signature=$REVISION
+if [ "$PRODUCT" == "transit" ] ; then
+ rm -rf $HOME/.dpml $HOME/.ant/lib/dpml* $HOME/.java/.userPrefs/net/dpml/
+fi
+
+# Move into the product to be built.
+
+pwd
+cd $PRODUCT
+echo "
+" >build.properties
+
+./build.sh
# Restore the current directory.
cd -
Modified: qa/tools/prepare-rc.sh
==============================================================================
--- qa/tools/prepare-rc.sh (original)
+++ qa/tools/prepare-rc.sh Wed Jun 8 08:29:55 2005
@@ -22,13 +22,13 @@
export REVISION
BASEDIR=`dirname $0`
-echo $BASEDIR
+if [ "$BASEDIR" == "" ] ; then
+ BASEDIR="."
+fi
+cd $BASEDIR
+cd ..
-# sh $BASEDIR/repository-work.sh
-# sh $BASEDIR/compile-rc.sh
-
-# Is this actually happening in Magic already??
-sh $BASEDIR/sign-rc.sh
-
-# Another thing that may be part of Magic.
+sh $BASEDIR/repository-work.sh
+sh $BASEDIR/compile-rc.sh
+# sh $BASEDIR/sign-rc.sh
# sh $BASEDIR/upload-rc.sh
Modified: qa/tools/repository-work.sh
==============================================================================
--- qa/tools/repository-work.sh (original)
+++ qa/tools/repository-work.sh Wed Jun 8 08:29:55 2005
@@ -1,26 +1,17 @@
#!/bin/sh
#
-echo "Creating QA release candidate directory:
https://scm.dpml.net/repos/dpml/qa/$PRODUCT"
-svn mkdir -m "Preparing revision $REVISION of $PRODUCT for a release."
https://scm.dpml.net/repos/dpml/qa/$PRODUCT
-
+echo "Removing any existing $REVISION of $PRODUCT."
svn rm -m "Removing any existing $REVISION of $PRODUCT."
https://scm.dpml.net/repos/dpml/qa/$PRODUCT/$REVISION
-
echo "Copying revision $REVISION of $PRODUCT to
https://scm.dpml.net/repos/dpml/qa/$PRODUCT/$REVISION on the server."
svn cp -r$REVISION -m "Preparing revision $REVISION of $PRODUCT for a
release." https://scm.dpml.net/repos/dpml/development/main/$PRODUCT
https://scm.dpml.net/repos/dpml/qa/$PRODUCT/$REVISION
-if [ ! -d "qa" ] ; then
- echo "Fixing the qa/ directory."
- svn up -N qa
- svn up qa/tools
-fi
-
-if [ ! -d "qa/$PRODUCT" ] ; then
- echo "Fixing the qa/$PRODUCT/ directory."
- svn up -N qa/$PRODUCT
+if [ ! -d "$PRODUCT" ] ; then
+ echo "Fixing the $PRODUCT/ directory."
+ svn up -N $PRODUCT
fi
echo "Updating the revision $REVISION of $PRODUCT into qa/$PRODUCT/$REVISION"
-svn up qa/$PRODUCT/$REVISION
+svn up $PRODUCT/$REVISION
Modified: qa/tools/upload-rc.sh
==============================================================================
--- qa/tools/upload-rc.sh (original)
+++ qa/tools/upload-rc.sh Wed Jun 8 08:29:55 2005
@@ -4,5 +4,5 @@
echo "Starting upload."
ssh store.dpml.net "mkdir -p /var/dpml-store/$PRODUCT/$REVISION ; chmod g+w
/var/dpml-store/$PRODUCT ; chmod g+w /var/dpml-store/$PRODUCT/$REVISION"
-scp qa/$PRODUCT/$REVISION/target/dist/*
store.dpml.net:/var/dpml-store/$PRODUCT/$REVISION
+scp $PRODUCT/$REVISION/target/dist/*
store.dpml.net:/var/dpml-store/$PRODUCT/$REVISION
Modified: qa/transit/2450/build.properties
==============================================================================
--- qa/transit/2450/build.properties (original)
+++ qa/transit/2450/build.properties Wed Jun 8 08:29:55 2005
@@ -1,7 +1,2 @@
-
-home = .
-project.name = dpml-transit
-project.group = dpml/transit
-dpml.repository = http://repository.dpml.net/classic
-ant.junit.filename = ant-junit-1.6.2.jar
-ant.junit.uri = artifact:jar:ant/ant-junit#1.6.2
+
+
Added: qa/transit/build.properties
==============================================================================
--- (empty file)
+++ qa/transit/build.properties Wed Jun 8 08:29:55 2005
@@ -0,0 +1,2 @@
+
+
Added: qa/transit/build.sh
==============================================================================
--- (empty file)
+++ qa/transit/build.sh Wed Jun 8 08:29:55 2005
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+#
+
+cd $REVISION
+PWD=`pwd`
+
+TRANSIT_ANT_VERSION=1.6.4
+MODULE_DOCS=http://www.dpml.net
+MODULE_HOME=$MODULE_DOCS/central
+
+ant \
+ -Dhome=$PWD \
+ -Dproject.module.repository=http://www.dpml.net \
+ -Dproject.module.svn=http://scm.dpml.net/repos/dpml/qa \
+ -Dproject.module.docs=$MODULE_DOCS \
+ -Dproject.module.home=$MODULE_HOME \
+ -Dproject.module.license=$MODULE_HOME/about/legal/license.html \
+ -Dproject.module.notice=$MODULE_HOME/about/legal/notice.html \
+ -Dproject.module.publisher="The Digital Product Meta Library" \
+ -Ddpml.ant.version=$TRANSIT_ANT_VERSION \
+ -Dtransit-ant.version=$TRANSIT_ANT_VERSION \
+ -Dant.junit.uri=artifact:jar:ant/ant-junit#$TRANSIT_ANT_VERSION \
+ -Ddpml.transit.uri=artifact:module:dpml/transit/dpml-transit#$REVISION \
+ -Ddpml.release.signature=$REVISION \
+ -file build.xml
- svn commit: r2787 - in qa: magic metro tools transit transit/2450, niclas, 06/08/2005
Archive powered by MHonArc 2.6.24.