[Zope-CVS] CVS: Products/OSCOM/bootstrap - buildout_zope_sandbox:1.10
Tres Seaver
tseaver@zope.com
Tue, 27 May 2003 00:28:55 -0400
Update of /cvs-repository/Products/OSCOM/bootstrap
In directory cvs.zope.org:/tmp/cvs-serv27011
Modified Files:
buildout_zope_sandbox
Log Message:
- Add 4Suite 1.0a1 (need XSLT processing without more platform
dependencies).
- Add ZopeXMLMethods product (fronts for 4Suite, makes other processors
possible).
- Add CMFActionIcons product (UI slickness).
- Fix argument passing in zopectl / zeoctl.
=== Products/OSCOM/bootstrap/buildout_zope_sandbox 1.9 => 1.10 ===
--- Products/OSCOM/bootstrap/buildout_zope_sandbox:1.9 Tue May 13 23:01:23 2003
+++ Products/OSCOM/bootstrap/buildout_zope_sandbox Tue May 27 00:28:55 2003
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh
#==============================================================================
# OSCOM 2003: Zope CMS Interoperability Workshop
#
@@ -56,12 +56,16 @@
chmodx="chmod +x"
patch="patch"
untar="tar xzf"
+unzip="unzip"
make="make"
lnsf="ln -sf"
cprs="cp -rs" # copy files as symlinks; OSX: 'cp -a'?
+mv="mv"
cat="cat"
echo="echo"
+SF_DOWNLOAD_MIRROR="http://aleron.dl.sourceforge.net/sourceforge"
+
$echo Building OSCOM Zope sandbox: PLATFORM is $PLATFORM
#------------------------------------------------------------------------------
@@ -72,9 +76,21 @@
PYTHON_SOURCE_URL=$PYTHON_ORG/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz
PYXML_VERSION=${PYXML_VERSION:-0.8.1} # 0.8.2?
-PYXML_SF_DOWNLOAD="http://aleron.dl.sourceforge.net/sourceforge/pyxml"
+PYXML_SF_DOWNLOAD="$SF_DOWNLOAD_MIRROR/pyxml"
PYXML_URL=$PYXML_SF_DOWNLOAD/PyXML-$PYXML_VERSION.tar.gz
+FOURSUITE_CVSROOT=:pserver:anonymous@cvs.4suite.org:/var/local/cvsroot
+FOURSUITE_MODULE=4Suite
+
+FOURSUITE_VERSION=${FOURSUITE_VERSION:-1.0a1}
+
+if [ "$FOURSUITE_VERSION" == "1.0a1" ]; then
+ FOURSUITE_TAG="-r R1_0a1"
+else
+ echo Unsupported 4Suite version: $FOURSUITE_VERSION
+ exit
+fi
+
ZOPE_CVSROOT=:pserver:anonymous@cvs.zope.org:/cvs-repository
ZOPE_VERSION=${ZOPE_VERSION:-2.6.1} # XXX 2.6.2, 2.7?
@@ -129,6 +145,22 @@
fi
fi
+ZOPEXMLMETHODS_VERSION=${ZOPEXMLMETHODS_VERSION:-1.0.0}
+
+if [ "$ZOPEXMLMETHODS_VERSION" == "1.0.0" ]; then
+ ZOPEXMLMETHODS_ZIP=zopexmlmethods-1-0-0.zip
+else
+ echo Unsupported ZopeXMLMethods version: $ZOPEXMLMETHODS_VERSION
+ exit
+fi
+
+ZOPEXMLMETHODS_SF_DOWNLOAD="$SF_DOWNLOAD_MIRROR/zopexmlmethods"
+ZOPEXMLMETHODS_URL=$ZOPEXMLMETHODS_SF_DOWNLOAD/$ZOPEXMLMETHODS_ZIP
+
+CMFACTIONICONS_VERSION=${CMFACTIONICONS_VERSION:-head}
+CMFACTIONICONS_MODULE="Products/CMFActionIcons"
+CMFACTIONICONS_TAG=
+
NOTSITE_VERSION=${NOTSITE_VERSION:-head}
NOTSITE_MODULE="Products/OSCOM/NOTSite"
NOTSITE_TAG=
@@ -238,6 +270,17 @@
$cprs $srcdir/PyXML-$PYXML_VERSION .
$lnsf PyXML-$PYXML_VERSION PyXML
cd PyXML
+$bindir/python setup.py --without-xpath --without-xslt install
+
+#------------------------------------------------------------------------------
+# Install 4Suite
+#------------------------------------------------------------------------------
+cd $srcdir
+$cvs -d $FOURSUITE_CVSROOT co -d 4Suite-$FOURSUITE_VERSION $FOURSUITE_TAG $FOURSUITE_MODULE
+cd $optdir
+$cprs $srcdir/4Suite-$FOURSUITE_VERSION .
+$lnsf 4Suite-$FOURSUITE_VERSION 4Suite
+cd 4Suite
$bindir/python setup.py install
#------------------------------------------------------------------------------
@@ -333,6 +376,20 @@
$lnsf DBTab-$DBTAB_VERSION DBTab
fi
+cd $tmpdir
+$fetch_tarball --continue $ZOPEXMLMETHODS_URL
+cd $srcdir
+$unzip $tmpdir/$ZOPEXMLMETHODS_ZIP
+$mv ZopeXMLMethods ZopeXMLMethods-$ZOPEXMLMETHODS_VERSION
+cd $optdir
+$cprs $srcdir/ZopeXMLMethods-$ZOPEXMLMETHODS_VERSION .
+$lnsf ZopeXMLMethods-$ZOPEXMLMETHODS_VERSION ZopeXMLMethods
+
+cd $srcdir
+$cvs -d $ZOPE_CVSROOT co -d CMFActionIcons-$CMFACTIONICONS_VERSION $CMFACTIONICONS_TAG $CMFACTIONICONS_MODULE
+cd $optdir
+$lnsf $srcdir/CMFActionIcons-$CMFACTIONICONS_VERSION CMFActionIcons
+
cd $srcdir
$cvs -d $ZOPE_CVSROOT co -d NOTSite-$NOTSITE_VERSION $NOTSITE_TAG $NOTSITE_MODULE
cd $optdir
@@ -351,7 +408,10 @@
if [ "$ZOPE_VERSION" == "2.6.1" -o "$ZOPE_VERSION" == "2.6.2" ]; then
$lnsf $optdir/DBTab .
fi
+
+$lnsf $optdir/ZopeXMLMethods .
$lnsf $optdir/NOTSite .
+$lnsf $optdir/CMFActionIcons .
#------------------------------------------------------------------------------
# Set up DBTab
@@ -411,12 +471,12 @@
start)
shift
- start_zeo $*
+ start_zeo "\$@"
;;
stop)
shift
- stop_zeo $*
+ stop_zeo "\$@"
;;
restart)
@@ -465,12 +525,12 @@
start)
shift
- start_zope $*
+ start_zope "\$@"
;;
stop)
shift
- stop_zope $*
+ stop_zope "\$@"
;;
restart)