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
      ---
This commit is contained in:
Viktor Szakats
2010-06-12 12:51:56 +00:00
parent 5ae08a0e0e
commit 6f82ca1bc1
2 changed files with 54 additions and 3 deletions

View File

@@ -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".

View File

@@ -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/