source: trunk/tools/mkdeliv @ 119

Last change on this file since 119 was 98, checked in by bcornec, 15 years ago

merge -r 96:97 from 2.04 branch

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[20]1#!/bin/bash
2#
3# Deliver RPMs packages and tgz files to BerliOS
[33]4#
5# $Id: mkdeliv 98 2005-11-04 22:55:39Z bcornec $
6#
[20]7
[33]8dname=`dirname $0`
9prem=`echo $dname |cut -c1`
10if [ ${prem} == "/" ]; then
11        export TOOLHOME=$dname
12else
13    export TOOLHOME=${PWD}/$dname
14fi
[20]15
[33]16. $TOOLHOME/rpm-env
17
[20]18tgz=""
19srpms=""
20rpms=""
[33]21rev=`$TOOLHOME/mksvnversion`
[20]22
23if [ "$1" = "" ]; then
24    c="mindi mondo"
25else
26    c=$1
27fi
28if [ "`echo $c | grep mindi`" != "" ]; then
[33]29    cp -a ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz
[55]30    cp -a ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2
[51]31    tgz="$tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2"
[63]32    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${suf}.${ARCH}.rpm"
33    srpms="$srpms ${TOPDIR}/SRPMS/mindi-${MINDI_VER}-${rev}.${suf}.src.rpm"
[20]34fi
35if [ "`echo $c | grep  mondo`" != "" ]; then
[33]36    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz
[55]37    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2
[51]38    tgz="$tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2"
[63]39    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}.${suf}.${ARCH}.rpm"
40    srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-${rev}.${suf}.src.rpm"
[20]41fi
[77]42echo "Sources delivery to ${SVNAUTH}:${DSTDIR}/src"
[82]43scp ${tgz} ${SVNAUTH}:${DSTDIR}/src
[61]44ssh ${SVNAUTH} "mkdir -p ${DSTDIR}/${ddir}/${dver}"
[80]45echo "Packages delivery to ${SVNAUTH}:${DSTDIR}/${ddir}/${dver}"
[82]46scp ${rpms} ${SVNAUTH}:${DSTDIR}/${ddir}/${dver}
47scp ${srpms} ${SVNAUTH}:${DSTDIR}/${ddir}/${dver}
[98]48echo "Sources delivery to ${FTPSERV} ${FTPDIR}"
49if [ "`which ncftpput`" != "" ]; then
50    ncftpput ${FTPSERV} ${FTPDIR} ${tgz}
51elif [ "`which lftp`" != "" ]; then
52    lftp -e "cd ${FTPDIR} ; put ${tgz} ; quit" ${FTPSERV}
53fi
Note: See TracBrowser for help on using the repository browser.