summaryrefslogtreecommitdiff
path: root/release.sh
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-11-19 10:41:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-19 10:41:53 +1000
commita9d521802ee56c01362164f57516bfd9d7f0d2c4 (patch)
tree53ffac4641383f3b0fb15c5fe90142e8fc4a3a96 /release.sh
parentede7e5263dfea48ba9fbf8d225c00c71b601f58d (diff)
downloadxf86-input-wacom-a9d521802ee56c01362164f57516bfd9d7f0d2c4.tar.gz
Fix release script for sourceforge shell service.
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.hutterer@who-t.net>
Diffstat (limited to 'release.sh')
-rwxr-xr-xrelease.sh5
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-announce@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/%@},linuxwacom@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