source: branches/2.04_berlios/tools/mkdeliv @ 92

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

minor pb of trace on tools/mkdeliv

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#!/bin/bash
2#
3# Deliver RPMs packages and tgz files to BerliOS
4#
5# $Id: mkdeliv 92 2005-10-27 22:58:14Z bcornec $
6#
7
8dname=`dirname $0`
9prem=`echo $dname |cut -c1`
10if [ ${prem} == "/" ]; then
11        export TOOLHOME=$dname
12else
13    export TOOLHOME=${PWD}/$dname
14fi
15
16. $TOOLHOME/rpm-env
17
18tgz=""
19srpms=""
20rpms=""
21rev=`$TOOLHOME/mksvnversion`
22
23if [ "$1" = "" ]; then
24    c="mindi mondo"
25else
26    c=$1
27fi
28if [ "`echo $c | grep mindi`" != "" ]; then
29    cp -a ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz
30    cp -a ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2
31    tgz="$tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2"
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"
34fi
35if [ "`echo $c | grep  mondo`" != "" ]; then
36    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz
37    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2
38    tgz="$tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2"
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"
41fi
42echo "Sources delivery to ${SVNAUTH}:${DSTDIR}/src"
43scp ${tgz} ${SVNAUTH}:${DSTDIR}/src
44ssh ${SVNAUTH} "mkdir -p ${DSTDIR}/${ddir}/${dver}"
45echo "Packages delivery to ${SVNAUTH}:${DSTDIR}/${ddir}/${dver}"
46scp ${rpms} ${SVNAUTH}:${DSTDIR}/${ddir}/${dver}
47scp ${srpms} ${SVNAUTH}:${DSTDIR}/${ddir}/${dver}
48echo "Sources delivery to ${FTPURL}"
49ncftpput ${FTPURL} ${tgz}
Note: See TracBrowser for help on using the repository browser.