Changeset 33 for trunk/tools/mkdeliv


Ignore:
Timestamp:
Sep 29, 2005, 3:11:40 AM (15 years ago)
Author:
bcornec
Message:

Finer use of the release concept for tagging and delivery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/mkdeliv

    r30 r33  
    22#
    33# Deliver RPMs packages and tgz files to BerliOS
     4#
     5# $Id$
     6#
    47
    5 . ./rpm-env
     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
    617
    718tgz=""
    819srpms=""
    920rpms=""
    10 ct=`date "+%Y%m%d"`
     21rev=`$TOOLHOME/mksvnversion`
    1122
    1223if [ "$1" = "" ]; then
     
    1627fi
    1728if [ "`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"
     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"
    2233fi
    2334if [ "`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"
     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"
    2839fi
    2940scp -p ${tgz} ${SVNAUTH}:${DSTDIR}/TGZ
Note: See TracChangeset for help on using the changeset viewer.