source: trunk/tools/mkdeliv @ 22

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

tar files contain a date in their name for BerliOS delivery

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