From 6f82ca1bc1b20bf618bbe06f082a09e598bd4133 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 12 Jun 2010 12:51:56 +0000 Subject: [PATCH] 2010-06-12 14:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * mpkg_nightly.sh + Added instructions to setup unattended file upload on sf.net. If SSH key pair is setup and public key uploaded to sf.net user account, nightlies can be created and automatically upload to sf.net, using these commands: --- $ export HB_SFNET_FRS_PRIVATE_KEY=~/.ssh/id_dsa $ export HB_SFNET_USER=myuser $ ./mpkg_nightly.sh --- --- harbour/ChangeLog | 12 +++++++++++ harbour/mpkg_nightly.sh | 45 ++++++++++++++++++++++++++++++++++++++--- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d5563162b4..901aa9d2f7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,18 @@ The license applies to all entries newer than 2009-04-28. */ +2010-06-12 14:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * mpkg_nightly.sh + + Added instructions to setup unattended file upload to sf.net. + If SSH key pair is setup and public key uploaded to sf.net + user account, nightlies can be created and automatically + upload to sf.net, using these commands: + --- + $ export HB_SFNET_FRS_PRIVATE_KEY=~/.ssh/id_dsa + $ export HB_SFNET_USER=myuser + $ ./mpkg_nightly.sh + --- + 2010-06-12 14:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * src/vm/set.c * Reset default value to "hb_out.log". diff --git a/harbour/mpkg_nightly.sh b/harbour/mpkg_nightly.sh index bc6343f53b..80275e3062 100755 --- a/harbour/mpkg_nightly.sh +++ b/harbour/mpkg_nightly.sh @@ -4,6 +4,45 @@ # $Id$ # +# --------------------------------------------------------------- +# Copyright 2010 Viktor Szakats (harbour.01 syenar.hu) +# See COPYING for licensing terms. +# --------------------------------------------------------------- + +# +# HOWTO upload unattended to sourceforge.net +# ========================================== +# +# 1. Generate SSH key pair: +# +# $ ssh-keygen -t dsa -C "$HB_SFNET_USER,harbour-project@frs.sourceforge.net" +# +# where '$HB_SFNET_USER' is your sf.net username. +# +# IMPORTANT: Leave pass-phrase empty +# +# 2. Paste content of generated public key file (by default 'id_dsa.pub') into +# 'Authorized keys' edit box and press 'Update' button on this page: +# +# https://sourceforge.net/account/ssh +# +# You have to be logged in to sf.net. +# +# 3. Wait up to 10 minutes for key to be activated +# +# 4. Now you can use your private key file (by default 'id_dsa') instead of +# password to upload files. To use this script as is, set 'HB_SFNET_FRS_PRIVATE_KEY' +# envvar to your private key file and 'HB_SFNET_USER' envvar to your +# sf.net username, f.e.: +# +# $ export HB_SFNET_FRS_PRIVATE_KEY=~/.ssh/id_dsa +# $ export HB_SFNET_USER=myuser +# $ ./mpkg_nightly.sh +# +# Official link with more detailed procedures: +# http://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20keys +# + [ -n harbour-nightly-src.zip ] || rm harbour-nightly-src.zip [ -n harbour-nightly.tar.bz2 ] || rm harbour-nightly.tar.bz2 [ -n harbour-nightly.tar.gz ] || rm harbour-nightly.tar.gz @@ -26,6 +65,6 @@ zip -X -r -o ../harbour-nightly-src.zip harbour/* cd .. rm -f -r _mk_nightly -scp harbour-nightly-src.zip $USER,harbour-project@frs.sourceforge.net:/home/frs/project/h/ha/harbour-project/source/nightly/ -scp harbour-nightly.tar.bz2 $USER,harbour-project@frs.sourceforge.net:/home/frs/project/h/ha/harbour-project/source/nightly/ -scp harbour-nightly.tar.gz $USER,harbour-project@frs.sourceforge.net:/home/frs/project/h/ha/harbour-project/source/nightly/ +scp -i $HB_SFNET_FRS_PRIVATE_KEY harbour-nightly-src.zip $HB_SFNET_USER,harbour-project@frs.sourceforge.net:/home/frs/project/h/ha/harbour-project/source/nightly/ +scp -i $HB_SFNET_FRS_PRIVATE_KEY harbour-nightly.tar.bz2 $HB_SFNET_USER,harbour-project@frs.sourceforge.net:/home/frs/project/h/ha/harbour-project/source/nightly/ +scp -i $HB_SFNET_FRS_PRIVATE_KEY harbour-nightly.tar.gz $HB_SFNET_USER,harbour-project@frs.sourceforge.net:/home/frs/project/h/ha/harbour-project/source/nightly/