Files
harbour-core/harbour/mpkg_nightly.sh
Viktor Szakats cba71772cf 2010-06-16 11:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbcurl/hbcurl.c
    + Added all remaining known guards to HB_CURLOPT_* options, so in
      theory now f.e. even libcurl version 7.5.0 is supported.
    ! Fixed HB_CURLOPT_HTTPGET being disabled when building against
      libcurl < 7.14.1
    ! Fixed HB_CURLOPT_FTP_ACCOUNT being enabled at the wrong libcurl
      version.

  * mpkg_nightly.sh
    * Minor.

  * package/winuni/RELNOTES
    * Versions updated.
2010-06-16 09:03:18 +00:00

104 lines
3.1 KiB
Bash
Executable File

#!/bin/sh
#
# $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
#
echo Starting Harbour Project nightly source package creation...
rm -f harbour-nightly-src.zip harbour-nightly.tar.bz2 harbour-nightly.tar.gz
rm -f -r _mk_nightly
mkdir _mk_nightly || {
echo "Failed to create directory _mk_nightly"
exit 1
}
cd _mk_nightly
echo Downloading sources with LF line ending...
svn export -q --native-eol LF http://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour
echo Creating bz2, gz packages...
tar -c harbour/* > harbour-nightly.tar
bzip2 -c -z harbour-nightly.tar > ../harbour-nightly.tar.bz2
gzip -c harbour-nightly.tar > ../harbour-nightly.tar.gz
rm harbour-nightly.tar
echo Downloading sources with CRLF line ending...
rm -f -r harbour
svn export -q --native-eol CRLF http://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour
echo Creating zip package...
zip -q -X -r -o ../harbour-nightly-src.zip harbour/*
cd ..
rm -f -r _mk_nightly
destdir="/home/frs/project/h/ha/harbour-project/source/nightly/"
if [ -d $destdir ]
echo Copying packages to sf.net file release area...
cp harbour-nightly-src.zip $destdir
cp harbour-nightly.tar.bz2 $destdir
cp harbour-nightly.tar.gz $destdir
then
if [ "$HB_SFNET_FRS_PRIVATE_KEY" -a "$HB_SFNET_USER" ]
then
echo Uploading packages to sf.net file release area...
desthost=",harbour-project@frs.sourceforge.net:"
scp -i $HB_SFNET_FRS_PRIVATE_KEY harbour-nightly-src.zip $HB_SFNET_USER,$desthost$destdir
scp -i $HB_SFNET_FRS_PRIVATE_KEY harbour-nightly.tar.bz2 $HB_SFNET_USER,$desthost$destdir
scp -i $HB_SFNET_FRS_PRIVATE_KEY harbour-nightly.tar.gz $HB_SFNET_USER,$desthost$destdir
fi
fi
rm -f harbour-nightly-src.zip harbour-nightly.tar.bz2 harbour-nightly.tar.gz
echo Ended Harbour Project nightly source package creation.