source: trunk/tools/mkdeliv @ 34

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

some fies needs to be executables

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#!/bin/bash
2#
3# Deliver RPMs packages and tgz files to BerliOS
4#
5# $Id: mkdeliv 34 2005-09-29 01:14:36Z 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    tgz="$tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz"
31    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${ARCH}.rpm"
32    srpms="$srpms ${TOPDIR}/SRPMS/mindi-${MINDI_VER}-${rev}.src.rpm"
33fi
34if [ "`echo $c | grep  mondo`" != "" ]; then
35    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz
36    tgz="$tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz"
37    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}.${ARCH}.rpm"
38    srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-${rev}.src.rpm"
39fi
40scp -p ${tgz} ${SVNAUTH}:${DSTDIR}/TGZ
41scp -p ${rpms} ${SVNAUTH}:${DSTDIR}/RPMS
42scp -p ${srpms} ${SVNAUTH}:${DSTDIR}/SRPMS
43ncftpput ${FTPURL} ${tgz}
Note: See TracBrowser for help on using the repository browser.