Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r540 - trunk/hudson

argouml-gen
Discussion topic

Back to topic list

svn commit: r540 - trunk/hudson

Reply

Author linus
Full name Linus Tolke
Date 2009-03-02 23:16:17 PST
Message Author: linus
Date: 2009-03-02 23:16:17-0800
New Revision: 540

Added:
   trunk/hudson/
   trunk/hudson/README
   trunk/hudson/h-upload.sh (contents, props changed)

Log:
Updated to allow smaller checkouts.

Added: trunk/hudson/README
Url: http://argouml-gen.t​igris.org/source/bro​wse/argouml-gen/trun​k/hudson/README?view​=markup&pathrev=​540
====================​====================​====================​==================
--- (empty file)
+++ trunk/hudson/README 2009-03-02 23:16:17-0800
@@ -0,0 +1 @@
+Scripts to work with a hudson server.

Added: trunk/hudson/h-upload.sh
Url: http://argouml-gen.t​igris.org/source/bro​wse/argouml-gen/trun​k/hudson/h-upload.sh​?view=markup&pat​hrev=540
====================​====================​====================​==================
--- (empty file)
+++ trunk/hudson/h-upload.sh 2009-03-02 23:16:17-0800
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# ./h-upload.sh http://blablabla/where/the... file/path/to/files/to/upload
+
+SVNURL=$1
+FILES=$2
+
+CHECKEDOUTDIR=`basename $FILES`
+
+svn co --non-interactive --ignore-externals $SVNURL upload/$CHECKEDOUTDIR
+
+echo Copying files from $FILES
+cp -r $FILES upload
+
+echo Adding new files
+(
+ cd upload/$CHECKEDOUTDIR &&
+ svn status | while read type path
+ do
+ case "$type" in
+ '?') svn add $path
+ case "$path" in
+ *.html | *.css | *.log | *.txt )
+ svn propset svn:keywords "Author Date Id Revision" $path
+ svn propset svn:eol-style native $path
+ ;;
+ esac
+ ;;
+ '!') svn rm $path
+ ;;
+ esac
+ done
+)
+
+echo Commiting
+svn commit --non-interactive -m'Uploaded from continous build' upload/$CHECKEDOUTDIR
+
+# If the commit failed, try again a few times
+(
+ cd upload/$CHECKEDOUTDIR
+ svn status |
+ awk '/^[AM]/ { print $2; }' |
+ xargs -L 100 svn commit -m"Try upload again (in chunks of 100 files)"
+
+ svn update
+ svn status |
+ awk '/^[AM]/ { print $2; }' |
+ xargs -L 10 svn commit -m"Try upload again (in chunks of ten files)"
+
+ svn update
+ svn status |
+ awk '/^[AM]/ { print $2; }' |
+ xargs -L 1 svn commit -m"Try upload again (files one by one)"
+)
+
+echo Any files left:
+(
+ cd upload/$CHECKEDOUTDIR &&
+ svn status
+)

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r540 - trunk/hudson linus Linus Tolke 2009-03-02 23:16:17 PST
Messages per page: