diff --git a/admin/common.sh b/admin/common.sh index 3cc56d2..1d32877 100644 --- a/admin/common.sh +++ b/admin/common.sh @@ -29,10 +29,7 @@ SNAPSHOT=`date '+%Y%m%d'` PACKAGE=uhub-${VERSION} PACKAGE_SRC=${PACKAGE}-src PACKAGE_BIN=${PACKAGE}-${HOST_SYSTEM}-${HOST_MACHINE} - -URL_ARCHIVE='build-archive:~/uhub/' -URL_PUBLISH='domeneshop:~/www/downloads/uhub/' -URL_SNAPSHOT='domeneshop:~/www/downloads/uhub/snapshots/' +URL_ARCHIVE='build-archive:~/www/downloads/uhub/' function export_source_directory { @@ -118,4 +115,22 @@ function export_binaries 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 +} + diff --git a/admin/export.sh b/admin/export.sh index 84cc1f6..1c92d10 100755 --- a/admin/export.sh +++ b/admin/export.sh @@ -1,9 +1,3 @@ #!/bin/bash - -# set -x - . admin/common.sh - -# Git Export export_source_directory - diff --git a/admin/release_binaries.sh b/admin/release_binaries.sh index 0aa467d..183c05c 100755 --- a/admin/release_binaries.sh +++ b/admin/release_binaries.sh @@ -1,9 +1,3 @@ #!/bin/bash - -# set -x - . admin/common.sh - -# Git Export export_binaries - diff --git a/admin/release_sources.sh b/admin/release_sources.sh index bc63a8c..a86d2fa 100755 --- a/admin/release_sources.sh +++ b/admin/release_sources.sh @@ -1,10 +1,4 @@ #!/bin/bash - -# set -x - . admin/common.sh WANTZIP=1 - -# Git Export export_sources -