diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-01 10:21:21 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-01 10:21:21 -0300 |
commit | be895aa478a46f8127961176a960492adfbde0bb (patch) | |
tree | b1db0009c28469b0e136634df16c82b19f75973d /librerelease | |
parent | d36ee2573a3daebbeec15f6b3c13b4bec1ddf29b (diff) |
librerelease now uploads into [staging]
Diffstat (limited to 'librerelease')
-rwxr-xr-x | librerelease | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/librerelease b/librerelease index 836cdfc..01d8d81 100755 --- a/librerelease +++ b/librerelease @@ -68,20 +68,26 @@ for _arch in ${arch[@]}; do for pkg in ${pkgname[@]}; do pkgfile="$PKGDEST/$pkg-$pkgver-$pkgrel-$_arch$PKGEXT" if [ -e "$pkgfile" ]; then -# Move out the old packages -# This has to be moved to repo-maintainer - ssh ${PARABOLAHOST} mv ${LIBREDESTDIR}/$repo/os/$_arch/$pkg-*-*-$_arch$PKGEXT ${LIBREDESTDIR}/old/ - - to_sftp "put $pkgfile ${LIBREDESTDIR}/$repo/os/$_arch/" + to_sftp "put $pkgfile ${LIBREDESTDIR}/$repo/" fi done done # Use pkgbase for the finding the sources tar [[ -z ${pkgbase} ]] && pkgbase=${pkgname} -makepkg --source + +# Upload the build scripts +makepkg -f --source to_sftp "put $SRCPKGDEST/$pkgbase-$pkgver-$pkgrel$SRCEXT ${LIBRESRCDIR}/$repo" sftp -b ${batchfile} ${PARABOLAHOST} +cat <<EOM +From: you +To: packages@list.parabolagnulinux.org +Subject: [$pkgbase] $pkgver-$pkgrel released on [$repo] + +:) +EOM + exit 0 |