sf requires the creation of a shell before any operations, see
http://sourceforge.net/apps/trac/sourceforge/wiki/Shell%20service
The shell creation always requires a username, so take that from $USER.

Leave the shell open at the end of the script (i.e. don't forcibly shut it
down) in case the user needs to go in and do additional changes.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 release.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/release.sh b/release.sh
index 393857a..fcd3ee9 100755
--- a/release.sh
+++ b/release.sh
@@ -7,7 +7,7 @@ set -e
 
 announce_list="linuxwacom-annou...@lists.sourceforge.net"
 module=xf86-input-wacom
-user=
+user=${USER}@
 host=shell.sourceforge.net
 srv_path=/home/frs/project/l/li/linuxwacom/$module
 webpath=sourceforge.net/projects/linuxwacom/files/$module
@@ -191,6 +191,9 @@ if ! git tag -l $tag_current >/dev/null; then
     exit 1
 fi
 
+echo "creating shell on sourceforge for $USER"
+ssh -t ${user/%...@},linuxwa...@shell.sourceforge.net create
+
 echo "checking for an existing release"
 if ssh $user$host ls $srv_path/$module/$targz >/dev/null 2>&1 ||
 ssh $user$host_people ls $srv_path/$module/$tarbz2 >/dev/null 2>&1; then
-- 
1.7.3.2


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to