[usocket-cvs] r219 - developer-resources

ehuelsmann at common-lisp.net ehuelsmann at common-lisp.net
Sat Mar 24 23:17:40 UTC 2007


Author: ehuelsmann
Date: Sat Mar 24 18:17:40 2007
New Revision: 219

Added:
   developer-resources/
   developer-resources/release.sh   (contents, props changed)
Log:
Save release script.

Added: developer-resources/release.sh
==============================================================================
--- (empty file)
+++ developer-resources/release.sh	Sat Mar 24 18:17:40 2007
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+# arguments:
+
+project_url=$1
+branch_name=$2
+tag_name=$3
+
+echo "Releasing $tag_name from current head of
+$project_url/branches/$branch_name."
+
+rm -rf /tmp/usocket-{$tag_name*,$branch_name,public_html} 2>&1 >/dev/null
+
+svn co $project_url/branches/$branch_name /tmp/usocket-$tag_name-tag
+cp -rp /tmp/usocket-$tag_name-tag /tmp/usocket-$branch_name
+svn co `dirname $project_url`/public_html /tmp/usocket-public_html
+vi /tmp/usocket-$tag_name-tag/usocket.asd
+svn di /tmp/usocket-$tag_name-tag
+echo "Copy this diff into tag '$tag_name'?"
+read answer
+
+if [ "$answer" != "yes" ]; then exit 1; fi
+svn cp /tmp/usocket-$tag_name-tag $project_url/tags/$tag_name -m "Create $tag_name tag."
+if [ ! $? ]; then exit 1; fi
+rm -rf /tmp/usocket-$tag_name*
+svn export $project_url/tags/$tag_name /tmp/usocket-$tag_name
+
+(cd /tmp ; tar czf usocket-$tag_name.tar.gz usocket-$tag_name/)
+gpg -ba /tmp/usocket-$tag_name.tar.gz
+mv /tmp/usocket-$tag_name.tar.gz* /tmp/usocket-public_html/releases
+svn add /tmp/usocket-public_html/releases/usocket-$tag_name.tar.gz*
+
+vi /tmp/usocket-$branch_name/usocket.asd
+vi /tmp/usocket-public_html/index.shtml
+



More information about the usocket-cvs mailing list