Date: Friday, November 18, 2005 @ 11:28:15
  Author: marc
    Path: /cvsroot/carob/carob

   Added: publisher.sh (1.1)
Modified: Makefile (1.17 -> 1.18)

Moved build of src tarball out of Makefile to new script publisher.sh
Added target "publishdoc" to push doxygen documentation to the web site.


--------------+
 Makefile     |   17 ++++++----------
 publisher.sh |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 10 deletions(-)


Index: carob/Makefile
diff -u carob/Makefile:1.17 carob/Makefile:1.18
--- carob/Makefile:1.17 Thu Nov 17 18:14:10 2005
+++ carob/Makefile      Fri Nov 18 11:28:14 2005
@@ -90,15 +90,12 @@
        ${DOXYGEN} ${DOXYFILE}
 
 
-# Creates a carob-YYYY-MM-DD.tar.gz file in ../ directory containing
-# the source code from CVS and compiled documentation.
+# Or using the command line if you prefer
+# export CAROB_SUFFIX=-latest
+# export CAROB_TAG=rc4
 
-# This target below is actually just a script that can be copy/pasted 
-# and run as is without anything from above
-
-# Please don't forget to tag the source when releasing such a .tar.gz
-# externally.
 srcdist:
-       cd .. ; CAROB_TODAY=carob-`date -I` ; \
-       cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/carob export -d 
$${CAROB_TODAY} -D TODAY carob ; \
-       $(MAKE) -C $${CAROB_TODAY} doc ; tar czf $${CAROB_TODAY}.tar.gz 
$${CAROB_TODAY}
+       ./publisher.sh buildsrctarball
+
+publishdoc:
+       ./publisher.sh publishdoc
Index: carob/publisher.sh
diff -u /dev/null carob/publisher.sh:1.1
--- /dev/null   Fri Nov 18 11:28:15 2005
+++ carob/publisher.sh  Fri Nov 18 11:28:14 2005
@@ -0,0 +1,59 @@
+#
+# Sequoia: Database clustering technology.
+# Copyright (C) 2005 Emic Networks
+# Contact: [EMAIL PROTECTED]
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Initial developer(s): Marc Herbert
+# Contributor(s): 
+#
+
+# set -x
+
+# default values
+: ${CAROB_SUFFIX:=${CAROB_TAG}}
+: ${CAROB_SUFFIX:=`date -I`}
+EXPORT_DIR=carob-${CAROB_SUFFIX}
+: ${CAROB_TAG:=`date -Iseconds`}
+
+printf "Using this carob dirname: ${EXPORT_DIR}\n"
+
+# Creates a carob-${CAROB_SUFFIX}.tar.gz file in ../ directory containing
+# the source code from CVS and compiled documentation.
+# Please don't forget to tag the source when releasing such a .tar.gz
+# externally.
+
+function buildsrctarball()
+{
+    printf "Using this carob CVS tag: ${CAROB_TAG}\n"
+    cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/carob export -d ${EXPORT_DIR} 
-D ${CAROB_TAG} carob
+    make -C ${EXPORT_DIR} doc ; tar czf ${EXPORT_DIR}.tar.gz ${EXPORT_DIR}
+}
+
+
+# Export doxygen documentation to the web site
+# Will fail if buildsrctarball() has not be called before, on purpose:
+# nothing should be published "automatically" without being reviewed first
+
+function publishdoc()
+{
+    cmd="scp -q -rp ${EXPORT_DIR}/doxygen 
forge.continuent.org:/home/groups/carob/doc/doxgen-${CAROB_SUFFIX}"
+    printf "$0: $cmd\n"
+    $cmd
+}
+
+
+# execute the function given as argument
+cd .. && $1
+

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to