You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/01/14 16:36:59 UTC

svn commit: r1231516 - /incubator/jena/Jena2/TDB/trunk/dist-tdb.sh

Author: andy
Date: Sat Jan 14 15:36:58 2012
New Revision: 1231516

URL: http://svn.apache.org/viewvc?rev=1231516&view=rev
Log:
Script to make the additions to the jena dist/ area for TDB

Added:
    incubator/jena/Jena2/TDB/trunk/dist-tdb.sh   (with props)

Added: incubator/jena/Jena2/TDB/trunk/dist-tdb.sh
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/dist-tdb.sh?rev=1231516&view=auto
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/dist-tdb.sh (added)
+++ incubator/jena/Jena2/TDB/trunk/dist-tdb.sh Sat Jan 14 15:36:58 2012
@@ -0,0 +1,73 @@
+#!/bin/bash
+
+# Expect: environment contains M2_REPO
+#REPO=public_html/jena-R1-repo/org/apache/jena
+REPO=REPO/org/apache/jena
+
+OUT="dist"
+
+# This script collects everything for the incubator/dist/jena area
+# for a TDB release.  Copy to dist/jena to add to the last jena release.
+
+ECHO=echo
+CPCMD="$ECHO cp"
+MKDIR="$ECHO mkdir"
+DELDIR="$ECHO rm -rf"
+
+## 
+echo "## Initalize"
+$DELDIR $OUT
+$MKDIR $OUT
+
+function cpfile
+{
+    local FILE="$1"
+    local DIR="$2"
+
+    local SRC="$REPO/$FILE"
+    local DEST="$OUT/$DIR"
+
+    $CPCMD "$SRC" "$DEST"
+    #for ext in asc asc.md5 asc.sha1 md5 sha1
+    for ext in  asc md5 sha1
+    do
+	$CPCMD "$SRC.$ext" "$DEST"
+    done
+}
+
+function cpallfiles
+{
+    local M="$1"
+    local V="$2"
+    local D="$M-$V-$inc"
+    $MKDIR $OUT/$D
+    cpfile "$M/$V-$inc/$M-$V-$inc.jar" $D
+    cpfile "$M/$V-$inc/$M-$V-$inc-sources.jar" $D
+    if [ -e "$M/$V-$inc/$M-$V-$inc-javadoc.jar" ]
+    then
+	 cpfile "$M/$V-$inc/$M-$V-$inc-javadoc.jar" $D
+    fi
+    cpfile "$M/$V-$inc/$M-$V-$inc-source-release.zip" $D
+}
+
+
+
+## ToDo: automate
+
+V_TDB=0.9.0
+inc=incubating
+
+## Top level directory
+
+## Modules
+
+echo "## TDB"
+cpallfiles jena-tdb "${V_TDB}"
+
+echo "## zip"
+M=jena-tdb
+V=${V_TDB}
+D="$M-$V-$inc"
+cpfile jena-tdb-$D-distribution.zip      .
+cpfile jena-tdb-$D-distribution.tar.gz   .
+

Propchange: incubator/jena/Jena2/TDB/trunk/dist-tdb.sh
------------------------------------------------------------------------------
    svn:executable = *