Changeset 589 for branches/stable


Ignore:
Timestamp:
May 29, 2006, 12:24:29 PM (13 years ago)
Author:
bcornec
Message:

Delivery process to ftp reviewed for 2.0.8

Location:
branches/stable/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2qemu

    r572 r589  
    5353
    5454$TOOLHOME/build2pkg $LAST
    55 #$TOOLHOME/mkdeliv
     55$TOOLHOME/pkg2ftp
    5656EOF
    5757chmod 755 $TMP/mkmondo
    5858
     59$TOOLHOME/files2ftp
    5960cd $TOOLHOME/..
    6061tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG
  • branches/stable/tools/mkdeliv

    r549 r589  
    11#!/bin/bash
    22#
    3 # Deliver RPMs packages and tgz files to ftp.mondorescue.org
     3# Deliver packages and tgz files to ftp.mondorescue.org
    44#
    55# $Id$
     
    2121
    2222. $TOOLHOME/common-env
    23 . $TOOLHOME/svn-env
    24 . $TOOLHOME/rpm-env
     23. $TOOLHOME/distro-env
     24
     25# We need to get $VER and $TAG
     26if [ "$1" = "" ]; then
     27    LAST=`cat ${TOPDIR}/LAST`
     28else
     29    LAST=$1
     30    shift
     31fi
     32VER=`echo $LAST | cut -d- -f1`
     33TAG=`echo $LAST | cut -d- -f2`
     34echo "Working on ${VER}-$TAG"
     35   
     36if [ "$1" = "" ]; then
     37    c="mondo-doc mindi mondo"
     38else
     39    if [ "$1" = "all" ]; then
     40        c="mindi-kernel mondo-doc mindi mondo"
     41    else
     42        c=$1
     43    fi
     44fi
     45
     46export pkg=""
     47echo "Working under $TOPBUILDDIR"
     48cd $TOPBUILDDIR
     49
     50for p in $c; do
    2551
    2652tgz=""
    2753srpms=""
    2854rpms=""
    29 rev=`$TOOLHOME/mksvnversion`
    3055
    31 if [ "$1" = "" ]; then
    32         c="mondo-doc mindi mondo"
    33 else
    34     c=$1
    35 fi
    3656if [ "`echo $c | grep mindi`" != "" ]; then
    37     cp -a ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz
    38     cp -a ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2
    39     tgz="$tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2"
    40     rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}${suf}.${ARCH}.rpm"
    41     srpms="$srpms ${TOPDIR}/SRPMS/mindi-${MINDI_VER}-${rev}${suf}.src.rpm"
     57    cp -a ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}.tgz ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz
     58    cp -a ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2
     59    tgz="$tgz ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2"
     60    rpms="$rpms ${TOPBUILDDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}${suf}.${ARCH}.rpm"
     61    srpms="$srpms ${TOPBUILDDIR}/SRPMS/mindi-${MINDI_VER}-${rev}${suf}.src.rpm"
    4262fi
    4363if [ "`echo $c | grep mondo-doc`" != "" ]; then
    44     cp -a ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz
    45     cp -a ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2
    46     tgz="$tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2"
    47     rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"
    48     srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"
     64    cp -a ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz
     65    cp -a ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2
     66    tgz="$tgz ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2"
     67    rpms="$rpms ${TOPBUILDDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"
     68    srpms="$srpms ${TOPBUILDDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"
    4969fi
    5070if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then
    51     cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz
    52     cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2
    53     tgz="$tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2"
    54     rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"
    55     srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"
     71    cp -a ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz
     72    cp -a ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2
     73    tgz="$tgz ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2"
     74    rpms="$rpms ${TOPBUILDDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"
     75    srpms="$srpms ${TOPBUILDDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"
    5676fi
    5777echo "Sources delivery to ${ACCOUNT}:${DSTDIR}/src"
Note: See TracChangeset for help on using the changeset viewer.