source: trunk/tools/mkdeliv @ 21

Last change on this file since 21 was 21, checked in by bcornec, 14 years ago

delivery to ftp on berlios to allow publication

File size: 768 bytes
Line 
1#!/bin/bash
2#
3# Deliver RPMs packages and tgz files to BerliOS
4
5. ./rpm-env
6
7tgz=""
8srpms=""
9rpms=""
10
11if [ "$1" = "" ]; then
12    c="mindi mondo"
13else
14    c=$1
15fi
16if [ "`echo $c | grep mindi`" != "" ]; then
17    tgz="$tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz"
18    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-1.${ARCH}.rpm"
19    srpms="$srpms ${TOPDIR}/SRPMS/mindi-${MINDI_VER}-1.src.rpm"
20fi
21if [ "`echo $c | grep  mondo`" != "" ]; then
22    tgz="$tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz"
23    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-1.${ARCH}.rpm"
24    srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-1.src.rpm"
25fi
26scp -p ${tgz} ${SVNAUTH}:${DSTDIR}/TGZ
27scp -p ${rpms} ${SVNAUTH}:${DSTDIR}/RPMS
28scp -p ${srpms} ${SVNAUTH}:${DSTDIR}/SRPMS
29ncftpput ${FTPURL} ${tgz}
Note: See TracBrowser for help on using the repository browser.