Added upload support.

Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
Jan Vidar Krey 2009-03-23 23:02:59 +01:00
parent 8bf0fd424a
commit cf23c82c16
4 changed files with 19 additions and 22 deletions

View File

@ -29,10 +29,7 @@ SNAPSHOT=`date '+%Y%m%d'`
PACKAGE=uhub-${VERSION} PACKAGE=uhub-${VERSION}
PACKAGE_SRC=${PACKAGE}-src PACKAGE_SRC=${PACKAGE}-src
PACKAGE_BIN=${PACKAGE}-${HOST_SYSTEM}-${HOST_MACHINE} PACKAGE_BIN=${PACKAGE}-${HOST_SYSTEM}-${HOST_MACHINE}
URL_ARCHIVE='build-archive:~/www/downloads/uhub/'
URL_ARCHIVE='build-archive:~/uhub/'
URL_PUBLISH='domeneshop:~/www/downloads/uhub/'
URL_SNAPSHOT='domeneshop:~/www/downloads/uhub/snapshots/'
function export_source_directory function export_source_directory
{ {
@ -118,4 +115,22 @@ function export_binaries
rm -Rf ${PACKAGE}; rm -Rf ${PACKAGE};
} }
function upload_pkg
{
if [ -f $1 ]; then
echo scp $1 ${URL_ARCHIVE}
fi
}
function upload_packages
{
upload_pkg ${PACKAGE_SRC}.tar.gz
upload_pkg ${PACKAGE_SRC}.tar.bz2
upload_pkg ${PACKAGE_SRC}.zip
upload_pkg ChangeLog-${VERSION}
upload_pkg ${PACKAGE_BIN}.tar.gz
upload_pkg ${PACKAGE_BIN}.tar.bz2
upload_pkg ${PACKAGE_BIN}.zip
}

View File

@ -1,9 +1,3 @@
#!/bin/bash #!/bin/bash
# set -x
. admin/common.sh . admin/common.sh
# Git Export
export_source_directory export_source_directory

View File

@ -1,9 +1,3 @@
#!/bin/bash #!/bin/bash
# set -x
. admin/common.sh . admin/common.sh
# Git Export
export_binaries export_binaries

View File

@ -1,10 +1,4 @@
#!/bin/bash #!/bin/bash
# set -x
. admin/common.sh . admin/common.sh
WANTZIP=1 WANTZIP=1
# Git Export
export_sources export_sources