geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1087164 - /geronimo/sandbox/forrest/tck/updategeronimotckonly.sh
Date Thu, 31 Mar 2011 03:17:58 GMT
Author: xiaming
Date: Thu Mar 31 03:17:58 2011
New Revision: 1087164

URL: http://svn.apache.org/viewvc?rev=1087164&view=rev
Log:
Add a script to update geronimo tck working copy only

Added:
    geronimo/sandbox/forrest/tck/updategeronimotckonly.sh   (with props)

Added: geronimo/sandbox/forrest/tck/updategeronimotckonly.sh
URL: http://svn.apache.org/viewvc/geronimo/sandbox/forrest/tck/updategeronimotckonly.sh?rev=1087164&view=auto
==============================================================================
--- geronimo/sandbox/forrest/tck/updategeronimotckonly.sh (added)
+++ geronimo/sandbox/forrest/tck/updategeronimotckonly.sh Thu Mar 31 03:17:58 2011
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+GERONIMOTCK_REV=$GERONIMOTCK_REV
+
+if [ -d $HOME/tckdata/tckbuildsrc ]; then
+    # enter the working directory
+    cd $HOME/tckdata/tckbuildsrc
+    
+    # Update geronimotck
+    GERONIMOTCK_PRE_REV=`cat geronimotck_rev`
+    if [ -n "$GERONIMOTCK_REV" ] && [ "$GERONIMOTCK_REV" != "$GERONIMOTCK_PRE_REV"
]; then
+        echo "$GERONIMOTCK_REV" > geronimotck_rev
+        [ -d $HOME/tckdata/tckbuildsrc/geronimotck ] && rm -rf geronimotck
+        svn co https://svn.apache.org/repos/tck/geronimo-tck/porting/branches/3.0@$GERONIMOTCK_REV
geronimotck
+        [ $? -ne 0 ] && exit 1
+        echo "geronimotck is checked out at revision $GERONIMOTCK_REV!"
+    else
+        if [ "$GERONIMOTCK_REV" = "" ]; then
+            echo "" > geronimotck_rev
+            if [ -d $HOME/tckdata/tckbuildsrc/geronimotck ]; then
+                echo "Update geronimotck to latest!"
+                cd $HOME/tckdata/tckbuildsrc/geronimotck
+                svn --non-interactive --accept theirs-full update
+                [ $? -ne 0 ] && exit 1
+                cd ..
+            fi
+        else
+            echo "geronimotck's revision=$GERONIMOTCK_REV same as before!"           
+        fi
+        
+    fi
+    
+else
+    # first time to create the folder
+    mkdir -p $HOME/tckdata/tckbuildsrc
+    cd $HOME/tckdata/tckbuildsrc
+    svn co https://svn.apache.org/repos/tck/geronimo-tck/porting/branches/3.0@$GERONIMOTCK_REV
geronimotck
+    [ $? -ne 0 ] && exit 1
+    echo "$GERONIMOTCK_REV" > geronimotck_rev
+fi
+
+exit 0
+
+#if [ -d $HOME/tckdata/tckbuildsrc ]
+#then
+#    cd $HOME/tckdata/tckbuildsrc
+#    SRCLIST=`ls -d */`
+#    for srcfolder in $SRCLIST
+#    do      
+#      echo "Update source folder $srcfolder"
+#      cd $srcfolder
+#      svn cleanup
+#      svn --non-interactive --accept theirs-full update
+#      cd ..
+#    done
+#    echo "Source is updated!"
+#fi 
+
+

Propchange: geronimo/sandbox/forrest/tck/updategeronimotckonly.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/forrest/tck/updategeronimotckonly.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: geronimo/sandbox/forrest/tck/updategeronimotckonly.sh
------------------------------------------------------------------------------
    svn:keywords = Date Revision



Mime
View raw message